Skip to content

Commit 153f13c

Browse files
committed
runtime-config-linux: clarify oom_score_adj
Signed-off-by: ChengTiesheng <[email protected]>
1 parent ab4acc0 commit 153f13c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

runtime-config-linux.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,11 @@ For more information, see [the memory cgroup man page](https://www.kernel.org/do
180180

181181
#### Set oom_score_adj
182182

183-
More information on `oom_score_adj` available [here](https://www.kernel.org/doc/Documentation/filesystems/proc.txt).
183+
oom_score_adj works with disableOOMKiller. If out-of-memory killer enabled("disableOOMKiller": false), oom_score_adj can be set to adjust the oom-killer score, the value of oom_score_adj is added to the badness score before it is used to determine which task to kill. If out-of-memory killer disabled("disableOOMKiller": true), the value of oom_score_adj is useless and will be omitted. For more information, see [the proc filesystem man page](https://www.kernel.org/doc/Documentation/filesystems/proc.txt).
184+
185+
* **`oomScoreAdj`** *(int, optional)* - adjust the oom-killer score
186+
187+
###### Example
184188

185189
```json
186190
"oomScoreAdj": 0

0 commit comments

Comments
 (0)