Messages in this thread | | | From | Bodo Eggert <> | Subject | Re: [PATCH] oom: allow a non-CAP_SYS_RESOURCE proces to oom_score_adj down | Date | Sun, 14 Nov 2010 01:05:28 +0100 |
| |
Mandeep Singh Baines <msb@google.com> wrote:
> We'd like to be able to oom_score_adj a process up/down as its > enters/leaves the foreground. Currently, it is not possible to oom_adj > down without CAP_SYS_RESOURCE. This patch allows a task to decrease > its oom_score_adj back to the value that a CAP_SYS_RESOURCE thread set > it or its inherited value at fork. Assuming the thread that has forked > it has oom_score_adj of 0, each tab
process
> could decrease it back from 0 upon > activation unless a CAP_SYS_RESOURCE thread elevated it to something > higher.
| |