Re: [PATCH 1/2][BUGFIX] oom: remove totalpage normalization from oom_badness()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: KAMEZAWA Hiroyuki
Date: Wednesday, August 25, 2010 - 8:20 pm

On Wed, 25 Aug 2010 19:50:22 -0700 (PDT)
David Rientjes <rientjes@google.com> wrote:

ok.


Hmm. What's complicated is oom_score_adj's behavior.



yes. For defineing/understanding priority, oom_score_adj is that.
But it's priority isn't static.


yes.


yes. under 8G system, -250 will allow ingnoring 2G of usage.

== How about this text ? ==

When you set a task's oom_score_adj, it can get priority not to be oom-killed.
oom_score_adj gives priority proportional to the memory limitation.

Assuming you set -250 to oom_score_adj.

Under 4G memory limit, it gets 25% of bonus...1G memory bonus for avoiding OOM.
Under 8G memory limit, it gets 25% of bonus...2G memory bonus for avoiding OOM.

Then, what bonus a task can get depends on the context of OOM. If you use
oom_score_adj and want to give bonus to a task, setting it in regard with
minimum memory limitation which a task is under will work well.
==

Thanks,
-Kame

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 1/2][BUGFIX] oom: remove totalpage normalizatio ..., KAMEZAWA Hiroyuki, (Wed Aug 25, 5:39 pm)
Re: [PATCH 1/2][BUGFIX] oom: remove totalpage normalizatio ..., KAMEZAWA Hiroyuki, (Wed Aug 25, 6:03 pm)
Re: [PATCH 1/2][BUGFIX] oom: remove totalpage normalizatio ..., KAMEZAWA Hiroyuki, (Wed Aug 25, 6:11 pm)
Re: [PATCH 1/2][BUGFIX] oom: remove totalpage normalizatio ..., KAMEZAWA Hiroyuki, (Wed Aug 25, 8:20 pm)