earlyoom checks the amount of available memory and free swap, and if both are below critical level, it will kill the largest process (highest oom_score).
osc -A https://api.opensuse.org checkout openSUSE:Backports:SLE-15-SP5/earlyoom && cd $_
Embed a build result badge whereever you need it. Select from
the options below and copy the result over to your README or on
your website, and enjoy it refresh automatically whenever the
build result changes.
The Open Build Service is an