[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1455637852-7323-1-git-send-email-den@openvz.org>
Date: Tue, 16 Feb 2016 18:50:50 +0300
From: "Denis V. Lunev" <den@...nvz.org>
To: unlisted-recipients:; (no To-header on input)
Cc: virtualization@...ts.linux-foundation.org,
linux-kernel@...r.kernel.org, "Denis V. Lunev" <den@...nvz.org>,
Igor Redko <redkoi@...tuozzo.com>,
"Michael S. Tsirkin" <mst@...hat.com>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: [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.
Signed-off-by: Igor Redko <redkoi@...tuozzo.com>
Reviewed-by: Roman Kagan <rkagan@...tuozzo.com>
Signed-off-by: Denis V. Lunev <den@...nvz.org>
CC: Michael S. Tsirkin <mst@...hat.com>
CC: Andrew Morton <akpm@...ux-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
Powered by blists - more mailing lists