This commit is contained in:
Alexey Avramov 2019-06-23 01:28:17 +09:00
parent 78c1e61a36
commit b48e781213

View File

@ -183,8 +183,7 @@ oom_score_adj_max = 0
Use script `oom-sort` from nohang package to view Use script `oom-sort` from nohang package to view
names, cmdlines and UIDs of processes. names, cmdlines and UIDs of processes.
5.1. Matching process names with RE patterns
5.1 Matching process names with RE patterns
Syntax: Syntax:
@ -198,8 +197,7 @@ oom_score_adj_max = 0
Example: Example:
@BADNESS_ADJ_RE_NAME -500 /// ^sshd$ @BADNESS_ADJ_RE_NAME -500 /// ^sshd$
5.2. Matching CGroup_v1-line with RE patterns
5.2 Matching CGroup-line (v1 and v2) with RE patterns
@BADNESS_ADJ_RE_CGROUP_V1 -50 /// ^/system.slice @BADNESS_ADJ_RE_CGROUP_V1 -50 /// ^/system.slice
@ -207,20 +205,19 @@ oom_score_adj_max = 0
@BADNESS_ADJ_RE_CGROUP_V1 -50 /// ^/user.slice @BADNESS_ADJ_RE_CGROUP_V1 -50 /// ^/user.slice
5.3. Matching CGroup_v2-line with RE patterns
@BADNESS_ADJ_RE_CGROUP_V2 100 /// ^/workload @BADNESS_ADJ_RE_CGROUP_V2 100 /// ^/workload
5.4. Matching eUIDs with RE patterns
5.3 Matching eUIDs with RE patterns
@BADNESS_ADJ_RE_UID -100 /// ^0$ @BADNESS_ADJ_RE_UID -100 /// ^0$
5.5. Matching realpath with RE patterns
5.4 Matching realpath with RE patterns
@BADNESS_ADJ_RE_REALPATH 20 /// ^/usr/bin/foo @BADNESS_ADJ_RE_REALPATH 20 /// ^/usr/bin/foo
5.6. Matching cmdlines with RE patterns
5.5 Matching cmdlines with RE patterns
A good option that allows fine adjustment. A good option that allows fine adjustment.
@ -232,8 +229,7 @@ oom_score_adj_max = 0
@BADNESS_ADJ_RE_CMDLINE -200 /// ^/usr/lib/virtualbox @BADNESS_ADJ_RE_CMDLINE -200 /// ^/usr/lib/virtualbox
5.7. Matching environ with RE patterns
5.6 Matching environ with RE patterns
@BADNESS_ADJ_RE_ENVIRON 100 /// USER=user @BADNESS_ADJ_RE_ENVIRON 100 /// USER=user