Re: How does numa_parse_nodestring +0-1 works/should work

Andi Kleen <[email protected]> Thu, 16 May 2013 14:11:26 +0200
Newsgroups org.kernel.vger.linux-numa
Message-ID <[email protected]>
On Thu, May 16, 2013 at 02:00:40PM +0200, Andreas Mueller wrote:
> could someone please explain the behaviour of a nodestring "+0-1" or similar for numa_parse_nodestring?
> 
> According to the manual, "a leading + can be used to indicate that the node numbers in the list are relative to the task's cpuset".
> 
> What I expected and want to achieve is, that if a process was started on node 3, I will get a node mask of 3,4.

cpuset refers to the cpusets in 
http://man7.org/linux/man-pages/man7/cpuset.7.html
You seem to think it refers to the plain task affinity, which is not the
case.

In general generic relative NUMA policy descriptions would be nice
(like in OpenMP4) but we only have them with cpusets currently.

-andi