From: Sajjad Lateef Date: Tue, 22 Mar 2011 18:17:33 +0000 (-0700) Subject: xenserver: Collect /proc/slabinfo in a Server Status Report X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f8dc363739f905f190469ca764b5206087b755f;p=openvswitch xenserver: Collect /proc/slabinfo in a Server Status Report /proc/slabinfo gives information about memory usage as slab level and can be used to diagnose memory issues on memory-limited systems --- diff --git a/debian/copyright.in b/debian/copyright.in index 3bd68f1e..d7ca64af 100644 --- a/debian/copyright.in +++ b/debian/copyright.in @@ -53,6 +53,7 @@ License: GNU Lesser General Public Licence version 2.1. debian/ovs-bugtool + xenserver/etc_xensource_bugtool_kernel-info_openvswitch.xml [*] xenserver/etc_xensource_bugtool_network-status_openvswitch.xml [*] xenserver/usr_share_openvswitch_scripts_xen-bugtool-tc-class-show [*] diff --git a/xenserver/README b/xenserver/README index 3e63374c..3f267760 100644 --- a/xenserver/README +++ b/xenserver/README @@ -40,6 +40,11 @@ files are: Open vSwitch. Runs usr_share_openvswitch_scripts_xen-bugtool-tc-class-show. + etc_xensource_bugtool_kernel-info_openvswitch.xml + + xen-bugtool extension to collect kernel information relevant to + Open vSwitch. + etc_xensource_scripts_vif Open vSwitch-aware replacement for Citrix script of the same name. diff --git a/xenserver/automake.mk b/xenserver/automake.mk index 0a44797d..225386b9 100644 --- a/xenserver/automake.mk +++ b/xenserver/automake.mk @@ -16,6 +16,7 @@ EXTRA_DIST += \ xenserver/etc_profile.d_openvswitch.sh \ xenserver/etc_xapi.d_plugins_openvswitch-cfg-update \ xenserver/etc_xensource_bugtool_network-status_openvswitch.xml \ + xenserver/etc_xensource_bugtool_kernel-info_openvswitch.xml \ xenserver/etc_xensource_scripts_vif \ xenserver/openvswitch-xen.spec \ xenserver/opt_xensource_libexec_InterfaceReconfigure.py \ diff --git a/xenserver/etc_xensource_bugtool_kernel-info_openvswitch.xml b/xenserver/etc_xensource_bugtool_kernel-info_openvswitch.xml new file mode 100644 index 00000000..67d8b88e --- /dev/null +++ b/xenserver/etc_xensource_bugtool_kernel-info_openvswitch.xml @@ -0,0 +1,23 @@ + + + + + /proc/slabinfo + + diff --git a/xenserver/openvswitch-xen.spec b/xenserver/openvswitch-xen.spec index 6516086f..7a2e1761 100644 --- a/xenserver/openvswitch-xen.spec +++ b/xenserver/openvswitch-xen.spec @@ -83,6 +83,9 @@ install -m 755 xenserver/etc_xapi.d_plugins_openvswitch-cfg-update \ install -d -m 755 $RPM_BUILD_ROOT/etc/xensource/bugtool/network-status install -m 644 xenserver/etc_xensource_bugtool_network-status_openvswitch.xml \ $RPM_BUILD_ROOT/etc/xensource/bugtool/network-status/openvswitch.xml +install -d -m 755 $RPM_BUILD_ROOT/etc/xensource/bugtool/kernel-info +install -m 644 xenserver/etc_xensource_bugtool_kernel-info_openvswitch.xml \ + $RPM_BUILD_ROOT/etc/xensource/bugtool/kernel-info/openvswitch.xml install -d -m 755 $RPM_BUILD_ROOT/usr/share/openvswitch/scripts install -m 644 vswitchd/vswitch.ovsschema \ $RPM_BUILD_ROOT/usr/share/openvswitch/vswitch.ovsschema @@ -313,6 +316,7 @@ fi /etc/init.d/openvswitch-xapi-update /etc/xapi.d/plugins/openvswitch-cfg-update /etc/xensource/bugtool/network-status/openvswitch.xml +/etc/xensource/bugtool/kernel-info/openvswitch.xml /etc/logrotate.d/openvswitch /etc/profile.d/openvswitch.sh /usr/share/openvswitch/python/ovs/__init__.py