pub struct HostHazard {
pub since: u64,
pub until: u64,
pub running: u64,
pub credited: u64,
pub low_line: u64,
pub critical_line: u64,
pub low: HostSpan,
pub critical: HostSpan,
pub lowest: u64,
pub lowest_credited: Option<u64>,
pub lowest_swap_free: Option<u64>,
}Expand description
What the host’s memory came to while CI ran over a window, from the readings the budget’s events stored (ADR 0108):
how long MemAvailable stood under each line, the least it and SwapFree fell to, and how much of that came while
the host’s limit took a credit. Times are seconds, sizes bytes.
Fields§
§since: u64The start of the window: a UTC day’s, or the digest’s 24 hours’.
until: u64Its end.
running: u64How long a runner ran with a reading of the host.
credited: u64Of that, how long a host credit stood.
low_line: u64The line under which sockets start to throttle: the host’s margin and a quarter of its memory (ADR 0099).
critical_line: u64The line under which systemd-oomd may act once swap is full too: a tenth of the host’s memory.
low: HostSpanHow long MemAvailable stood under low_line.
critical: HostSpanHow long it stood under critical_line.
lowest: u64The least MemAvailable read.
lowest_credited: Option<u64>The least read while a host credit stood; None when none did.
lowest_swap_free: Option<u64>The least SwapFree read; None on a host without swap.
Implementations§
Source§impl HostHazard
impl HostHazard
Sourcepub fn line(&self) -> String
pub fn line(&self) -> String
The window in a line: CI ran 9h 12m, 6h 10m of it on a host credit; under 19.4G available for 1h 04m (41m on a credit); under 6.2G available for 34s (34s on a credit); lowest 4.1G (4.5G on a credit); swap free at least 8.2G.
Without a host credit in it, nothing is said of one.
Sourcepub fn dated_line(&self) -> String
pub fn dated_line(&self) -> String
The window’s UTC day and its line, as runnerctl insights and the dashboard list the days: Nov 6: CI ran ….
Trait Implementations§
Source§impl Clone for HostHazard
impl Clone for HostHazard
impl Copy for HostHazard
Source§impl Debug for HostHazard
impl Debug for HostHazard
Source§impl<'de> Deserialize<'de> for HostHazard
impl<'de> Deserialize<'de> for HostHazard
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>,
impl Eq for HostHazard
Source§impl PartialEq for HostHazard
impl PartialEq for HostHazard
Source§impl Serialize for HostHazard
impl Serialize for HostHazard
impl StructuralPartialEq for HostHazard
Auto Trait Implementations§
impl Forget for HostHazard
impl Freeze for HostHazard
impl RefUnwindSafe for HostHazard
impl Send for HostHazard
impl Sync for HostHazard
impl Unpin for HostHazard
impl UnsafeUnpin for HostHazard
impl UnwindSafe for HostHazard
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
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
key and return true if they are equal.