Re: [patch 1/5] oom: cleanup android low memory killer

From: David Rientjes
Date: Mon May 11 2009 - 15:44:37 EST


On Mon, 4 May 2009, Rik van Riel wrote:

> > There was an interest in a low mem userspace notifier that applications can
> > poll() on at configurable low mem levels to react accordingly. This would
> > probably address the problem that the Android team is trying to fix.
>
> This would also make it easier for virtual machines to be
> ballooned down to size when the host experiences memory
> pressure.
>
> The low memory notification could also be useful for JVMs,
> databases that do (some of) their own caching and any garbage
> collected program in general.
>

I agree, and I'd suggest that it be implemented as a cgroup so that
individual sets of tasks can be responsible for their own lowmem
notifiers.

KOSAKI, you were pushing the /dev/mem_notify patchset last year from
Marcelo. Do you have any plans of recreating that in a cgroup or have you
dropped it?
--
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/