Struct tabin_plugins::sys::fs::cgroup::memory::Stat[][src]

pub struct Stat {
    pub cache: usize,
    pub rss: usize,
    pub rss_huge: usize,
    pub swap: usize,
}

Some fields from the memory.stat file

All values are in bytes, contrary to the same file from procfs which reports everything in pages

Fields

cache: usize

Memory used, including the filesystem page cache. This number will never decrease unless memory presure gets applied from outside the cgroup.

rss: usize

Actual memory being used by the cgroup

rss_huge: usize

Only hugetables. This is included in rss

swap: usize

Number of bytes that have been swapped out to disk

Implementations

impl Stat[src]

pub fn load() -> Result<Stat, Error>[src]

Read information from the filesystem and create a new Stat

Trait Implementations

impl Debug for Stat[src]

Auto Trait Implementations

impl RefUnwindSafe for Stat

impl Send for Stat

impl Sync for Stat

impl Unpin for Stat

impl UnwindSafe for Stat

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.