]> git.proxmox.com Git - ksm-control-daemon.git/commitdiff
ksmtuned: revert to use rsz instead of vsz to compute memory usage
authorStefan Lendl <s.lendl@proxmox.com>
Mon, 8 Apr 2024 12:17:42 +0000 (14:17 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 8 Apr 2024 12:39:13 +0000 (14:39 +0200)
For summing up actual memory usage of precesses rsz is more suitable
then vsz.

This reverts commit cd5cf20cc8af53427dcb9b08486c68f376ce8743.

Signed-off-by: Stefan Lendl <s.lendl@proxmox.com>
debian/patches/series
debian/patches/use-vsz-instead-of-rsz.diff [deleted file]

index 7aaec2c63f79fba17ea93b1f4dc87642940edced..32d3a355fbc5c8b294fc71a38456f9c56d92fce5 100644 (file)
@@ -1,4 +1,3 @@
 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
deleted file mode 100644 (file)
index 6cc4544..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-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 () {