Searched refs:oom_adj (Results 1 – 3 of 3) sorted by relevance
1102 int oom_adj = OOM_ADJUST_MIN; in oom_adj_read() local 1108 oom_adj = OOM_ADJUST_MAX; in oom_adj_read() 1110 oom_adj = (task->signal->oom_score_adj * -OOM_DISABLE) / in oom_adj_read() 1113 if (oom_adj > OOM_ADJUST_MAX) in oom_adj_read() 1114 oom_adj = OOM_ADJUST_MAX; in oom_adj_read() 1115 len = snprintf(buffer, sizeof(buffer), "%d\n", oom_adj); in oom_adj_read() 1119 static int __set_oom_adj(struct file *file, int oom_adj, bool legacy) in __set_oom_adj() argument 1131 if (oom_adj < task->signal->oom_score_adj && in __set_oom_adj() 1137 * /proc/pid/oom_adj is provided for legacy purposes, ask users to use in __set_oom_adj() 1140 pr_warn_once("%s (%d): /proc/%d/oom_adj i in __set_oom_adj() 1216 int oom_adj; oom_adj_write() local [all...]
85 + * where we can write to /proc/<pid>/oom_adj to modify the out-of-memory
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