History

virtio_balloon: include disk/file caches memory statistics

Add a new field VIRTIO_BALLOON_S_CACHES to virtio_balloon memory statistics protocol. The value represents all disk/file caches. In this case it corresponds to the sum of values Buffers+Cached+SwapCached from /proc/meminfo.

Tomáš Golembiovský committed 9 years ago

Commit 4d320291 parent d8a5b802 files · +6 −1Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/virtio_balloon.h+2−1
@@ -52,7 +52,8 @@ struct virtio_balloon_config { · 51 unmodified lines
52#define VIRTIO_BALLOON_S_MEMFREE 4 /* Total amount of free memory */52#define VIRTIO_BALLOON_S_MEMFREE 4 /* Total amount of free memory */
53#define VIRTIO_BALLOON_S_MEMTOT 5 /* Total amount of memory */53#define VIRTIO_BALLOON_S_MEMTOT 5 /* Total amount of memory */
54#define VIRTIO_BALLOON_S_AVAIL 6 /* Available memory as in /proc */54#define VIRTIO_BALLOON_S_AVAIL 6 /* Available memory as in /proc */
55#define VIRTIO_BALLOON_S_NR 755#define VIRTIO_BALLOON_S_CACHES 7 /* Disk caches */
56#define VIRTIO_BALLOON_S_NR 8
56 57
57/*58/*
58 * Memory statistics structure.59 * Memory statistics structure.