[Bug 230330] _SC_NPROCESSORS_ONLN reports offline CPUs

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 24 Dec 2024 20:10:13 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230330

--- Comment #12 from Mark Millard <marklmi26-fbsd@yahoo.com> ---
https://pubs.opengroup.org/onlinepubs/9799919799/ for

The Open Group Base Specifications Issue 8
IEEE Std 1003.1-2024

shows:

Maximum number of execution units that can be made available to run threads†

_SC_NPROCESSORS_CONF

Maximum number of execution units currently available to run threads†

_SC_NPROCESSORS_ONLN

Also:

The value returned for name arguments other than _SC_NPROCESSORS_ONLN shall not
change during the lifetime of the calling process, except that
sysconf(_SC_OPEN_MAX) may return different values before and after a call to
setrlimit() which changes the RLIMIT_NOFILE soft limit.

And:

Austin Group Defects 339 and 1608 are applied, adding _SC_NPROCESSORS_CONF and
_SC_NPROCESSORS_ONLN.

-- 
You are receiving this mail because:
You are the assignee for the bug.