allow oom_adj of saintly processes
Subsystems (2)
PATCH 1/1 allow oom_adj of saintly processes
If the badness of a process is zero then oom_adj>0 has no effect. This patch makes sure that the oom_adj shift actually increases badness points appropriately.
I am not subscribed. Please CC me with any comments. Thanks.
Signed-off-by Joshua N. Pritikin <[email protected]>
mm/oom_kill.c renamed from mm/oom_kill.c.orig +4 -2
@@ -147,9 +147,11 @@ unsigned long badness(struct task_struct* Adjust the score by oomkilladj. */ if (p->oomkilladj) { -if (p->oomkilladj >0 ) +if (p->oomkilladj >0 ) { +if (!points) + points =1 ; points <<= p->oomkilladj; -else + }else points >>= -(p->oomkilladj); }
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>