Alexey Avramov
Alexey Avramov
See also https://github.com/cdown/psi-notify
You can use https://github.com/hakavlad/nohang It supports multiple and flexible regex matching with cmdline, exe realpath, cwd, cgroup and other. Look at the config example https://github.com/hakavlad/nohang/blob/master/conf/nohang/nohang.conf.in (Chapter 7. Customize victim selection:...
I can suggest [nohang](https://github.com/hakavlad/nohang) as an alternative. It prints cgroup, cmdline etc (it's configurable). For example: ``` ноя 17 19:15:25 PC nohang[3824]: Memory status that requires corrective actions: ноя 17...
Hi! Answers to what questions would you like to receive?
>I recommend all kernel developers to make a room-killer and f* of that not-well-working oom-killer Use [this patch](https://github.com/hakavlad/le9-patch) if you want to fix the kernel.
>I do not know how regex should look To decrease badness of the App (full matching with name): ``` --avoid "^App Name$" ``` To find names of running processes: ```...
The earlyoom configuration file in Fedora 32 looked like this: ``` EARLYOOM_ARGS="-r 0 -m 4 -M 409600 --prefer '^Web Content$' --avoid '^(dnf|packagekitd|gnome-shell|gnome-session-c|gnome-session-b|lightdm|sddm|sddm-helper|gdm|gdm-wayland-ses|gdm-session-wor|gdm-x-session|Xorg|Xwayland|systemd|systemd-logind|dbus-daemon|dbus-broker|cinnamon|cinnamon-sessio|kwin_x11|kwin_wayland|plasmashell|ksmserver|plasma_session|startplasma-way|xfce4-session|mate-session|marco|lxqt-session|openbox)$'" ``` This config provides protection of various important...
Other way: - do not change `-i` option to allow it to work with old kernels; - add the new (fixed) option (`-I`?) to work with new kernels (5.9+).
see also ```C /* * Special case OOM_SCORE_ADJ_MIN for all others scale the * badness value into [0, 2000] range which we have been * exporting for a long time...
compare (`5.8` vs `5.9`) ```C points = oom_badness(task, totalpages) * 1000 / totalpages; ``` https://github.com/torvalds/linux/blob/v5.8/fs/proc/base.c#L555 ```C if (badness != LONG_MIN) points = (1000 + badness * 1000 / (long)totalpages) *...