[Bug libc/27645] [linux] sysconf(_SC_NPROCESSOR...) breaks down on containers
crrodriguez at opensuse dot org
sourceware-bugzilla@sourceware.org
Wed Sep 1 18:25:43 GMT 2021
https://sourceware.org/bugzilla/show_bug.cgi?id=27645
--- Comment #13 from Cristian RodrÃguez <crrodriguez at opensuse dot org> ---
(In reply to Nicolas Saenz Julienne from comment #12)
> Why can't the process use sched_getaffinity() directly?
Yes, it can..the idea was not having to update possible hundreds of packages to
work as expected in a container enviroment.. examples that come to min are all
the parallel de/compression tools like pigz. when ran in a container with cpu
count limit does not start up to 8 threads when the enviroment says it can use
2 CPU..and so on..
I googled quite a bit before posting this request and didn't found anywhere
that _SC_NPROCESSORS_ONLN was explictly specified as system-wide..
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list