Skip to content

export 'available' memory to virtio balloon statistics

Denis V. Lunev lkml virtualization 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2calculate 'available' memory in the separate functionfs/proc/meminfo.c include/linux/mm.h mm/page_alloc.c+45 -300 replies
1/2calculate 'available' memory in the separate functionfs/proc/meminfo.c include/linux/mm.h mm/page_alloc.c+45 -300 replies
2/2virtio_balloon: export 'available' memory to balloon statisticsdrivers/virtio/virtio_balloon.c include/uapi/linux/virtio_balloon.h+8 -10 replies
2/2virtio_balloon: export 'available' memory to balloon statisticsdrivers/virtio/virtio_balloon.c include/uapi/linux/virtio_balloon.h+8 -16 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchRoman Kagan
SeriesR-b
1/2R-b R-b
1/2R-b R-b
2/2R-b R-b
2/2R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] export 'available' memory to virtio balloon statistics

Add a new field, VIRTIO_BALLOON_S_AVAIL, to virtio_balloon memory statistics protocol, corresponding to 'Available' in /proc/meminfo.

It indicates to the hypervisor how big the balloon can be inflated without pushing the guest system to swap. This metric would be very useful in VM orchestration software to improve memory management of different VMs under overcommit.

Igor Redko (2):
calculate 'available' memory in the separate function
virtio_balloon: export 'available' memory to balloon statistics

 drivers/virtio/virtio_balloon.c     |  6 ++++++
 fs/proc/meminfo.c                   | 31 +-------------------------
 include/linux/mm.h                  |  1 +
 include/uapi/linux/virtio_balloon.h |  3 ++-
 mm/page_alloc.c                     | 43 +++++++++++++++++++++++++++++++++++++
 5 files changed, 53 insertions(+), 31 deletions(-)
Signature · 1 line
2.5.0