From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH] eal: fix linuxapp numa node detection Date: Wed, 22 Apr 2015 08:44:57 -0700 Message-ID: <20150422084457.42e50bd2@urahara> References: <1429709515-14361-1-git-send-email-bruce.richardson@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: dev-VfR2kkLFssw@public.gmane.org To: Bruce Richardson Return-path: In-Reply-To: <1429709515-14361-1-git-send-email-bruce.richardson-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" On Wed, 22 Apr 2015 14:31:55 +0100 Bruce Richardson wrote: > Using the "physical_package_id" as a fallback for determining the > numa node of a core tends to be unreliable. Fix this by using a > detection routine which reads the numa information from > /sys/devices/system/node and just returns a numa node of 0 on > failure. > > Signed-off-by: Bruce Richardson Acked-by: Stephen Hemminger Documentation/cputopology.txt > 1) /sys/devices/system/cpu/cpuX/topology/physical_package_id: > > physical package id of cpuX. Typically corresponds to a physical > socket number, but the actual value is architecture and platform > dependent.