[][src]Struct cgroups_rs::memory::Kmem

pub struct Kmem {
    pub fail_cnt: u64,
    pub limit_in_bytes: i64,
    pub usage_in_bytes: u64,
    pub max_usage_in_bytes: u64,
    pub slabinfo: String,
}

Gathered statistics and the current state of limitation of the kernel's memory usage. Note that this is per-cgroup, so the kernel can of course use more memory, but it will fail operations by these tasks if it would think that the limits here would be violated. It's important to note that interrupts in particular might not be able to enforce these limits.

Fields

fail_cnt: u64

How many times the limit has been hit.

limit_in_bytes: i64

The limit in bytes of the kernel memory used by the control group's tasks.

usage_in_bytes: u64

The current usage of kernel memory used by the control group's tasks, in bytes.

max_usage_in_bytes: u64

The maximum observed usage of kernel memory used by the control group's tasks, in bytes.

slabinfo: String

Contains information about the memory usage of the kernel's caches, per control group.

Trait Implementations

impl Debug for Kmem[src]

Auto Trait Implementations

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, 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.