Home
last modified time | relevance | path

Searched refs:oom_adj (Results 1 – 2 of 2) sorted by relevance

/linux-6.6.21/fs/proc/
Dbase.c1043 int oom_adj = OOM_ADJUST_MIN; in oom_adj_read() local
1049 oom_adj = OOM_ADJUST_MAX; in oom_adj_read()
1051 oom_adj = (task->signal->oom_score_adj * -OOM_DISABLE) / in oom_adj_read()
1054 if (oom_adj > OOM_ADJUST_MAX) in oom_adj_read()
1055 oom_adj = OOM_ADJUST_MAX; in oom_adj_read()
1056 len = snprintf(buffer, sizeof(buffer), "%d\n", oom_adj); in oom_adj_read()
1060 static int __set_oom_adj(struct file *file, int oom_adj, bool legacy) in __set_oom_adj() argument
1072 if (oom_adj < task->signal->oom_score_adj && in __set_oom_adj()
1085 if ((short)oom_adj < task->signal->oom_score_adj_min && in __set_oom_adj()
1109 task->signal->oom_score_adj = oom_adj; in __set_oom_adj()
[all …]
/linux-6.6.21/Documentation/filesystems/
Dproc.rst37 3.1 /proc/<pid>/oom_adj & /proc/<pid>/oom_score_adj - Adjust the oom-killer
1641 3.1 /proc/<pid>/oom_adj & /proc/<pid>/oom_score_adj- Adjust the oom-killer score
1679 For backwards compatibility with previous kernels, /proc/<pid>/oom_adj may also