All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] export 'available' memory to virtio balloon statistics
@ 2016-02-16 15:50 Denis V. Lunev
  2016-02-16 15:50 ` [PATCH 1/2] calculate 'available' memory in the separate function Denis V. Lunev
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Denis V. Lunev @ 2016-02-16 15:50 UTC (permalink / raw)
  Cc: virtualization, linux-kernel, Denis V. Lunev, Igor Redko,
	Michael S. Tsirkin, Andrew Morton

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.

Signed-off-by: Igor Redko <redkoi@virtuozzo.com>
Reviewed-by: Roman Kagan <rkagan@virtuozzo.com>
Signed-off-by: Denis V. Lunev <den@openvz.org>
CC: Michael S. Tsirkin <mst@redhat.com>
CC: Andrew Morton <akpm@linux-foundation.org>

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(-)

-- 
2.5.0

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2016-02-23 16:13 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-16 15:50 [PATCH 0/2] export 'available' memory to virtio balloon statistics Denis V. Lunev
2016-02-16 15:50 ` [PATCH 1/2] calculate 'available' memory in the separate function Denis V. Lunev
2016-02-16 15:50 ` Denis V. Lunev
2016-02-16 15:50 ` [PATCH 2/2] virtio_balloon: export 'available' memory to balloon statistics Denis V. Lunev
2016-02-16 15:50 ` Denis V. Lunev
2016-02-23 15:10   ` Michael S. Tsirkin
2016-02-23 15:26     ` Denis V. Lunev
2016-02-23 15:26     ` Denis V. Lunev
2016-02-23 15:53       ` Michael S. Tsirkin
2016-02-23 15:53         ` Michael S. Tsirkin
2016-02-23 16:12         ` Denis V. Lunev
2016-02-23 16:12           ` Denis V. Lunev
2016-02-23 15:10   ` Michael S. Tsirkin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.