How does numa_parse_nodestring +0-1 works/should work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

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.
What I get (on a kernel 2.6.32) is always 0,1 independently of the node the process was started (either by chance or by assigning a specific node with numactl).

Background: I want to limit a multithreaded process to a subset of the available nodes, but want to include the node it currently runs on, because I assume that the memory (stack/heap) already in use by the process is mainly on this node, so it makes sense to include this node. I know I could simply start the process with numactl, but I want to implement a useful default behavior and for the kind or process this is neither achieved by limiting to one node nor to all nodes.

Thanks in advance for any help.

Best regards,
Andreas Mueller


--
To unsubscribe from this list: send the line "unsubscribe linux-numa" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]     [Devices]

  Powered by Linux