[PATCH] linux: Simplify get_nprocs
Florian Weimer
fweimer@redhat.com
Tue Jul 13 18:39:49 GMT 2021
* Adhemerval Zanella:
> On 13/07/2021 11:38, Florian Weimer wrote:
>> * Adhemerval Zanella:
>>
>>> This patch simplifies the memory allocation code and uses the sched
>>> routines instead of reimplement it. This still uses a stack
>>> allocation buffer, so it can be used on malloc initialization code.
>>
>> Could you add a run-time test for that limit? With the added test, I
>> think this is fine.
>
> What kind of test? To check if on a larger system with more than 32k
> logical CPU the value is capped?
Sorry, no, to check that sched_getaffiny with a 4K buffer succeeds.
Thanks,
Florian
More information about the Libc-alpha
mailing list