Repository navigation
Modal hostmem: own cgroup (v2/v1) memory, limit, OOM-kill count, summed RSS - #228
Merged
Merged
Conversation
…it and OOM-kill count, plus summed process RSS s19-compaction-g3-20261010b: island 0 got SIGTERM mid critic training and the host-memory samples had cgroup_current/peak = null (only /sys/fs/cgroup root was read), so a memory cause could not be checked. The sampler now resolves the own cgroup from /proc/self/cgroup, reads v2 memory.current/peak/max/events (oom, oom_kill) or v1 usage/max_usage/limit/oom_control, and records the summed VmRSS of all visible processes as a cgroup-free fallback. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
s19-compaction-g3-20261010b:岛 0 在 critic 训练中途收到外部 SIGTERM。hostmem 采样的 cgroup_current/peak 一直是 null,因为只读了 /sys/fs/cgroup 根目录,所以无法排除内存原因。
改动(只改观测,不改逻辑)
测试
子 agent 代拍板:观测改动,C 跑用本分支代码(main b31e964 + 本 PR)。
🤖 Generated with Claude Code