[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#825209: Incomplete statistics to manage balloon effectively



control: reassign -1 src:linux

On Tue, May 24, 2016 at 02:53:53PM +0000, Anna Melekhova (Vorobyova) wrote:
> Package: kernel
> Version: Debian 7, Debian 8

as #825208, these are not valid headers, but reassigning nonetheless.

> There is QEMU/KVM and a Linux OS running inside the guest.
> Inside the Linux guest a balloon consumes memory in accordance with
> commands performed on the host side in QEMU and reports some statistics through memstat structure.
> For the Linux guest reported “free” value doesn’t describe the guest memory pressure at all.
> The provided patch set in Linux kernel extends the stat with available field.
> 
> The problem is addressed in mainstream Linux with the following patchset:
> 
> commit
> 
> 5057dcd0f1aaad57e07e728ba20a99e205c6b9de
> 
> Author: Igor Redko <redkoi@virtuozzo.com<mailto:redkoi@virtuozzo.com>>
> Date: Thu Mar 17 15:09:34 2016 -0700
> virtio_balloon: export 'available' memory to 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.
> 
> Signed-off-by: Igor Redko <redkoi@virtuozzo.com<mailto:redkoi@virtuozzo.com>>
> Signed-off-by: Denis V. Lunev <den@openvz.org<mailto:den@openvz.org>>
> Reviewed-by: Roman Kagan <rkagan@virtuozzo.com<mailto:rkagan@virtuozzo.com>>
> Cc: Michael S. Tsirkin <mst@redhat.com<mailto:mst@redhat.com>>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org<mailto:akpm@linux-foundation.org>>
> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org<mailto:torvalds@linux-foundation.org>>
> 
> 
> commit d02bd27bd33dd7e8d22594cd568b81be0cb584cd
> Author: Igor Redko <redkoi@virtuozzo.com<mailto:redkoi@virtuozzo.com>>
> Date: Thu Mar 17 15:09:34 2016 -0700
> mm/page_alloc.c: calculate 'available' memory in a separate function
> 
> 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.
> 
> This patch (of 2):
> 
> Factor out calculation of the available memory counter into a separate
> exportable function, in order to be able to use it in other parts of the
> kernel.
> 
> In particular, it appears a relevant metric to report to the hypervisor
> via virtio-balloon statistics interface (in a followup patch).
> 
> Signed-off-by: Igor Redko <redkoi@virtuozzo.com<mailto:redkoi@virtuozzo.com>>
> Signed-off-by: Denis V. Lunev <den@openvz.org<mailto:den@openvz.org>>
> Reviewed-by: Roman Kagan <rkagan@virtuozzo.com<mailto:rkagan@virtuozzo.com>>
> Cc: Michael S. Tsirkin <mst@redhat.com<mailto:mst@redhat.com>>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org<mailto:akpm@linux-foundation.org>>
> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org<mailto:torvalds@linux-foundation.org>>
> 

-- 
regards,
                        Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540      .''`.
more about me:  https://mapreri.org                             : :'  :
Launchpad user: https://launchpad.net/~mapreri                  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-

Attachment: signature.asc
Description: PGP signature


Reply to: