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: Roland McGrath <roland at hack dot frob dot com>
- To: Linus Torvalds <torvalds at linux-foundation dot org>
- Cc: 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 10:48:53 -0700 (PDT)
- Subject: Re: [glibc] Fix Linux sysconf(_SC_NPROCESSORS_[CONF|ONLN]) performance problem
- References: <BANLkTi=ousV=JtYzAYEnMVqqX6fnF_1z9Q@mail.gmail.com>
I believe the definition of _SC_NPROCESSORS_ONLN is that it returns a
system-wide value. So it would be wrong for it to be affected by
sched_setaffinity on a particular process.
Thanks,
Roland