[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] virtio_balloon: include buffers and chached mem
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH] virtio_balloon: include buffers and chached memory statistics |
Date: |
Wed, 20 Sep 2017 10:55:45 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 |
On 09/20/2017 10:48 AM, Tomáš Golembiovský wrote:
In the subject: s/chached/cached/
> Add a new fields, VIRTIO_BALLOON_S_BUFFERS and VIRTIO_BALLOON_S_CACHED,
> to virtio_balloon memory statistics protocol. The values correspond to
> 'Buffers' and 'Cached' in /proc/meminfo.
>
> To be able to compute the value of 'Cached' memory it is necessary to
> export total_swapcache_pages() to modules.
>
> Signed-off-by: Tomáš Golembiovský <address@hidden>
> ---
> drivers/virtio/virtio_balloon.c | 11 +++++++++++
> include/uapi/linux/virtio_balloon.h | 4 +++-
> mm/swap_state.c | 1 +
> 3 files changed, 15 insertions(+), 1 deletion(-)
>
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
signature.asc
Description: OpenPGP digital signature