Scroll to navigation

oomstaller(1) oomstaller man page oomstaller(1)

NAME

oomstaller - suppress swap thrashing at build time

SYNOPSIS

oomstaller [<options>] command [arg] ...

DESCRIPTION

This tool monitors the memory usage of each process when performing a build, and suspends processes as necessary to prevent swap thrashing from occuring.

$ oomstaller make -j `nproc`
    

OPTIONS

Suspends processes so that the number of running build processes does not exceed the specified number. 0 means no limit. A process is counted as one process even if it has multiple threads.
Specifies the maximum number of processes to run when thrashing is detected. 0 means no limit.
Specifies the interval at which memory usage of each process is checked and processes are controlled.
Displays statistics when finished.

TIPS

If you kill this tool with SIGKILL, a large number of build processes will remain suspended with SIGSTOP. To prevent this from happening, use SIGTERM or SIGINT to kill this tool.

$ killall -v -s CONT -u $USER -r '.*'
    

SEE ALSO

https://github.com/shibatch/oomstaller

AUTHOR

Naoki Shibata (shibatch@users.sourceforge.net)

01 Jan 2025 0.4.0