pub struct OomEventInfo {
pub victim_pid: u32,
pub victim_comm: String,
pub oom_score_adj: i16,
pub total_vm_kb: u64,
pub rss_kb: u64,
pub timestamp_ns: u64,
pub reason: String,
pub is_suspicious: bool,
}Expand description
Information about an OOM kill event recovered from kernel logs.
Fields§
§victim_pid: u32PID of the process that was OOM-killed.
victim_comm: StringCommand name of the killed process.
oom_score_adj: i16OOM score adjustment at time of kill.
total_vm_kb: u64Total virtual memory in kilobytes.
rss_kb: u64Resident set size in kilobytes.
timestamp_ns: u64Timestamp in nanoseconds from the printk record.
reason: StringSource of the OOM event (e.g. “oom_kill_process”, “mem_cgroup_oom”).
is_suspicious: boolTrue when the victim is a security/monitoring process or has PID < 100.
Trait Implementations§
Source§impl Clone for OomEventInfo
impl Clone for OomEventInfo
Source§fn clone(&self) -> OomEventInfo
fn clone(&self) -> OomEventInfo
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 moreSource§impl Debug for OomEventInfo
impl Debug for OomEventInfo
Auto Trait Implementations§
impl Freeze for OomEventInfo
impl RefUnwindSafe for OomEventInfo
impl Send for OomEventInfo
impl Sync for OomEventInfo
impl Unpin for OomEventInfo
impl UnsafeUnpin for OomEventInfo
impl UnwindSafe for OomEventInfo
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