Add DE processes protection in nohang-desktop.conf
- Protect Xorg and DE components - Prefer Web Content (firefox tabs) - Prefer `stress`
This commit is contained in:
parent
96ddd90052
commit
ff620f0438
@ -248,7 +248,6 @@ ignore_positive_oom_score_adj = False
|
||||
|
||||
forbid_negative_badness = True
|
||||
|
||||
|
||||
7.3.1. Matching process names with RE patterns change their badness
|
||||
|
||||
Syntax:
|
||||
@ -263,6 +262,11 @@ forbid_negative_badness = True
|
||||
Example:
|
||||
@BADNESS_ADJ_RE_NAME -500 /// ^sshd$
|
||||
|
||||
Prefer terminating Firefox tabs instead of terminating the entire browser.
|
||||
(In chromium and electron-based apps child processes get oom_score_adj=300
|
||||
by default.)
|
||||
@BADNESS_ADJ_RE_NAME 300 /// ^Web Content$
|
||||
|
||||
7.3.2. Matching CGroup_v1-line with RE patterns
|
||||
|
||||
@BADNESS_ADJ_RE_CGROUP_V1 -50 /// ^/system\.slice/
|
||||
@ -279,9 +283,43 @@ forbid_negative_badness = True
|
||||
|
||||
@BADNESS_ADJ_RE_UID -100 /// ^0$
|
||||
|
||||
7.3.5. Matching realpath with RE patterns
|
||||
7.3.5. Matching /proc/[pid]/exe realpath with RE patterns
|
||||
|
||||
@BADNESS_ADJ_RE_REALPATH 20 /// ^/usr/bin/foo
|
||||
Example:
|
||||
@BADNESS_ADJ_RE_REALPATH 20 /// ^/usr/bin/foo$
|
||||
|
||||
Protect X.
|
||||
@BADNESS_ADJ_RE_REALPATH -300 /// ^(/usr/libexec/Xorg|/usr/lib/xorg/Xorg|/usr/lib/Xorg|/usr/bin/X|/usr/bin/Xwayland|/usr/bin/weston|/usr/bin/sway)$
|
||||
|
||||
Protect Gnome.
|
||||
@BADNESS_ADJ_RE_REALPATH -300 /// ^(/usr/bin/gnome-shell|/usr/bin/metacity|/usr/bin/mutter)$
|
||||
|
||||
Protect Plasma.
|
||||
@BADNESS_ADJ_RE_REALPATH -300 /// ^(/usr/bin/plasma-desktop|/usr/bin/plasmashell|/usr/bin/kwin|/usr/bin/kwin_x11|/usr/bin/kwin_wayland)$
|
||||
|
||||
Protect Cinnamon.
|
||||
@BADNESS_ADJ_RE_REALPATH -300 /// ^(/usr/bin/cinnamon|/usr/bin/muffin|/usr/bin/cinnamon-session)$
|
||||
|
||||
Protect Xfce.
|
||||
@BADNESS_ADJ_RE_REALPATH -300 /// ^(/usr/bin/xfwm4|/usr/bin/xfce4-session|/usr/bin/xfce4-panel|/usr/bin/xfdesktop)$
|
||||
|
||||
Protect Mate.
|
||||
@BADNESS_ADJ_RE_REALPATH -300 /// ^(/usr/bin/marco|/usr/bin/mate-session|/usr/bin/caja|/usr/bin/mate-panel)$
|
||||
|
||||
Protect LXQT.
|
||||
@BADNESS_ADJ_RE_REALPATH -300 /// ^(/usr/bin/lxqt-panel|/usr/bin/pcmanfm-qt|/usr/bin/lxqt-session)$
|
||||
|
||||
Protect other.
|
||||
@BADNESS_ADJ_RE_REALPATH -300 /// ^(/usr/bin/compiz|/usr/bin/openbox|/usr/bin/fluxbox|/usr/bin/awesome|/usr/bin/icewm|/usr/bin/enlightenment)$
|
||||
|
||||
Prefer stress.
|
||||
@BADNESS_ADJ_RE_REALPATH 900 /// ^(/usr/bin/stress|/usr/bin/stress-ng)$
|
||||
|
||||
Protect `systemd --user`.
|
||||
@BADNESS_ADJ_RE_REALPATH -300 /// ^(/lib/systemd/systemd|/usr/lib/systemd/systemd)$
|
||||
|
||||
Protect `dbus-daemon --session`.
|
||||
@BADNESS_ADJ_RE_REALPATH -300 /// ^/usr/bin/dbus-daemon$
|
||||
|
||||
7.3.5.1. Matching cwd with RE patterns
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user