[Bug 230330] _SC_NPROCESSORS_ONLN reports offline CPUs

[email protected]
Newsgroups gmane.os.freebsd.devel.standards
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230330

Mark Millard <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #6 from Mark Millard <[email protected]> ---
Comment15 in the listed https://sourceware.org/bugzilla/show_bug.cgi?id=27645
(for 2.34) refers to another one:

https://sourceware.org/bugzilla/show_bug.cgi?id=28310

This is were 2.35 reverted some behavior, title:

Do not use affinity mask for sysconf (_SC_NPROCESSORS_CONF)

It was a request to revert:

Related commit:

commit 903bc7dcc2acafc40be11639767e10a2de712649
Author: Adhemerval Zanella <[email protected]>
Date:   Thu Mar 25 09:30:07 2021 -0300

    linux: Use sched_getaffinity for __get_nprocs (BZ #27645)

    Both the sysfs and procfs parsing (through GET_NPROCS_PARSER) are
    removed in favor the syscall.  The initial scratch buffer should
    fit to most of the common usage (1024 bytes with maps to 8192 CPUs).


Comment 1 indicates: "Fixed on 2.35." and is listed as "RESOLVED FIXED".

-- 
You are receiving this mail because:
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.