Menu

#468 Fix CPU count determination on some UNIX systems

open
nobody
None
5
2026-09-10
2026-09-10
Brad Smith
No

Use sysctl _SC_NPROCESSORS_ONLN instead of _SC_NPROCESSORS_CONF to determine the number of online and available CPUs.

On OpenBSD / amd64 for example SMT is disabled by default so the code currently falsely determines 8 CPUs are online when it should be 4.

1 Attachments

Discussion


Log in to post a comment.