Skip to contentSkip to conversation

doc: improve lstopo tip

PATCH Superseded Thomas Monjalon 1 participant 3 messages Mar 8, 2021 – May 21, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 doc: improve lstopo tip

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.

---
 doc/guides/linux_gsg/build_sample_apps.rst | 2 +-
 doc/guides/nics/mlx4.rst                   | 2 +-
 doc/guides/nics/mlx5.rst                   | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
doc/guides/linux_gsg/build_sample_apps.rst +1 -1
index 78652549a7..95e7bb067d 100644
@@ -142,7 +142,7 @@ This can be useful when using other processors to understand the mapping of the
     On Fedora Linux, this may be installed and run using the following command::
 
         sudo yum install hwloc
-        ./lstopo
+        lstopo
 
 .. warning::
 
doc/guides/nics/mlx4.rst +1 -1
index 9742ddb268..a25add7c47 100644
@@ -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.
 
doc/guides/nics/mlx5.rst +1 -1
index 7c50497fbc..ac4d0e0450 100644
@@ -1401,7 +1401,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.
 
Signature · 1 line
2.30.1
#1 lore raw

PATCH v2 1/1 doc: improve lstopo tip

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.

---
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(-)
doc/guides/linux_gsg/build_sample_apps.rst +9 -4
index 78652549a7..709b301427 100644
@@ -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::
 
doc/guides/nics/mlx4.rst +1 -1
index 9742ddb268..a25add7c47 100644
@@ -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.
 
doc/guides/nics/mlx5.rst +1 -1
index 220c6e505a..83299646dd 100644
@@ -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.
 
Signature · 1 line
2.31.1
author Applied
#2 lore raw

21/05/2021 11:06, Thomas Monjalon:

Quoted 6 lines

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.

I think this option can be quite useful.

Applied