Re: [PATCH 3/5] oom: oom-killer don't use proportion of system-ram internally

David Rientjes
2011-05-27T19:13:07Z

On Thu, 26 May 2011, CAI Qian wrote:

> Here is the results for the testing. Running the reproducer as non-root
> user, the results look good as OOM killer just killed each python process
> in-turn that the reproducer forked. However, when running it as root
> user, sshd and other random processes had been killed.
>

Thanks for testing! The patch that I proposed for you was a little more
conservative in terms of providing a bonus to root processes that aren't
using a certain threshold of memory. My latest proposal was to give root
processes only a 1% bonus for every 10% of memory they consume, so it
would be impossible for them to have an oom score of 1 as reported in your
logs.

I believe that KOSAKI-san is refreshing his series of patches, so let's
look at how your workload behaves on the next iteration. Thanks CAI!