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
5353 #define VIRTIO_BALLOON_S_MEMTOT 5 /* Total amount of memory */
5454 #define VIRTIO_BALLOON_S_AVAIL 6 /* Available memory as in /proc */
5555 #define VIRTIO_BALLOON_S_CACHES 7 /* Disk caches */
56−#define VIRTIO_BALLOON_S_NR 8
56+#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
5759
5860 /*
5961 * Memory statistics structure.