[Bug 230330] _SC_NPROCESSORS_ONLN reports offline CPUs

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 14 Feb 2023 20:32:49 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230330

--- Comment #11 from Mark Millard <marklmi26-fbsd@yahoo.com> ---
(In reply to Jan Beich from comment #8)

I had to look up what a Solaris Zone is:

"A zone is a virtualized operating system environment created within a single
instance of the Solaris OS." And: "Oracle Solaris Zones, previously known as
Solaris Containers, are an integral part of the Oracle Solaris 10 operating
system (OS). Zones isolate software applications and services using flexible
software-defined boundaries. You can use zones to create private execution
environments within a single instance of the Oracle Solaris 10 OS. Each
environment has its own identity that is separate from the underlying hardware.
Each environment behaves independently as if running on its own system, making
consolidation simple, safe, and secure."

Looking at the implementation referenced, unless one deliberately creates an
whole "virtualized operating system environment", one does not get zone
results.

It looks to me like processor_affinity, for example, is available for both
in-a-zone and not-in-a-zone styles of use. This affinity does not seem to
contribute to the results for _SC_NPROCESSORS_ONLN or _SC_NPROCESSORS_CONF .

So, a more complicated analogy to form in trying to compare Solaris.

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