[Bug 230330] _SC_NPROCESSORS_ONLN reports offline CPUs
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 14 Feb 2023 19:29:10 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230330 Mark Millard <marklmi26-fbsd@yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marklmi26-fbsd@yahoo.com --- Comment #6 from Mark Millard <marklmi26-fbsd@yahoo.com> --- 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 <adhemerval.zanella@linaro.org> 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.