From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] usertools: use /sys/devices/system/cpu for CPU layout script Date: Tue, 25 Apr 2017 13:01:00 +0200 Message-ID: <1682863.QcTJhb8gfk@xps> References: <1490962860-11567-1-git-send-email-Andriy.Berestovskyy@caviumnetworks.com> <1810447.5BRUVpxoUJ@xps> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Andriy Berestovskyy Return-path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id C91372B8E for ; Tue, 25 Apr 2017 13:01:02 +0200 (CEST) In-Reply-To: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 25/04/2017 12:19, Andriy Berestovskyy: > Hi, > > On 25.04.2017 10:48, Thomas Monjalon wrote: > > Do you think it is really a good idea to keep and maintain this script > > in DPDK? It was intentionnally not exported in "make install". > > I think it is a bit out of scope, and I wonder which alternatives > > do we have? I know hwloc/lstopo, but there are probably others. > > hwloc does not work on my target, but you are right, there are a variety > of tools for that. For example, I prefer numactl (option -H) because it > also allows to do many useful things, like bind CPUs to one node and > memory allocations to another. > > At the moment the script is just like the lscpu, which is preinstalled > on Ubuntu and mentioned in the documentation alongside with the cpu_layout. > > We could try to make the script more useful, for example, show which NIC > is on which NUMA node. Still, it will be just a subset of functionality > of tools like hwloc... Yes. The other idea would be to properly document existing tools and remove this one. Opinions?