From 22aaf0d17fe34af05238c0ec997a6c67a4a6fd37 Mon Sep 17 00:00:00 2001 From: Kevin Traynor Date: Tue, 5 Dec 2023 16:59:25 +0000 Subject: [PATCH] [openvswitch] Add new get-mempool-info and driverctl cmds 'get-mempool-info' without specifying a netdev will capture all the dpdk mempools that exist including ones no longer associated with a netdev but yet to be freed. 'driverctl list-persisted' will list the overrides that are persistent through reboots. Signed-off-by: Kevin Traynor --- sos/report/plugins/openvswitch.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sos/report/plugins/openvswitch.py b/sos/report/plugins/openvswitch.py index eec6f7cefd..57d5a3b08b 100644 --- a/sos/report/plugins/openvswitch.py +++ b/sos/report/plugins/openvswitch.py @@ -105,6 +105,7 @@ def setup(self): "driverctl -v list-devices", "driverctl list-overrides", "driverctl -v list-overrides", + "driverctl list-persisted", # Capture a list of all bond devices "ovs-appctl bond/list", # Capture more details from bond devices @@ -159,7 +160,9 @@ def setup(self): # Capture additional DPDK info "ovs-appctl dpdk/lcore-list", "ovs-appctl dpdk/log-list", - "ovs-appctl dpdk/get-malloc-stats" + "ovs-appctl dpdk/get-malloc-stats", + # Capture dpdk mempool info + "ovs-appctl netdev-dpdk/get-mempool-info" ]) # Capture DPDK and other parameters self.add_cmd_output("ovs-vsctl -t 5 get Open_vSwitch . other_config",