From: Jonas Theisen <j.theisen@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [PATCH manager 2/2] ui: guest status: show memory reclaimed by the balloon device
Date: Mon, 30 Nov 2026 11:20:53 +0100 [thread overview]
Message-ID: <20261130102217.70307-3-j.theisen@proxmox.com> (raw)
In-Reply-To: <20261130102217.70307-1-j.theisen@proxmox.com>
When the balloon is inflated, the memory usage of a VM is only
meaningful relative to the memory that is still left to the guest, and
the host memory usage drops accordingly. Neither the usage bar nor the
host memory usage show how much memory was reclaimed, which makes it
hard to tell whether ballooning is the reason for the difference.
Show the reclaimed amount as its own line in the status view, derived
from the balloon size and the maximum memory that the status API
already returns. Hide it while nothing is reclaimed, so VMs without an
active balloon look as before.
Signed-off-by: Jonas Theisen <j.theisen@proxmox.com>
---
www/manager6/panel/GuestStatusView.js | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/www/manager6/panel/GuestStatusView.js b/www/manager6/panel/GuestStatusView.js
index 60d804a8..3f6bfb7e 100644
--- a/www/manager6/panel/GuestStatusView.js
+++ b/www/manager6/panel/GuestStatusView.js
@@ -136,6 +136,21 @@ Ext.define('PVE.panel.GuestStatusView', {
disabled: '{isLxc}',
},
},
+ {
+ itemId: 'memory-ballooned',
+ iconCls: 'fa fa-fw pmx-itype-icon-memory pmx-icon',
+ title: gettext('Ballooned memory'),
+ valueField: 'balloon',
+ maxField: 'maxmem',
+ printBar: false,
+ hidden: true,
+ // 'balloon' is the memory currently left to the guest, not the amount reclaimed
+ renderer: function (balloon, maxmem) {
+ let ballooned = Ext.isNumeric(balloon) && maxmem > balloon ? maxmem - balloon : 0;
+ this.setVisible(ballooned > 0);
+ return Proxmox.Utils.render_size(ballooned);
+ },
+ },
{
itemId: 'swap',
iconCls: 'fa fa-refresh fa-fw',
--
2.47.3
prev parent reply other threads:[~2026-11-30 10:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 10:20 [PATCH manager/qemu-server 0/2] fix memory usage reporting of VMs with an inflated balloon Jonas Theisen
2026-11-30 10:20 ` [PATCH qemu-server 1/2] vmstatus: do not count memory reclaimed by the balloon as used Jonas Theisen
2026-11-30 10:20 ` Jonas Theisen [this message]
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=20261130102217.70307-3-j.theisen@proxmox.com \
--to=j.theisen@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