Add routines cpuset.my_mem_nodes(), mbytes_per_mem_node(), and my_container_name().
cpuset.mbytes_per_mem_node() is analogous to autotest_utils.node_size(), but is more accurate and deals in physical memory, not 'available memory'.
cpuset.my_mem_nodes() returns a list of the memory nodes now assigned to this process's cpuset. It can be called when a job is still running within an inherited cpuset, before it has explicitly set up its own temporary cpuset.
cpuset.my_container_name() returns the name (relative to /dev/cpuset) of the process's cpuset.
From: Duane Sand <duanes@google.com>
Signed-off-by: John Admanski <jadmanski@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@1431 592f7852-d20e-0410-864c-8624ca9c26a4
1 file changed