Expand description
Watching the cgroup of a container process for OOM kills, through the memory events of the unified hierarchy of cgroup v2. A host with cgroup v1, or with both in a hybrid setup, runs its containers without the detection.
Modulesยง
- cgroup_
path ๐ - Where the cgroup of a process is.
- inotify ๐
- A single inotify instance which watches the memory events files of all containers.
- v2 ๐
- The memory events of a cgroup v2 and of the cgroups above it.
Structsยง
- OOMEvent ๐
- What watching a process for OOM kills found.
- OOMWatcher ๐
- Watches the cgroup of a process for OOM kills, see
OOMWatcher::watch.
Constantsยง
- CGROUP_
ROOT ๐ - WATCH_
EVENT_ ๐CHANNEL_ SIZE - Capacity of the channel delivering file watch events to one OOM watcher.
Staticsยง
- IS_
CGROUP_ ๐V2 - UNSUPPORTED_
WARNED ๐ - Whether the server told that it does not watch for OOM kills, see
OOMWatcher::supported.