Struct swap::SwapMetrics
source · #[repr(C)]pub struct SwapMetrics {
pub resident_pages: u64,
pub copied_from_file_pages: u64,
pub copied_from_staging_pages: u64,
pub zeroed_pages: u64,
pub redundant_pages: u64,
pub staging_pages: u64,
pub swap_pages: u64,
}
Expand description
Current metrics of vmm-swap.
This is only available while vmm-swap is enabled.
Fields§
§resident_pages: u64
count of pages on RAM.
copied_from_file_pages: u64
count of pages copied from the vmm-swap file.
copied_from_staging_pages: u64
count of pages copied from the staging memory.
zeroed_pages: u64
count of pages initialized with zero.
redundant_pages: u64
count of pages which were already initialized on page faults. This can happen when several threads/processes access the uninitialized/removed page at the same time.
staging_pages: u64
count of pages in staging memory.
swap_pages: u64
count of pages in swap files.
Trait Implementations§
source§impl Clone for SwapMetrics
impl Clone for SwapMetrics
source§fn clone(&self) -> SwapMetrics
fn clone(&self) -> SwapMetrics
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SwapMetrics
impl Debug for SwapMetrics
source§impl Default for SwapMetrics
impl Default for SwapMetrics
source§fn default() -> SwapMetrics
fn default() -> SwapMetrics
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SwapMetrics
impl<'de> Deserialize<'de> for SwapMetrics
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for SwapMetrics
impl Serialize for SwapMetrics
impl Copy for SwapMetrics
Auto Trait Implementations§
impl RefUnwindSafe for SwapMetrics
impl Send for SwapMetrics
impl Sync for SwapMetrics
impl Unpin for SwapMetrics
impl UnwindSafe for SwapMetrics
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more