pub struct HostMemory {
pub at: u64,
pub total: u64,
pub available: u64,
pub slice: u64,
pub some: Option<Pressure>,
pub full: Option<Pressure>,
}Expand description
The host’s memory at one moment, beside the slice’s: what admission fits new runners in besides MemoryMax
(ADR 0055). Read every few seconds; not kept in the history.
Fields§
§at: u64When it was read.
total: u64MemTotal in /proc/meminfo, in bytes.
available: u64MemAvailable: what the host could give without swapping, page cache it can drop included, in bytes.
slice: u64The slice’s memory without page cache and reclaimable slab: what the runners hold that MemAvailable leaves
out.
some: Option<Pressure>/proc/pressure/memory’s some line: the share of time at least one task waited for memory. None on a
kernel without pressure stall information.
full: Option<Pressure>Its full line: the share of time every task that could run waited for memory.
Trait Implementations§
Source§impl Clone for HostMemory
impl Clone for HostMemory
impl Copy for HostMemory
Source§impl Debug for HostMemory
impl Debug for HostMemory
Source§impl<'de> Deserialize<'de> for HostMemory
impl<'de> Deserialize<'de> for HostMemory
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for HostMemory
Source§impl PartialEq for HostMemory
impl PartialEq for HostMemory
Source§impl Serialize for HostMemory
impl Serialize for HostMemory
impl StructuralPartialEq for HostMemory
Auto Trait Implementations§
impl Freeze for HostMemory
impl RefUnwindSafe for HostMemory
impl Send for HostMemory
impl Sync for HostMemory
impl Unpin for HostMemory
impl UnsafeUnpin for HostMemory
impl UnwindSafe for HostMemory
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.