[PATCH] sysconf: Use conservative default for _SC_NPROCESSORS_ONLN [BZ #21542]
Florian Weimer
fweimer@redhat.com
Fri Jun 9 12:28:00 GMT 2017
On 06/09/2017 02:26 PM, H.J. Lu wrote:
> On x86, we compute the number of threads which share L3
> cache in a package via CPUID. We should use this info as
> default on x86.
That would only allow us to return a larger value than 2 in this case,
wouldn't it?
I don't know if the additional complexity is worth it. The 1/2
distinction is what patterns, I don't think it's possible to get this
data reliably from CPUID.
Thanks,
Florian
More information about the Libc-alpha
mailing list