Struct cgroups_rs::memory::Kmem [−][src]
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
Auto Trait Implementations
impl RefUnwindSafe for Kmem
impl Send for Kmem
impl Sync for Kmem
impl Unpin for Kmem
impl UnwindSafe for Kmem
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,