pub struct CgroupMemory {
pub total_memory: u64,
pub rss: u64,
}Expand description
Memory facts for the cgroup this process is actually in.
Field meanings match what crate::common_config::slot_pool_budget_bytes
consumes, and match sysinfo::CGroupLimits for the two fields we use.
Fields§
§total_memory: u64The effective ceiling: the smallest memory.max on the path from this
process’s cgroup up to the root, clamped to host MemTotal.
rss: u64Anonymous (non-reclaimable) memory charged to the cgroup — anon on v2,
total_rss on v1. This is the part the OOM killer cannot get back.
Trait Implementations§
Source§impl Clone for CgroupMemory
impl Clone for CgroupMemory
Source§fn clone(&self) -> CgroupMemory
fn clone(&self) -> CgroupMemory
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl 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 Freeze for CgroupMemory
impl RefUnwindSafe for CgroupMemory
impl Send for CgroupMemory
impl Sync for CgroupMemory
impl Unpin for CgroupMemory
impl UnsafeUnpin for CgroupMemory
impl UnwindSafe for CgroupMemory
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.