History

virtio_balloon: export hugetlb page allocation counts

Export the number of successful and failed hugetlb page allocations via the virtio balloon driver. These 2 counts come directly from the vm_events HTLB_BUDDY_PGALLOC and HTLB_BUDDY_PGALLOC_FAIL.

Jonathan Helman committed 8 years ago

Commit 6c64fe71 parent dc32bb62 files · +9 −1Browse files

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

Unified · Split

include/uapi/linux/virtio_balloon.h+3−1
@@ -53,7 +53,9 @@ struct virtio_balloon_config { · 52 unmodified lines
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_CACHES 7 /* Disk caches */55#define VIRTIO_BALLOON_S_CACHES 7 /* Disk caches */
56#define VIRTIO_BALLOON_S_NR 856#define VIRTIO_BALLOON_S_HTLB_PGALLOC 8 /* Hugetlb page allocations */
57#define VIRTIO_BALLOON_S_HTLB_PGFAIL 9 /* Hugetlb page allocation failures */
58#define VIRTIO_BALLOON_S_NR 10
57 59
58/*60/*
59 * Memory statistics structure.61 * Memory statistics structure.