lkml.org 
[lkml]   [2011]   [Jun]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 5/6] oom: don't kill random process
On Wed, 22 Jun 2011, KOSAKI Motohiro wrote:

> CAI Qian reported oom-killer killed all system daemons in his
> system at first if he ran fork bomb as root. The problem is,
> current logic give them bonus of 3% of system ram. Example,
> he has 16GB machine, then root processes have ~500MB oom
> immune. It bring us crazy bad result. _all_ processes have
> oom-score=1 and then, oom killer ignore process memroy usage
> and kill random process. This regression is caused by commit
> a63d83f427 (oom: badness heuristic rewrite).
>

Isn't it better to give admin processes a proportional bonus instead of a
strict 3% bonus? I suggested 1% per 10% of memory used earlier and I
think it would work quite well as an alternative to this. The highest
bonus that would actually make any differences in which thread to kill
would be 5% when an admin process is using 50% of memory: in that case,
another non-admin thread would have to be using >45% of memory to be
killed instead.

Would you be satisfied with something like

points -= (points * 10 / totalpages);

be better?


\
 
 \ /
  Last update: 2011-06-23 01:25    [W:0.087 / U:0.400 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site