From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f46.google.com (mail-pa0-f46.google.com [209.85.220.46]) by dpdk.org (Postfix) with ESMTP id 65AD03195 for ; Wed, 22 Apr 2015 17:44:55 +0200 (CEST) Received: by pacyx8 with SMTP id yx8so276148152pac.1 for ; Wed, 22 Apr 2015 08:44:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=KtPvq0nn/msxT6lvC6IDGDWIfbwVlMnbArp0avXdqDU=; b=dAL27YN5M9QYiqgWYYRrtMwimpiRF1cmYkV8xKhEcO3RInffr8Nww1jTfB0sVODPHt 16vLGk2ik0FdbA5ribeXiK2lQWKA2RUbZgSsdKWDNtW8cK99+9LiST7JWQA+sQNda9tq RIOMGQmMUrEqLeNJtw7R0TvelvMc8SroESfe1n44Fjmg96lkKoa393EoondNa4HU2PtJ nvCR/PvQRHMdsDbNTpBmvsSpFtow+UvQh38NqLgakTDkfZuU61pr3CWL4UMuTOFdFCeE zVvp9CILrYXiBY8cxvvX0b0uBMxcGXU5QXCegy/WwrB1DmJFWxBRxUH1xaaiRtbyG68r nP7w== X-Gm-Message-State: ALoCoQnliQvqKfRFxitPPsFeR8IEQC2NI63dlNrbqaoZIuIl6KwiAXBLqqJgc9N1b2us36W9lT5q X-Received: by 10.66.196.163 with SMTP id in3mr48299308pac.70.1429717494787; Wed, 22 Apr 2015 08:44:54 -0700 (PDT) Received: from urahara (static-50-53-82-155.bvtn.or.frontiernet.net. [50.53.82.155]) by mx.google.com with ESMTPSA id pd5sm5416632pbb.25.2015.04.22.08.44.54 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Apr 2015 08:44:54 -0700 (PDT) Date: Wed, 22 Apr 2015 08:44:57 -0700 From: Stephen Hemminger To: Bruce Richardson Message-ID: <20150422084457.42e50bd2@urahara> In-Reply-To: <1429709515-14361-1-git-send-email-bruce.richardson@intel.com> 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@dpdk.org Subject: Re: [dpdk-dev] [PATCH] eal: fix linuxapp numa node detection X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Apr 2015 15:44:56 -0000 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.