[PATCH] linux: Simplify get_nprocs

Adhemerval Zanella adhemerval.zanella@linaro.org
Tue Jul 13 19:15:07 GMT 2021



On 13/07/2021 16:07, Florian Weimer wrote:
> * Adhemerval Zanella:
> 
>> Although currently we already call get_nprocs on some internal usages
>> (malloc for instance) and I haven't see any regression with my change.
>> Do we really need to add an explicit test for it?
> 
> Yes, we want to know if such large systems arrive.  Think of it as a
> reminder for something that might happen twenty years from now.

Right, but what exactly would we be exercising that we already do on
malloc initialization, for instance (that would call sched_getaffiny 
with the 4k stack allocated buffer)?


More information about the Libc-alpha mailing list