From: Michael Ellerman Subject: Re: [PATCH v2 1/1] mm: only dispaly online cpus of the numa node Date: Tue, 03 Oct 2017 12:22:44 +1100 Message-ID: <8760bxdnyz.fsf@concordia.ellerman.id.au> References: <1506678805-15392-1-git-send-email-thunder.leizhen@huawei.com> <1506678805-15392-2-git-send-email-thunder.leizhen@huawei.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: <1506678805-15392-2-git-send-email-thunder.leizhen-hv44wF8Li93QT0dZR+AlfA@public.gmane.org> Sender: linux-api-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Catalin Marinas , Will Deacon , linux-kernel , linux-api , Greg Kroah-Hartman , Michal Hocko , linux-mm Cc: Tianhong Ding , Hanjun Guo , Libin , Kefeng Wang , Zhen Lei List-Id: linux-api@vger.kernel.org Zhen Lei writes: > When I executed numactl -H(which read /sys/devices/system/node/nodeX/cpumap > and display cpumask_of_node for each node), but 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. Unfortunately, both Linux > documentation and numactl manual have not described it clear. FWIW powerpc happens to implement the x86 behaviour, online CPUs only. cheers