[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <201002032029.34145.elendil@planet.nl>
Date: Wed, 3 Feb 2010 20:29:31 +0100
From: Frans Pop <elendil@...net.nl>
To: David Rientjes <rientjes@...gle.com>
Cc: balbir@...ux.vnet.ibm.com, riel@...hat.com, l.lunak@...e.cz,
linux-mm@...ck.org, linux-kernel@...r.kernel.org,
akpm@...ux-foundation.org, kosaki.motohiro@...fujitsu.com,
npiggin@...e.de, jkosina@...e.cz
Subject: Re: Improving OOM killer
David Rientjes wrote:
> /*
> * /proc/pid/oom_adj ranges from -1000 to +1000 to either
> * completely disable oom killing or always prefer it.
> */
> points += p->signal->oom_adj;
>
Wouldn't that cause a rather huge compatibility issue given that the
current oom_adj works in a totally different way:
! 3.1 /proc/<pid>/oom_adj - Adjust the oom-killer score
! ------------------------------------------------------
! This file can be used to adjust the score used to select which processes
! should be killed in an out-of-memory situation. Giving it a high score
! will increase the likelihood of this process being killed by the
! oom-killer. Valid values are in the range -16 to +15, plus the special
! value -17, which disables oom-killing altogether for this process.
?
Cheers,
FJP
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists