Linux command
oomctl 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Example
oomctl dump
说明
oomctl may be used to get information about the various contexts read in by the systemd userspace out-of-memory (OOM) killer, systemd-oomd. It displays the cgroup contexts that systemd-oomd is monitoring for memory pressure and swap usage. The systemd-oomd service monitors cgroups that have ManagedOOMSwap or ManagedOOMMemoryPressure enabled, using PSI (Pressure Stall Information) statistics to determine when memory pressure exceeds configured thresholds. When limits are exceeded, it selects and terminates a cgroup by sending SIGKILL to all its processes.
参数
- dump
- Show the current state of cgroups and system contexts monitored by systemd-oomd
- -h, --help
- Print help text and exit
- --version
- Print version string and exit
- --no-pager
- Do not pipe output into a pager
FAQ
What is the oomctl command used for?
oomctl may be used to get information about the various contexts read in by the systemd userspace out-of-memory (OOM) killer, systemd-oomd. It displays the cgroup contexts that systemd-oomd is monitoring for memory pressure and swap usage. The systemd-oomd service monitors cgroups that have ManagedOOMSwap or ManagedOOMMemoryPressure enabled, using PSI (Pressure Stall Information) statistics to determine when memory pressure exceeds configured thresholds. When limits are exceeded, it selects and terminates a cgroup by sending SIGKILL to all its processes.
How do I run a basic oomctl example?
Run `oomctl dump` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does dump do in oomctl?
Show the current state of cgroups and system contexts monitored by systemd-oomd