Struct linux_stats::MemInfo
source · pub struct MemInfo {Show 45 fields
pub mem_total: u64,
pub mem_free: u64,
pub mem_available: u64,
pub bufers: u64,
pub cached: u64,
pub swap_cached: u64,
pub active: u64,
pub inactive: u64,
pub active_anon: u64,
pub inactive_anon: u64,
pub active_file: u64,
pub inactive_file: u64,
pub unevictable: u64,
pub mlocked: u64,
pub swap_total: u64,
pub swap_free: u64,
pub dirty: u64,
pub writeback: u64,
pub anon_pages: u64,
pub mapped: u64,
pub shmem: u64,
pub slab: u64,
pub s_reclaimable: u64,
pub s_unreclaim: u64,
pub kernel_stack: u64,
pub page_tables: u64,
pub nfs_unstable: u64,
pub bounce: u64,
pub writeback_tmp: u64,
pub commit_limit: u64,
pub committed_as: u64,
pub vmalloc_total: u64,
pub vmalloc_used: u64,
pub vmalloc_chunk: u64,
pub hardware_corrupted: u64,
pub anon_huge_pages: u64,
pub cma_total: u64,
pub cma_free: u64,
pub huge_pages_total: u64,
pub huge_pages_free: u64,
pub huge_pages_rsvd: u64,
pub huge_pages_surp: u64,
pub hugepagesize: u64,
pub direct_map_4k: u64,
pub direct_map_2m: u64,
}
Expand description
Represents the output of cat /proc/meminfo
Fields§
§mem_total: u64
§mem_free: u64
§mem_available: u64
§bufers: u64
§cached: u64
§swap_cached: u64
§active: u64
§inactive: u64
§active_anon: u64
§inactive_anon: u64
§active_file: u64
§inactive_file: u64
§unevictable: u64
§mlocked: u64
§swap_total: u64
§swap_free: u64
§dirty: u64
§writeback: u64
§anon_pages: u64
§mapped: u64
§shmem: u64
§slab: u64
§s_reclaimable: u64
§s_unreclaim: u64
§kernel_stack: u64
§page_tables: u64
§nfs_unstable: u64
§bounce: u64
§writeback_tmp: u64
§commit_limit: u64
§committed_as: u64
§vmalloc_total: u64
§vmalloc_used: u64
§vmalloc_chunk: u64
§hardware_corrupted: u64
§anon_huge_pages: u64
§cma_total: u64
§cma_free: u64
§huge_pages_total: u64
§huge_pages_free: u64
§huge_pages_rsvd: u64
§huge_pages_surp: u64
§hugepagesize: u64
§direct_map_4k: u64
§direct_map_2m: u64
Trait Implementations§
source§impl PartialEq<MemInfo> for MemInfo
impl PartialEq<MemInfo> for MemInfo
impl StructuralPartialEq for MemInfo
Auto Trait Implementations§
impl RefUnwindSafe for MemInfo
impl Send for MemInfo
impl Sync for MemInfo
impl Unpin for MemInfo
impl UnwindSafe for MemInfo
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