On 2026-11-23 the kernel OOM-killed a process on compute-storage-01 11 times, from 05:11 to 06:01 UTC.
The process: CT 154 pelican-wings-02, a Java game server holding about 18 GB, mostly shmem.
The host: 0 GB of 46 GB available, with swap full. The kills were a global OOM, not the container's own memory limit.
The knock-on effect: Ceph OSDs on the host stalled, and the whole cluster saw storage timeouts.
What hwmonDaemon did: opened no ticket. _check_memory_usage only looks for ECC errors; memory_percent is recorded but never alerts.
What Gandalf did: misread the symptoms as a network failure (Tinker 615797777), which is tracked in a Gandalf issue.
Host memory belongs with host health, not with the network monitor. Long term it moves to thor, an out-of-band health service, so keep this small and self-contained.
Change
OOM kills since the last run.
Read oom_kill from /proc/vmstat and keep the last value in the state file. A counter reset means a reboot, so re-baseline.
If the count rose, open one ticket per host: [host][auto][software] Out of memory: N OOM kills since last check.
Add details from journalctl -k --since <last run>: lines matching Out of memory: Killed process and oom-kill:. These give the victim process and task_memcg=/lxc/<id>/....
Map <id> to the CT hostname with pct config, as in #32.
Sustained exhaustion. Warn when MemAvailable is under 5% plus swap over 90%, or when PSI memory full avg300 is over a threshold (from /proc/pressure/memory).
Cadence. A --check memory mode on a 5-minute timer, so this doesn't wait up to an hour. The counter design means an hourly run alone still never misses a kill; it only reports late.
Dedupe. Repeated kills update the open ticket's count. Don't open a new ticket per run (see #31).
Tests
Counter delta, counter reset after reboot, and parsing the 2026-11-23 kernel lines.
The memcg-to-CT lookup.
No ticket when the delta is 0.
## Why
On 2026-11-23 the kernel OOM-killed a process on compute-storage-01 11 times, from 05:11 to 06:01 UTC.
- **The process:** CT 154 pelican-wings-02, a Java game server holding about 18 GB, mostly shmem.
- **The host:** 0 GB of 46 GB available, with swap full. The kills were a global OOM, not the container's own memory limit.
- **The knock-on effect:** Ceph OSDs on the host stalled, and the whole cluster saw storage timeouts.
- **What hwmonDaemon did:** opened no ticket. `_check_memory_usage` only looks for ECC errors; `memory_percent` is recorded but never alerts.
- **What Gandalf did:** misread the symptoms as a network failure (Tinker 615797777), which is tracked in a Gandalf issue.
Host memory belongs with host health, not with the network monitor. Long term it moves to **thor**, an out-of-band health service, so keep this small and self-contained.
## Change
1. **OOM kills since the last run.**
- Read `oom_kill` from `/proc/vmstat` and keep the last value in the state file. A counter reset means a reboot, so re-baseline.
- If the count rose, open one ticket per host: `[host][auto][software] Out of memory: N OOM kills since last check`.
- Add details from `journalctl -k --since <last run>`: lines matching `Out of memory: Killed process` and `oom-kill:`. These give the victim process and `task_memcg=/lxc/<id>/...`.
- Map `<id>` to the CT hostname with `pct config`, as in #32.
2. **Sustained exhaustion.** Warn when MemAvailable is under 5% plus swap over 90%, or when PSI memory `full avg300` is over a threshold (from `/proc/pressure/memory`).
3. **Cadence.** A `--check memory` mode on a 5-minute timer, so this doesn't wait up to an hour. The counter design means an hourly run alone still never misses a kill; it only reports late.
4. **Dedupe.** Repeated kills update the open ticket's count. Don't open a new ticket per run (see #31).
## Tests
- Counter delta, counter reset after reboot, and parsing the 2026-11-23 kernel lines.
- The memcg-to-CT lookup.
- No ticket when the delta is 0.
Closing as superseded by Thor (decided in the thor#1 planning session, 2026-11-25; plan: LotusGuild/thor#1).
Host memory (global OOM kills, memory exhaustion, the CT behind it) is Thor's first check. Thor reads node_vmstat_oom_kill from Prometheus and the kernel oom-kill: / Out of memory: Killed process lines from Loki (transport="kernel", which carry global_oom, cpuset and task_memcg=/lxc/<id>), from outside the host.
Rule: a global OOM opens a ticket at the first kill (P3), P2 at 3+ kills in 30 minutes, P1 if it hits Ceph. A container hitting its own limit is shown in Thor and only ticketed if it loops.
Because nothing in hwmonDaemon does memory today, there's no switch to turn off and no gap to cover at migration. The operator accepted that OOMs aren't ticketed until Thor ships.
The 2026-11-23 incident is Thor's main replay test (exactly one ticket across all three apps).
The rest of hwmonDaemon's side of the contract is in #42.
Closing as superseded by Thor (decided in the thor#1 planning session, 2026-11-25; plan: LotusGuild/thor#1).
- Host memory (global OOM kills, memory exhaustion, the CT behind it) is **Thor's first check**. Thor reads `node_vmstat_oom_kill` from Prometheus and the kernel `oom-kill:` / `Out of memory: Killed process` lines from Loki (`transport="kernel"`, which carry `global_oom`, `cpuset` and `task_memcg=/lxc/<id>`), from outside the host.
- Rule: a global OOM opens a ticket at the first kill (P3), P2 at 3+ kills in 30 minutes, P1 if it hits Ceph. A container hitting its own limit is shown in Thor and only ticketed if it loops.
- Because nothing in hwmonDaemon does memory today, there's no switch to turn off and no gap to cover at migration. The operator accepted that OOMs aren't ticketed until Thor ships.
- The 2026-11-23 incident is Thor's main replay test (exactly one ticket across all three apps).
The rest of hwmonDaemon's side of the contract is in #42.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Why
On 2026-11-23 the kernel OOM-killed a process on compute-storage-01 11 times, from 05:11 to 06:01 UTC.
_check_memory_usageonly looks for ECC errors;memory_percentis recorded but never alerts.Host memory belongs with host health, not with the network monitor. Long term it moves to thor, an out-of-band health service, so keep this small and self-contained.
Change
oom_killfrom/proc/vmstatand keep the last value in the state file. A counter reset means a reboot, so re-baseline.[host][auto][software] Out of memory: N OOM kills since last check.journalctl -k --since <last run>: lines matchingOut of memory: Killed processandoom-kill:. These give the victim process andtask_memcg=/lxc/<id>/....<id>to the CT hostname withpct config, as in #32.full avg300is over a threshold (from/proc/pressure/memory).--check memorymode on a 5-minute timer, so this doesn't wait up to an hour. The counter design means an hourly run alone still never misses a kill; it only reports late.Tests
Closing as superseded by Thor (decided in the thor#1 planning session, 2026-11-25; plan: LotusGuild/thor#1).
node_vmstat_oom_killfrom Prometheus and the kerneloom-kill:/Out of memory: Killed processlines from Loki (transport="kernel", which carryglobal_oom,cpusetandtask_memcg=/lxc/<id>), from outside the host.The rest of hwmonDaemon's side of the contract is in #42.