This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]