From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andi Kleen Subject: Re: How does numa_parse_nodestring +0-1 works/should work Date: Thu, 16 May 2013 14:11:26 +0200 Message-ID: <20130516121126.GI17814@two.firstfloor.org> References: Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-numa-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Andreas Mueller Cc: "'linux-numa@vger.kernel.org'" 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