The nproc tool calls sched_getaffinity with a fixed number of 1024 CPUs. This always fails on machines that have more CPUs. As a result, the sysconf fallback is used, resulting in unexpected results. It is necessary to use the glibc 2.6 APIs and retry with increasing CPU set sizes. Reproducible: Always
Created attachment 2057010 [details] coreutils-nproc-affinity.patch
Real upstream for this is gnulib, lib/nproc.c is copied from there.
Patch submitted upstream: [PATCH] nproc: Use affinity mask even on systems with more than 1024 CPUs <https://lists.gnu.org/archive/html/bug-gnulib/2024-11/msg00082.html>
Created attachment 2057030 [details] coreutils-nproc-affinity.patch
I'll sync this to the coreutils upstream repo and add a NEWS entry. thanks
https://github.com/coreutils/coreutils/commit/64a5d1092
FEDORA-2024-4b75866373 (coreutils-9.5-11.fc41) has been submitted as an update to Fedora 41. https://bodhi.fedoraproject.org/updates/FEDORA-2024-4b75866373
FEDORA-2024-2fed0a200b (coreutils-9.5-11.fc42) has been submitted as an update to Fedora 42. https://bodhi.fedoraproject.org/updates/FEDORA-2024-2fed0a200b
FEDORA-2024-b2eca2c8af (coreutils-9.4-9.fc40) has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2024-b2eca2c8af
FEDORA-2024-4b75866373 has been pushed to the Fedora 41 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-4b75866373` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-4b75866373 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2024-b2eca2c8af has been pushed to the Fedora 40 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-b2eca2c8af` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-b2eca2c8af See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2024-2fed0a200b (coreutils-9.5-11.fc42) has been pushed to the Fedora 42 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2024-4b75866373 (coreutils-9.5-11.fc41) has been pushed to the Fedora 41 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2024-b2eca2c8af (coreutils-9.4-9.fc40) has been pushed to the Fedora 40 stable repository. If problem still persists, please make note of it in this bug report.