linux-numa.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* numactl using it's own affinity to determine CPU set
@ 2012-10-22 19:35 Jon Stanley
  2012-10-22 19:41 ` Andi Kleen
  0 siblings, 1 reply; 6+ messages in thread
From: Jon Stanley @ 2012-10-22 19:35 UTC (permalink / raw)
  To: linux-numa, pholasek

If you set the affinity of your shell to be a subset of the available
CPUs, and then attempt to use numactl to bind to something that is not
in that affinity mask, the attempt will fail. I thought that this was
fixed in the current numactl 2.0.8, but it doesn't seem to be.

A simple reproducer on a 2-node 8-core system is as such:

$ numactl --physcpubind=5 ls
<see directory goodness>
$ taskset -p f $$
$ numactl --physcpubind=5 ls
libnuma: Warning: cpu argument 5 is out of range
<snip>

Let me know if more info is required.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-10-23 21:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-22 19:35 numactl using it's own affinity to determine CPU set Jon Stanley
2012-10-22 19:41 ` Andi Kleen
2012-10-22 20:12   ` Jon Stanley
2012-10-23 12:21     ` Petr Holasek
2012-10-23 14:19       ` Cliff Wickman
2012-10-23 21:17         ` Petr Holasek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).