Re: [RFC] [PATCH] Cgroup based OOM killer controller

From: KAMEZAWA Hiroyuki
Date: Wed Jan 21 2009 - 22:30:01 EST

On Wed, 21 Jan 2009 16:38:21 +0530
Nikanth Karthikesan <knikanth@xxxxxxx> wrote:

> As Alan Cox suggested/wondered in this thread,
> , this is a container group based approach
> to override the oom killer selection without losing all the benefits of the
> current oom killer heuristics and oom_adj interface.
> It adds a tunable oom.victim to the oom cgroup. The oom killer will kill the
> process using the usual badness value but only within the cgroup with the
> maximum value for oom.victim before killing any process from a cgroup with a
> lesser oom.victim number. Oom killing could be disabled by setting
> oom.victim=0.
> Signed-off-by: Nikanth Karthikesan <knikanth@xxxxxxx>

Assume following
- the usar can tell "which process should be killed at first"

What is the difference between oom_adj and this cgroup to users ?
If oom_adj is hard to use, making it simpler is a good way, I think.
rather than adding new complication.

It seems both of oom_adj and this cgroup will be hard-to-use functions
for usual system administrators. But no better idea than using memcg
and committing memory usage.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at