diff --git a/docs/4-implementation/scheduler/coordinator.md b/docs/4-implementation/scheduler/coordinator.md index 172545182..1fbb534e9 100644 --- a/docs/4-implementation/scheduler/coordinator.md +++ b/docs/4-implementation/scheduler/coordinator.md @@ -519,8 +519,8 @@ runs still get +900 and bash tasks +1000. The container stays up through these kills. Each one counts in the `hyperhive.container.memory.oom_kills` metric, shown as "OOM kills by agent" on the health tab of the agents dashboard. `hyperhive.container.memory.swap.usage` -is the memory the container has swapped out: nonzero only for an agent whose -container started before its drop-in carried `MemorySwapMax=0`. +is the memory the container has swapped out: zero for every container that +runs with the current drop-in, which a restart applies. More than 3 kills of one agent in an hour raise the `hh-agent-oom-kills` alert. diff --git a/hive-priv/src/container_config.rs b/hive-priv/src/container_config.rs index b381fae9b..ef4cda0a8 100644 --- a/hive-priv/src/container_config.rs +++ b/hive-priv/src/container_config.rs @@ -991,7 +991,7 @@ mod tests { } /// No container swaps, budgeted or not: the cap sits right after the - /// memory lines, once. `infinity` is the arm that used to keep swap. + /// memory lines, once, `infinity` included. #[test] fn swap_is_off_whatever_the_memory_budget() { for mem in ["4G", "512M", "50%", "8589934592", "infinity"] {