Skip to content

Commit

Permalink
Add oom_group_kill cgroup event type
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Obenhuber committed Sep 20, 2023
1 parent 7d4099c commit 588228b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions northstar-runtime/src/runtime/cgroups.rs
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ fn parse_cgroups_event(s: &str) -> CGroupEvent {
Some("max") => event.max = value,
Some("oom") => event.oom = value,
Some("oom_kill") => event.oom_kill = value,
Some("oom_group_kill") => event.oom_group_kill = value,
Some(_) | None => panic!("invalid content of memory.events"),
}
}
Expand Down
3 changes: 3 additions & 0 deletions northstar-runtime/src/runtime/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,7 @@ pub(crate) struct MemoryEvent {
/// The number of processes belonging to this cgroup
/// killed by any kind of OOM killer.
pub oom_kill: Option<u64>,
/// The number of times the entire cgroup has been kill
/// by any kind of OOM killler.
pub oom_group_kill: Option<u64>
}

0 comments on commit 588228b

Please sign in to comment.