[−][src]Struct cgroups_rs::memory::Memory
State of and statistics gathered by the kernel about the memory usage of the control group's tasks.
Fields
fail_cnt: u64
How many times the limit has been hit.
limit_in_bytes: i64
The limit in bytes of the memory usage of the control group's tasks.
usage_in_bytes: u64
The current usage of memory by the control group's tasks.
max_usage_in_bytes: u64
The maximum observed usage of memory by the control group's tasks.
move_charge_at_immigrate: u64
Whether moving charges at immigrate is allowed.
numa_stat: NumaStat
Contains various statistics about the NUMA locality of the control group's tasks.
The format of this field (as lifted from the kernel sources):
total=<total pages> N0=<node 0 pages> N1=<node 1 pages> ...
file=<total file pages> N0=<node 0 pages> N1=<node 1 pages> ...
anon=<total anon pages> N0=<node 0 pages> N1=<node 1 pages> ...
unevictable=<total anon pages> N0=<node 0 pages> N1=<node 1 pages> ...
hierarchical_<counter>=<counter pages> N0=<node 0 pages> N1=<node 1 pages> ...
oom_control: OomControl
Various statistics and control information about the Out Of Memory killer.
soft_limit_in_bytes: i64
Allows setting a limit to memory usage which is enforced when the system (note, not the control group) detects memory pressure.
stat: MemoryStat
Contains a wide array of statistics about the memory usage of the tasks in the control group.
swappiness: u64
Set the tendency of the kernel to swap out parts of the address space consumed by the control group's tasks.
Note that setting this to zero does not prevent swapping, use mlock(2)
for that
purpose.
use_hierarchy: u64
If set, then under OOM conditions, the kernel will try to reclaim memory from the children of the offending process too. By default, this is not allowed.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Memory
[src]
impl Send for Memory
[src]
impl Sync for Memory
[src]
impl Unpin for Memory
[src]
impl UnwindSafe for Memory
[src]
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>,