public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Stefan Lendl <s.lendl@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH v2 ksm-control-daemon 1/2] ksmtuned: revert to use rsz instead of vsz to compute memory usage
Date: Mon,  8 Apr 2024 14:17:42 +0200	[thread overview]
Message-ID: <20240408121742.236867-2-s.lendl@proxmox.com> (raw)

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                      |  1 -
 debian/patches/use-vsz-instead-of-rsz.diff | 13 -------------
 2 files changed, 14 deletions(-)
 delete mode 100644 debian/patches/use-vsz-instead-of-rsz.diff

diff --git a/debian/patches/series b/debian/patches/series
index 7aaec2c..32d3a35 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -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
index 6cc4544..0000000
--- a/debian/patches/use-vsz-instead-of-rsz.diff
+++ /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 () {
-- 
2.44.0





             reply	other threads:[~2024-04-08 12:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-08 12:17 Stefan Lendl [this message]
2024-04-08 12:17 ` [pve-devel] [PATCH v2 ksm-control-daemon 2/2] ksmtuned: fix formatting when summing up large numbers Stefan Lendl
2024-04-08 12:43 ` [pve-devel] applied: [PATCH v2 ksm-control-daemon 1/2] ksmtuned: revert to use rsz instead of vsz to compute memory usage Thomas Lamprecht

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240408121742.236867-2-s.lendl@proxmox.com \
    --to=s.lendl@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal