Searched refs:oom_adj (Results 1 – 2 of 2) sorted by relevance
1043 int oom_adj = OOM_ADJUST_MIN; in oom_adj_read() local1049 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() argument1072 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 …]
37 3.1 /proc/<pid>/oom_adj & /proc/<pid>/oom_score_adj - Adjust the oom-killer1641 3.1 /proc/<pid>/oom_adj & /proc/<pid>/oom_score_adj- Adjust the oom-killer score1679 For backwards compatibility with previous kernels, /proc/<pid>/oom_adj may also