pub struct BalloonStats {Show 14 fields
pub actual_mib: u32,
pub actual_pages: u32,
pub available_memory: Option<i64>,
pub disk_caches: Option<i64>,
pub free_memory: Option<i64>,
pub hugetlb_allocations: Option<i64>,
pub hugetlb_failures: Option<i64>,
pub major_faults: Option<i64>,
pub minor_faults: Option<i64>,
pub swap_in: Option<i64>,
pub swap_out: Option<i64>,
pub target_mib: u32,
pub target_pages: u32,
pub total_memory: Option<i64>,
}
Expand description
Provides detailed memory statistics from the balloon device, helping monitor memory usage patterns and performance of the guest VM. These statistics are essential for making informed decisions about memory allocation and identifying potential memory-related issues.
Fields§
§actual_mib: u32
Actual amount of memory (in MiB) the device is holding
actual_pages: u32
Actual number of pages the device is holding
available_memory: Option<i64>
An estimate of how much memory is available (in bytes) for starting new applications, without pushing the system to swap
disk_caches: Option<i64>
The amount of memory, in bytes, that can be quickly reclaimed without additional I/O. Typically these pages are used for caching files from disk
free_memory: Option<i64>
The amount of memory not being used for any purpose (in bytes)
hugetlb_allocations: Option<i64>
The number of successful hugetlb page allocations in the guest
hugetlb_failures: Option<i64>
The number of failed hugetlb page allocations in the guest
major_faults: Option<i64>
The number of major page faults that have occurred
minor_faults: Option<i64>
The number of minor page faults that have occurred
swap_in: Option<i64>
The amount of memory that has been swapped in (in bytes)
swap_out: Option<i64>
The amount of memory that has been swapped out to disk (in bytes)
target_mib: u32
Target amount of memory (in MiB) the device aims to hold
target_pages: u32
Target number of pages the device aims to hold
total_memory: Option<i64>
The total amount of memory available (in bytes)