Thread (2 messages) flat view 2 messages, 2 authors, 2017-06-15

Re: [Question or BUG] [NUMA]: I feel puzzled at the function cpumask_of_node

From: Michal Hocko <mhocko@kernel.org>
Date: 2017-06-08 14:12:25
Also in: linux-arm-kernel, linux-mm, lkml

[CC linux-api]

On Wed 07-06-17 17:23:20, Leizhen (ThunderTown) wrote:
When I executed numactl -H(print cpumask_of_node for each node), I got
different result on X86 and ARM64.  For each numa node, the former
only displayed online CPUs, and the latter displayed all possible
CPUs.  Actually, all other ARCHs is the same to ARM64.

So, my question is: Which case(online or possible) should function
cpumask_of_node be? Or there is no matter about it?
Unfortunatelly the documentation is quite unclear
What:		/sys/devices/system/node/nodeX/cpumap
Date:		October 2002
Contact:	Linux Memory Management list [off-list ref]
Description:
		The node's cpumap.

not really helpeful, is it? Semantically I _think_ printing online cpus
makes more sense because it doesn't really make much sense to bind
anything on offline nodes. Generic implementtion of cpumask_of_node
indeed provides only online cpus. I haven't checked specific
implementations of arch specific code but listing offline cpus sounds
confusing to me.

-- 
Michal Hocko
SUSE Labs

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help