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.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -53,7 +53,9 @@ struct virtio_balloon_config { · 52 unmodified lines | ||
| 53 | 53 | #define VIRTIO_BALLOON_S_MEMTOT 5 /* Total amount of memory */ |
| 54 | 54 | #define VIRTIO_BALLOON_S_AVAIL 6 /* Available memory as in /proc */ |
| 55 | 55 | #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 | |
| 57 | 59 | |
| 58 | 60 | /* |
| 59 | 61 | * Memory statistics structure. |