xenserver: Collect /proc/slabinfo in a Server Status Report
authorSajjad Lateef <slateef@nicira.com>
Tue, 22 Mar 2011 18:17:33 +0000 (11:17 -0700)
committerSajjad Lateef <slateef@nicira.com>
Tue, 22 Mar 2011 21:13:10 +0000 (14:13 -0700)
/proc/slabinfo gives information about memory usage
as slab level and can be used to diagnose memory issues
on memory-limited systems

debian/copyright.in
xenserver/README
xenserver/automake.mk
xenserver/etc_xensource_bugtool_kernel-info_openvswitch.xml [new file with mode: 0644]
xenserver/openvswitch-xen.spec

index 3bd68f1..d7ca64a 100644 (file)
@@ -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 [*]
 
index 3e63374..3f26776 100644 (file)
@@ -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.
index 0a44797..225386b 100644 (file)
@@ -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 (file)
index 0000000..67d8b88
--- /dev/null
@@ -0,0 +1,23 @@
+<!--
+ This library is free software; you can redistribute it and/or modify
+ it under the terms of version 2.1 of the GNU Lesser General Public
+ License as published by the Free Software Foundation.
+
+ This library is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+ USA.
+
+ Copyright (C) 2011 Nicira Networks.
+-->
+
+<collect>
+  <files>
+    /proc/slabinfo
+  </files>
+</collect>
index 6516086..7a2e176 100644 (file)
@@ -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