LinuxCommandLibrary

choom

display and adjust OOM-killer score

TLDR

Display the OOM-killer score of a process

$ choom -p [pid]
copy
Change the adjust OOM-killer score of a process
$ choom -p [pid] -n [-1000..+1000]
copy
Run a command with a specific OOM-killer score
$ choom -n [-1000..+1000] [command] [arguments]
copy

SYNOPSIS

choom [options]

DESCRIPTION

choom displays and changes the Out-Of-Memory (OOM) killer score adjustment for processes. The OOM killer terminates processes when the system runs critically low on memory.
The score adjustment ranges from -1000 (never kill) to +1000 (kill first). A value of -1000 effectively disables OOM killing for that process.

PARAMETERS

-p, --pid pid

Specify the process ID
-n, --adjust value
Set the OOM score adjustment (-1000 to +1000)

CAVEATS

Requires appropriate privileges to modify OOM scores of other users' processes. Setting -1000 on too many processes can leave the system with no candidate to kill during memory exhaustion, potentially causing a system hang.

SEE ALSO

proc(5), kill(1), ps(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community