]> git.proxmox.com Git - ksm-control-daemon.git/commitdiff
use vsz instead of rsz to compute memory usage
authorDietmar Maurer <dietmar@proxmox.com>
Fri, 23 Sep 2011 10:08:12 +0000 (12:08 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 23 Sep 2011 10:08:12 +0000 (12:08 +0200)
This change was silently intoduced by a previous commit - so we revert it.
Also supporss header by using 'vsz='

debian/patches/series
debian/patches/use-vsz-instead-of-rsz.diff [new file with mode: 0644]

index 32d3a355fbc5c8b294fc71a38456f9c56d92fce5..7aaec2c63f79fba17ea93b1f4dc87642940edced 100644 (file)
@@ -1,3 +1,4 @@
 init-script.diff
 ksmtuned.diff
 adjust-ksm-slepp.diff
+use-vsz-instead-of-rsz.diff
diff --git a/debian/patches/use-vsz-instead-of-rsz.diff b/debian/patches/use-vsz-instead-of-rsz.diff
new file mode 100644 (file)
index 0000000..6cc4544
--- /dev/null
@@ -0,0 +1,13 @@
+Index: new/ksmtuned
+===================================================================
+--- new.orig/ksmtuned  2011-09-23 12:05:44.000000000 +0200
++++ new/ksmtuned       2011-09-23 12:06:34.000000000 +0200
+@@ -72,7 +72,7 @@
+     # calculate how much memory is committed to running qemu processes
+     local progname
+     progname=${1:-kvm}
+-    ps -C "$progname" -o rsz | awk '{ sum += $1 }; END { print sum }'
++    ps -C "$progname" -o vsz= | awk '{ sum += $1 }; END { print sum }'
+ }
+ free_memory () {