Struct Stat

Source
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: usize

of bytes of page cache memory.

§rss: usize

of bytes of anonymous and swap cache memory (includes transparent hugepages).

§rss_huge: usize

of bytes of anonymous transparent hugepages.

§mapped_file: usize

of bytes of mapped file (includes tmpfs/shmem)

§pgpgin: usize

of 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: usize

of uncharging events to the memory cgroup. The uncharging event happens each time a page is unaccounted from the cgroup.

§swap: usize

of bytes of swap usage

§dirty: usize

of bytes that are waiting to get written back to the disk.

§writeback: usize

of bytes of file/anon cache that are queued for syncing to disk.

§inactive_anon: usize

of bytes of anonymous and swap cache memory on inactive LRU list.

§active_anon: usize

of bytes of anonymous and swap cache memory on active LRU list.

§inactive_file: usize

of bytes of file-backed memory on inactive LRU list.

§active_file: usize

of bytes of file-backed memory on active LRU list.

§unevictable: usize

of bytes of memory that cannot be reclaimed (mlocked etc).

Auto Trait Implementations§

§

impl Freeze for Stat

§

impl RefUnwindSafe for Stat

§

impl Send for Stat

§

impl Sync for Stat

§

impl Unpin for Stat

§

impl UnwindSafe for Stat

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.