[lkml]   [2009]   [Jan]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [why oom_adj does not work] Re: Linux killed Kenny, bastard!
Evgeniy Polyakov <> wrote:
> On Mon, Jan 12, 2009 at 03:51:08PM +0000, Alan Cox (

>> > Well, Kenny has to die, but if we still decide to change the world, here
>> > is the fist step.
>> NAK this entire thing - we have an existing interface that does the job
>> far better.
> Mwahaha, I just checked how scores are calculated, so that userspace
> could adjust them. Let's start with beginning:


> Do you _REALLY_ think anyone can calculate it yourself and then properly
> calculate adjustment used to properly select oom-killed process?

That's easy: Just let your Kenny process run, and check it's score. If it's
too low, increase the adjustment until it's just above the other processes'
score. Using binary search, you're done in five steps.

Then, while you're at it, protect the important programs by setting
their adjustment to -17.

 \ /
  Last update: 2009-01-14 20:21    [W:0.076 / U:12.440 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site