[PATCH] linux: fix accuracy of get_nprocs and get_nprocs_conf [BZ #28865]

Adhemerval Zanella adhemerval.zanella@linaro.org
Mon Feb 7 12:07:44 GMT 2022



On 07/02/2022 09:01, Florian Weimer wrote:
> * Adhemerval Zanella:
> 
>>> But I think using sched_getaffinity as a fallback when /sys and /proc
>>> are not available makes somse.  It's different form what we did
>>> temporarily (sched_getaffinity first).
>>
>> My concern is we start to see BZ#27645 again on environments that filter
>> out sysfs and provide a synthetic sched_getaffinity.
> 
> Should we move the sched_getaffinity fallback after /proc, then?

Yeah, that was what I suggested in another reply.


More information about the Libc-alpha mailing list