This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [glibc] Fix Linux sysconf(_SC_NPROCESSORS_[CONF|ONLN]) performance problem
- From: Samuel Thibault <samuel dot thibault at ens-lyon dot org>
- To: Roland McGrath <roland at hack dot frob dot com>
- Cc: Linus Torvalds <torvalds at linux-foundation dot org>,Ulrich Drepper <drepper at gmail dot com>,"David S. Miller" <davem at davemloft dot net>,Andreas Schwab <schwab at redhat dot com>, libc-alpha at sourceware dot org
- Date: Thu, 16 Jun 2011 20:14:36 +0200
- Subject: Re: [glibc] Fix Linux sysconf(_SC_NPROCESSORS_[CONF|ONLN]) performance problem
- References: <BANLkTi=ousV=JtYzAYEnMVqqX6fnF_1z9Q@mail.gmail.com> <20110616174853.781832C112@topped-with-meat.com>
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