From patchwork Fri May 21 09:06:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Monjalon X-Patchwork-Id: 93358 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A1869A0A02; Fri, 21 May 2021 11:06:22 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 87C3A4069D; Fri, 21 May 2021 11:06:22 +0200 (CEST) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by mails.dpdk.org (Postfix) with ESMTP id 4C59340143 for ; Fri, 21 May 2021 11:06:21 +0200 (CEST) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id DA0F65C0120; Fri, 21 May 2021 05:06:20 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Fri, 21 May 2021 05:06:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm1; bh=tXyUrSsMJW02e jdJJFGFosBR9OodRirFDmGyyKxF3rk=; b=dUG2xJSI5k5KOQqD1uxCWdMSMF8n3 R4TGvUpN3wE4udpv2vPYX4qWiKsZwVjVdwqT1DpM98spEULa58IK4M2PCewi0s2S mn1FEKfjTx7HHoJmapKh+Kxrxyth54nJssqlgb2ZZLZwANj/0PA9ysR+k/W4J8TL AVOmXTAh0ZXhsbcvB2wyDW301RfB9cngoTbigCkaVgH5B2FgoJ7XeY9ywOHu1ttM eVg4zlOu9IrudwmA1NkysFIVzuntbc6KKrqc1UP0nC8yNy4UvE2ni3ZmJYieUSM1 TwjrdQ5Redd+96YTFonfDflS+kjjRt6qkAPJWJyI1IaZYLDoSDNkP8Hjw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=tXyUrSsMJW02ejdJJFGFosBR9OodRirFDmGyyKxF3rk=; b=YxsCPx5P 00jIakM1yFlKMsQ8pdD4qY+JYL4KlzVf4qAT8MfWg8TkoqV5VH3BpkfEy5E19CA+ yZIHyUA+tQGbwKr2ykXrKP7FEZQCMtfdi4dg83y93s8Hz0KmFy5tNIrSybHbCiTU +UNJ9jEAhB1r2O9trZ55zP6z+FQUe2DaWCOkQZWFIHPS2lwdOtKKVHhlOqWd0Gd2 5Ssa1ognJreh64kDK81z7WZ69rQYocB7HJS42/tULGhaQV6zn1tvVl86tQlAj3jc P1imaIqV1CGuUAPY2x4dAlY+EzuEeaU/HCxzDykr2Lp8COnzpYkB7YFtvstpr3iQ DS9I9Gdj2yfV5g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdejfedguddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecugg ftrfgrthhtvghrnhepvdehgfeivdejgedtveehfefhteelfefgieevgfffveefjeegtdfg uedthedtgeevnecukfhppeejjedrudefgedrvddtfedrudekgeenucevlhhushhtvghruf hiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghl ohhnrdhnvght X-ME-Proxy: Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 21 May 2021 05:06:19 -0400 (EDT) From: Thomas Monjalon To: dev@dpdk.org Cc: bruce.richardson@intel.com, ferruh.yigit@intel.com, david.marchand@redhat.com, Matan Azrad , Shahaf Shuler , Viacheslav Ovsiienko Date: Fri, 21 May 2021 11:06:16 +0200 Message-Id: <20210521090616.946267-1-thomas@monjalon.net> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210308222553.823262-1-thomas@monjalon.net> References: <20210308222553.823262-1-thomas@monjalon.net> MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v2] doc: improve lstopo tip X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The tool lstopo from hwloc package can provide a graphical or textual view. In its textual form, the option --merge gives a shorter summary which fits well with the DPDK need. Signed-off-by: Thomas Monjalon --- v2: add textual output in Linux guide --- doc/guides/linux_gsg/build_sample_apps.rst | 13 +++++++++---- doc/guides/nics/mlx4.rst | 2 +- doc/guides/nics/mlx5.rst | 2 +- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/doc/guides/linux_gsg/build_sample_apps.rst b/doc/guides/linux_gsg/build_sample_apps.rst index 78652549a7..709b301427 100644 --- a/doc/guides/linux_gsg/build_sample_apps.rst +++ b/doc/guides/linux_gsg/build_sample_apps.rst @@ -138,11 +138,16 @@ This can be useful when using other processors to understand the mapping of the .. note:: - A more graphical view of the logical core layout may be obtained using the ``lstopo`` Linux utility. - On Fedora Linux, this may be installed and run using the following command:: + A more graphical view of the logical core layout + may be obtained using the ``lstopo`` Linux utility. + On Fedora, this may be installed and run using the following commands:: - sudo yum install hwloc - ./lstopo + sudo yum install hwloc + lstopo + + This command produces a quite short textual output:: + + lstopo-no-graphics --merge .. warning:: diff --git a/doc/guides/nics/mlx4.rst b/doc/guides/nics/mlx4.rst index 9742ddb268..a25add7c47 100644 --- a/doc/guides/nics/mlx4.rst +++ b/doc/guides/nics/mlx4.rst @@ -308,7 +308,7 @@ Performance tuning for better performance. For VMs, verify that the right CPU and NUMA node are pinned according to the above. Run:: - lstopo-no-graphics + lstopo-no-graphics --merge to identify the NUMA node to which the PCIe adapter is connected. diff --git a/doc/guides/nics/mlx5.rst b/doc/guides/nics/mlx5.rst index 220c6e505a..83299646dd 100644 --- a/doc/guides/nics/mlx5.rst +++ b/doc/guides/nics/mlx5.rst @@ -1496,7 +1496,7 @@ Performance tuning for better performance. For VMs, verify that the right CPU and NUMA node are pinned according to the above. Run:: - lstopo-no-graphics + lstopo-no-graphics --merge to identify the NUMA node to which the PCIe adapter is connected.