Skip to content

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

choomd

Adjust process OOM-killer scores based on process names and other attributes

Install

Arch Linux: https://aur.archlinux.org/packages/choomd-git

Config

Edit /etc/choomd.toml to your liking, for example:

# Sacrifice firefox tabs before the browser

[rules.firefox-contentproc]
command_line_file_name = [ 'firefox', 'firefox-bin' ]
command_line_argument = [ '-contentproc' ]
oom_score_adj = 500

[rules.firefox]
command_line_file_name = [ 'firefox', 'firefox-bin' ]
oom_score_adj = 450

More on configuration here: https://github.com/futpib/choomd/blob/master/etc/choomd.toml

Enable the service:

systemctl enable --now choomd

Debug or test your config

RUST_LOG=debug choomd --config-file ./choomd.toml

PSA

Avoid setting negative or low (< 200) oom_score_adj as you may create an unkillable monster

See also

What does the name mean, how do you pronounce it?

Change OOM daemon. By analogy with choom command.

About

Adjust OOM-killer score daemon

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages