pub struct CgroupMemory {
pub limit_bytes: u64,
pub charged_bytes: Option<u64>,
pub working_set_bytes: Option<u64>,
pub source: &'static str,
}Expand description
The lowest memory limit on this process’s cgroup path and what is charged against it.
Fields§
§limit_bytes: u64The limit, memory.max or memory.limit_in_bytes.
charged_bytes: Option<u64>What the kernel charges at that level, file page cache included.
working_set_bytes: Option<u64>The charge less the page cache the kernel reclaims before it kills (inactive_file and
active_file); the charge itself when memory.stat cannot be read.
source: &'static strcgroup-v2 or cgroup-v1.
Trait Implementations§
Source§impl Clone for CgroupMemory
impl Clone for CgroupMemory
impl Copy for CgroupMemory
Source§impl Debug for CgroupMemory
impl Debug for CgroupMemory
impl Eq for CgroupMemory
Source§impl PartialEq for CgroupMemory
impl PartialEq for CgroupMemory
impl StructuralPartialEq for CgroupMemory
Auto Trait Implementations§
impl Forget for CgroupMemory
impl Freeze for CgroupMemory
impl Move for CgroupMemory
impl RefUnwindSafe for CgroupMemory
impl Send for CgroupMemory
impl Sync for CgroupMemory
impl Unpin for CgroupMemory
impl UnsafeUnpin for CgroupMemorywhere
&'static str: UnsafeUnpin,
impl UnwindSafe for CgroupMemorywhere
&'static str: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more