Re: [PATCH 2/2][BUGFIX] Revert "oom: deprecate oom_adj tunable"

From: David Rientjes
Date: Wed Aug 25 2010 - 06:27:56 EST


On Wed, 25 Aug 2010, KOSAKI Motohiro wrote:

> oom_adj is not only used for kernel knob, but also used for
> application interface.
> Then, adding new knob is no good reason to deprecate it.
>
> Also, after former patch, oom_score_adj can't be used for setting
> OOM_DISABLE. We need "echo -17 > /proc/<pid>/oom_adj" thing.
>
> This reverts commit 51b1bd2ace1595b72956224deda349efa880b693.

Since I nacked the parent patch of this, I implicitly nack this one as
well since oom_score_adj shouldn't be going anywhere. The way to disable
oom killing for a task via the new interface, /proc/pid/oom_score_adj, is
by OOM_SCORE_ADJ_MIN as specified in the documentation.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/