[glibc] Fix Linux sysconf(_SC_NPROCESSORS_[CONF|ONLN]) performance problem

Samuel Thibault samuel.thibault@ens-lyon.org
Thu Jun 16 18:17:00 GMT 2011


Roland McGrath, le Thu 16 Jun 2011 10:48:53 -0700, a écrit :
> I believe the definition of _SC_NPROCESSORS_ONLN is that it returns a
> system-wide value.

I have usually seen so, yes.

> So it would be wrong for it to be affected by sched_setaffinity on a
> particular process.

Indeed.

Samuel



More information about the Libc-alpha mailing list