Struct linux_stats::MemInfo [] [src]

pub struct MemInfo {
    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,
}

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

impl Encodable for MemInfo
[src]

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl Decodable for MemInfo
[src]

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<MemInfo, __D::Error>

impl Clone for MemInfo
[src]

fn clone(&self) -> MemInfo

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Default for MemInfo
[src]

fn default() -> MemInfo

Returns the "default value" for a type. Read more