[sos-devel] [PATCH] [openvswitch] Add DPDK port mempool information.

Kevin Traynor ktraynor at redhat.com
Wed Feb 7 16:28:49 UTC 2018


"ovs-appctl netdev-dpdk/get-mempool-info <port>" will
dump the mempool information for DPDK ports.

This can be used to help debug memory issues with DPDK ports.

Signed-off-by: Kevin Traynor <ktraynor at redhat.com>
---
 sos/plugins/openvswitch.py | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/sos/plugins/openvswitch.py b/sos/plugins/openvswitch.py
index a137eda..ceee80d 100644
--- a/sos/plugins/openvswitch.py
+++ b/sos/plugins/openvswitch.py
@@ -136,4 +136,14 @@ class OpenVSwitch(Plugin):
                         ])
 
+        # Gather info on the DPDK mempools associated with each DPDK port
+        br_list_result = self.call_ext_prog("ovs-vsctl -t 5 list-br")
+        if br_list_result['status'] == 0:
+            for br in br_list_result['output'].splitlines():
+                port_list_result = self.call_ext_prog("ovs-vsctl -t 5 list-ports %s" % br)
+                if port_list_result['status'] == 0:
+                    for port in port_list_result['output'].splitlines():
+                        self.add_cmd_output([
+                            "ovs-appctl netdev-dpdk/get-mempool-info %s" % port
+                        ])
 
 class RedHatOpenVSwitch(OpenVSwitch, RedHatPlugin):
-- 
1.8.3.1




More information about the sos-devel mailing list