[RFC 5/5] xen: balloon: update the NR_BALLOON_PAGES state

2025-03-11 Thread Nico Pache
Update the NR_BALLOON_PAGES counter when pages are added to or removed from the Xen balloon. Signed-off-by: Nico Pache --- drivers/xen/balloon.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/xen/balloon.c b/drivers/xen/balloon.c index 163f7f1d70f1..65d4e7fa1eb8 100644 --- a

[RFC 4/5] vmx_balloon: update the NR_BALLOON_PAGES state

2025-03-11 Thread Nico Pache
Update the NR_BALLOON_PAGES counter when pages are added to or removed from the VMware balloon. Signed-off-by: Nico Pache --- drivers/misc/vmw_balloon.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/misc/vmw_balloon.c b/drivers/misc/vmw_balloon.c index

[RFC 3/5] hv_balloon: update the NR_BALLOON_PAGES state

2025-03-11 Thread Nico Pache
Update the NR_BALLOON_PAGES counter when pages are added to or removed from the Hyper-V balloon. Signed-off-by: Nico Pache --- drivers/hv/hv_balloon.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/hv/hv_balloon.c b/drivers/hv/hv_balloon.c index fec2f18679e3..2b4080e51f97 100644

[RFC 2/5] virtio_balloon: update the NR_BALLOON_PAGES state

2025-03-11 Thread Nico Pache
Update the NR_BALLOON_PAGES counter when pages are added to or removed from the virtio balloon. Signed-off-by: Nico Pache --- drivers/virtio/virtio_balloon.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/virtio/virtio_balloon.c b/drivers/virtio/virtio_balloon.c index

[RFC 1/5] meminfo: add a per node counter for balloon drivers

2025-03-11 Thread Nico Pache
Add NR_BALLOON_PAGES counter to track memory used by balloon drivers and expose it through /proc/meminfo and other memory reporting interfaces. Signed-off-by: Nico Pache --- fs/proc/meminfo.c | 2 ++ include/linux/mmzone.h | 1 + mm/memcontrol.c| 1 + mm/show_mem.c | 4

[RFC 0/5] track memory used by balloon drivers

2025-03-11 Thread Nico Pache
: virtio_balloon, run stress-ng, inflate balloon, oom prints Signed-off-by: Nico Pache Nico Pache (5): meminfo: add a per node counter for balloon drivers virtio_balloon: update the NR_BALLOON_PAGES state hv_balloon: update the NR_BALLOON_PAGES state vmx_balloon: update the NR_BALLOON_PAGES