pub struct Stat {Show 14 fields
pub cache: usize,
pub rss: usize,
pub rss_huge: usize,
pub mapped_file: usize,
pub pgpgin: usize,
pub pgpgout: usize,
pub swap: usize,
pub dirty: usize,
pub writeback: usize,
pub inactive_anon: usize,
pub active_anon: usize,
pub inactive_file: usize,
pub active_file: usize,
pub unevictable: usize,
}Expand description
Per-memory cgroup local status
Fields§
§cache: usizeof bytes of page cache memory.
rss: usizeof bytes of anonymous and swap cache memory (includes transparent hugepages).
rss_huge: usizeof bytes of anonymous transparent hugepages.
mapped_file: usizeof bytes of mapped file (includes tmpfs/shmem)
pgpgin: usizeof charging events to the memory cgroup. The charging event happens each time a page is accounted as either mapped anon page(RSS) or cache page(Page Cache) to the cgroup.
pgpgout: usizeof uncharging events to the memory cgroup. The uncharging event happens each time a page is unaccounted from the cgroup.
swap: usizeof bytes of swap usage
dirty: usizeof bytes that are waiting to get written back to the disk.
writeback: usizeof bytes of file/anon cache that are queued for syncing to disk.
inactive_anon: usizeof bytes of anonymous and swap cache memory on inactive LRU list.
active_anon: usizeof bytes of anonymous and swap cache memory on active LRU list.
inactive_file: usizeof bytes of file-backed memory on inactive LRU list.
active_file: usizeof bytes of file-backed memory on active LRU list.
unevictable: usizeof bytes of memory that cannot be reclaimed (mlocked etc).