update config
This commit is contained in:
parent
0490a8fb30
commit
01787de503
@ -265,7 +265,7 @@ forbid_negative_badness = True
|
|||||||
Prefer terminating Firefox tabs instead of terminating the entire browser.
|
Prefer terminating Firefox tabs instead of terminating the entire browser.
|
||||||
(In Chromium and Electron-based apps child processes get oom_score_adj=300
|
(In Chromium and Electron-based apps child processes get oom_score_adj=300
|
||||||
by default.)
|
by default.)
|
||||||
@BADNESS_ADJ_RE_NAME 300 /// ^Web Content$
|
@BADNESS_ADJ_RE_NAME 200 /// ^Web Content$
|
||||||
|
|
||||||
7.3.2. Matching CGroup_v1-line with RE patterns
|
7.3.2. Matching CGroup_v1-line with RE patterns
|
||||||
|
|
||||||
@ -289,45 +289,57 @@ forbid_negative_badness = True
|
|||||||
@BADNESS_ADJ_RE_REALPATH 20 /// ^/usr/bin/foo$
|
@BADNESS_ADJ_RE_REALPATH 20 /// ^/usr/bin/foo$
|
||||||
|
|
||||||
Protect X.
|
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)$
|
@BADNESS_ADJ_RE_REALPATH -200 /// ^(/usr/libexec/Xorg|/usr/lib/xorg/Xorg|/usr/lib/Xorg|/usr/bin/X|/usr/bin/Xwayland|/usr/bin/weston|/usr/bin/sway)$
|
||||||
|
|
||||||
Protect Gnome.
|
Protect GNOME.
|
||||||
@BADNESS_ADJ_RE_REALPATH -300 /// ^(/usr/bin/gnome-shell|/usr/bin/metacity|/usr/bin/mutter)$
|
@BADNESS_ADJ_RE_REALPATH -200 /// ^(/usr/bin/gnome-shell|/usr/bin/metacity|/usr/bin/mutter|/usr/lib/gnome-session/gnome-session-binary|/usr/libexec/gnome-session-binary|/usr/libexec/gnome-session-ctl)$
|
||||||
|
|
||||||
Protect Plasma.
|
Protect KDE Plasma.
|
||||||
@BADNESS_ADJ_RE_REALPATH -300 /// ^(/usr/bin/plasma-desktop|/usr/bin/plasmashell|/usr/bin/kwin|/usr/bin/kwin_x11|/usr/bin/kwin_wayland)$
|
@BADNESS_ADJ_RE_REALPATH -200 /// ^(/usr/bin/plasma-desktop|/usr/bin/plasmashell|/usr/bin/plasma_session|/usr/bin/kwin|/usr/bin/kwin_x11|/usr/bin/kwin_wayland)$
|
||||||
|
@BADNESS_ADJ_RE_REALPATH -200 /// ^(/usr/bin/startplasma-wayland|/usr/lib/x86_64-linux-gnu/libexec/startplasma-waylandsession|/usr/bin/ksmserver)$
|
||||||
|
|
||||||
Protect Cinnamon.
|
Protect Cinnamon.
|
||||||
@BADNESS_ADJ_RE_REALPATH -300 /// ^(/usr/bin/cinnamon|/usr/bin/muffin|/usr/bin/cinnamon-session)$
|
@BADNESS_ADJ_RE_REALPATH -200 /// ^(/usr/bin/cinnamon|/usr/bin/muffin|/usr/bin/cinnamon-session|/usr/bin/cinnamon-launcher)$
|
||||||
|
|
||||||
Protect Xfce.
|
Protect Xfce.
|
||||||
@BADNESS_ADJ_RE_REALPATH -300 /// ^(/usr/bin/xfwm4|/usr/bin/xfce4-session|/usr/bin/xfce4-panel|/usr/bin/xfdesktop)$
|
@BADNESS_ADJ_RE_REALPATH -200 /// ^(/usr/bin/xfwm4|/usr/bin/xfce4-session|/usr/bin/xfce4-panel|/usr/bin/xfdesktop)$
|
||||||
|
|
||||||
Protect Mate.
|
Protect Mate.
|
||||||
@BADNESS_ADJ_RE_REALPATH -300 /// ^(/usr/bin/marco|/usr/bin/mate-session|/usr/bin/caja|/usr/bin/mate-panel)$
|
@BADNESS_ADJ_RE_REALPATH -200 /// ^(/usr/bin/marco|/usr/bin/mate-session|/usr/bin/caja|/usr/bin/mate-panel)$
|
||||||
|
|
||||||
Protect LXQt.
|
Protect LXQt.
|
||||||
@BADNESS_ADJ_RE_REALPATH -300 /// ^(/usr/bin/lxqt-panel|/usr/bin/pcmanfm-qt|/usr/bin/lxqt-session)$
|
@BADNESS_ADJ_RE_REALPATH -200 /// ^(/usr/bin/lxqt-panel|/usr/bin/pcmanfm-qt|/usr/bin/lxqt-session)$
|
||||||
|
|
||||||
|
Protect Budgie Desktop.
|
||||||
|
@BADNESS_ADJ_RE_REALPATH -200 /// ^(/usr/bin/budgie-wm|/usr/bin/budgie-panel)$
|
||||||
|
|
||||||
Protect other.
|
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)$
|
@BADNESS_ADJ_RE_REALPATH -200 /// ^(/usr/bin/compiz|/usr/bin/openbox|/usr/bin/fluxbox|/usr/bin/awesome|/usr/bin/icewm|/usr/bin/enlightenment|/usr/bin/gala|/usr/bin/wingpanel)$
|
||||||
|
|
||||||
Prefer stress.
|
Protect display managers.
|
||||||
@BADNESS_ADJ_RE_REALPATH 900 /// ^(/usr/bin/stress|/usr/bin/stress-ng)$
|
@BADNESS_ADJ_RE_REALPATH -200 /// ^(/usr/sbin/gdm|/usr/sbin/gdm3|/usr/sbin/sddm|/usr/bin/sddm|/usr/lib/x86_64-linux-gnu/sddm/sddm-helper|/usr/bin/slim|/usr/sbin/lightdm|/usr/libexec/gdm-session-worker|/usr/libexec/gdm-wayland-session|/usr/lib/gdm3/gdm-wayland-session|/usr/lib/gdm3/gdm-session-worker)$
|
||||||
|
@BADNESS_ADJ_RE_REALPATH -200 /// ^/usr/lib/gdm3/
|
||||||
|
|
||||||
|
Protect systemd-logind.
|
||||||
|
@BADNESS_ADJ_RE_REALPATH -200 /// ^(/lib/systemd/systemd-logind|/usr/lib/systemd/systemd-logind)$
|
||||||
|
|
||||||
Protect `systemd --user`.
|
Protect `systemd --user`.
|
||||||
@BADNESS_ADJ_RE_REALPATH -300 /// ^(/lib/systemd/systemd|/usr/lib/systemd/systemd)$
|
@BADNESS_ADJ_RE_REALPATH -200 /// ^(/lib/systemd/systemd|/usr/lib/systemd/systemd)$
|
||||||
|
|
||||||
Protect `dbus-daemon --session`.
|
Protect dbus.
|
||||||
@BADNESS_ADJ_RE_REALPATH -300 /// ^/usr/bin/dbus-daemon$
|
@BADNESS_ADJ_RE_REALPATH -200 /// ^(/usr/bin/dbus-daemon|/usr/bin/dbus-run-session)$
|
||||||
|
|
||||||
7.3.5.1. Matching cwd with RE patterns
|
Prefer stress.
|
||||||
|
@BADNESS_ADJ_RE_REALPATH 900 /// ^(/usr/bin/stress|/usr/bin/stress-ng)$
|
||||||
|
|
||||||
|
|
||||||
|
7.3.6. Matching cwd with RE patterns
|
||||||
|
|
||||||
@BADNESS_ADJ_RE_CWD 200 /// ^/home/
|
@BADNESS_ADJ_RE_CWD 200 /// ^/home/
|
||||||
|
|
||||||
7.3.6. Matching cmdlines with RE patterns
|
7.3.7. Matching cmdlines with RE patterns
|
||||||
|
WARNING: using this option can greatly slow down the search for a victim
|
||||||
A good option that allows fine adjustment.
|
in conditions of heavily swapping.
|
||||||
|
|
||||||
Prefer Chromium tabs and Electron-based apps
|
Prefer Chromium tabs and Electron-based apps
|
||||||
@BADNESS_ADJ_RE_CMDLINE 200 /// --type=renderer
|
@BADNESS_ADJ_RE_CMDLINE 200 /// --type=renderer
|
||||||
@ -337,7 +349,9 @@ forbid_negative_badness = True
|
|||||||
|
|
||||||
@BADNESS_ADJ_RE_CMDLINE -200 /// ^/usr/lib/virtualbox
|
@BADNESS_ADJ_RE_CMDLINE -200 /// ^/usr/lib/virtualbox
|
||||||
|
|
||||||
7.3.7. Matching environ with RE patterns
|
7.3.8. Matching environ with RE patterns
|
||||||
|
WARNING: using this option can greatly slow down the search for a victim
|
||||||
|
in conditions of heavily swapping.
|
||||||
|
|
||||||
@BADNESS_ADJ_RE_ENVIRON 100 /// USER=user
|
@BADNESS_ADJ_RE_ENVIRON 100 /// USER=user
|
||||||
|
|
||||||
@ -355,7 +369,7 @@ forbid_negative_badness = True
|
|||||||
Syntax:
|
Syntax:
|
||||||
KEY REGEXP SEPARATOR COMMAND
|
KEY REGEXP SEPARATOR COMMAND
|
||||||
|
|
||||||
@SOFT_ACTION_RE_NAME ^foo$ /// kill -SEGV $PID
|
@SOFT_ACTION_RE_NAME ^foo$ /// kill -KILL $PID
|
||||||
@SOFT_ACTION_RE_NAME ^bash$ /// kill -9 $PID
|
@SOFT_ACTION_RE_NAME ^bash$ /// kill -9 $PID
|
||||||
|
|
||||||
@SOFT_ACTION_RE_CGROUP_V1 ^/system\.slice/ /// systemctl restart $SERVICE
|
@SOFT_ACTION_RE_CGROUP_V1 ^/system\.slice/ /// systemctl restart $SERVICE
|
||||||
@ -443,15 +457,17 @@ min_mem_report_interval = 60
|
|||||||
print_proc_table = False
|
print_proc_table = False
|
||||||
|
|
||||||
Description:
|
Description:
|
||||||
|
WARNING: using "cmdline" or "environ" keys can greatly slow down
|
||||||
|
the search for a victim in conditions of heavily swapping.
|
||||||
Type: string
|
Type: string
|
||||||
Valid values:
|
Valid values:
|
||||||
None
|
None
|
||||||
cgroup_v1
|
cgroup_v1
|
||||||
cgroup_v2
|
cgroup_v2
|
||||||
realpath
|
realpath
|
||||||
cwd
|
cwd
|
||||||
cmdline
|
cmdline
|
||||||
environ
|
environ
|
||||||
|
|
||||||
extra_table_info = None
|
extra_table_info = None
|
||||||
|
|
||||||
|
@ -248,7 +248,6 @@ ignore_positive_oom_score_adj = False
|
|||||||
|
|
||||||
forbid_negative_badness = True
|
forbid_negative_badness = True
|
||||||
|
|
||||||
|
|
||||||
7.3.1. Matching process names with RE patterns change their badness
|
7.3.1. Matching process names with RE patterns change their badness
|
||||||
|
|
||||||
Syntax:
|
Syntax:
|
||||||
@ -279,27 +278,30 @@ forbid_negative_badness = True
|
|||||||
|
|
||||||
@BADNESS_ADJ_RE_UID -100 /// ^0$
|
@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 900 /// ^(/usr/bin/stress|/usr/bin/stress-ng)$
|
||||||
|
|
||||||
7.3.5.1. Matching cwd with RE patterns
|
7.3.6. Matching cwd with RE patterns
|
||||||
|
|
||||||
@BADNESS_ADJ_RE_CWD 200 /// ^/home/
|
@BADNESS_ADJ_RE_CWD 200 /// ^/home/
|
||||||
|
|
||||||
7.3.6. Matching cmdlines with RE patterns
|
7.3.7. Matching cmdlines with RE patterns
|
||||||
|
WARNING: using this option can greatly slow down the search for a victim
|
||||||
|
in conditions of heavily swapping.
|
||||||
|
|
||||||
A good option that allows fine adjustment.
|
Prefer Chromium tabs and Electron-based apps
|
||||||
|
|
||||||
Prefer chromium tabs and electron-based apps
|
|
||||||
@BADNESS_ADJ_RE_CMDLINE 200 /// --type=renderer
|
@BADNESS_ADJ_RE_CMDLINE 200 /// --type=renderer
|
||||||
|
|
||||||
Prefer firefox tabs (Web Content and WebExtensions)
|
Prefer Firefox tabs (Web Content and WebExtensions)
|
||||||
@BADNESS_ADJ_RE_CMDLINE 100 /// -appomni
|
@BADNESS_ADJ_RE_CMDLINE 100 /// -appomni
|
||||||
|
|
||||||
@BADNESS_ADJ_RE_CMDLINE -200 /// ^/usr/lib/virtualbox
|
@BADNESS_ADJ_RE_CMDLINE -200 /// ^/usr/lib/virtualbox
|
||||||
|
|
||||||
7.3.7. Matching environ with RE patterns
|
7.3.8. Matching environ with RE patterns
|
||||||
|
WARNING: using this option can greatly slow down the search for a victim
|
||||||
|
in conditions of heavily swapping.
|
||||||
|
|
||||||
@BADNESS_ADJ_RE_ENVIRON 100 /// USER=user
|
@BADNESS_ADJ_RE_ENVIRON 100 /// USER=user
|
||||||
|
|
||||||
@ -317,7 +319,7 @@ forbid_negative_badness = True
|
|||||||
Syntax:
|
Syntax:
|
||||||
KEY REGEXP SEPARATOR COMMAND
|
KEY REGEXP SEPARATOR COMMAND
|
||||||
|
|
||||||
@SOFT_ACTION_RE_NAME ^foo$ /// kill -SEGV $PID
|
@SOFT_ACTION_RE_NAME ^foo$ /// kill -KILL $PID
|
||||||
@SOFT_ACTION_RE_NAME ^bash$ /// kill -9 $PID
|
@SOFT_ACTION_RE_NAME ^bash$ /// kill -9 $PID
|
||||||
|
|
||||||
@SOFT_ACTION_RE_CGROUP_V1 ^/system\.slice/ /// systemctl restart $SERVICE
|
@SOFT_ACTION_RE_CGROUP_V1 ^/system\.slice/ /// systemctl restart $SERVICE
|
||||||
@ -405,15 +407,17 @@ min_mem_report_interval = 60
|
|||||||
print_proc_table = False
|
print_proc_table = False
|
||||||
|
|
||||||
Description:
|
Description:
|
||||||
|
WARNING: using "cmdline" or "environ" keys can greatly slow down
|
||||||
|
the search for a victim in conditions of heavily swapping.
|
||||||
Type: string
|
Type: string
|
||||||
Valid values:
|
Valid values:
|
||||||
None
|
None
|
||||||
cgroup_v1
|
cgroup_v1
|
||||||
cgroup_v2
|
cgroup_v2
|
||||||
realpath
|
realpath
|
||||||
cwd
|
cwd
|
||||||
cmdline
|
cmdline
|
||||||
environ
|
environ
|
||||||
|
|
||||||
extra_table_info = None
|
extra_table_info = None
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user