Skip to main content

Module oom_watcher

Module oom_watcher 

Source
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.