RE: [cgl_discussion] Re: About Replaceable OOM Killer

From: Marcelo Tosatti
Date: Mon Mar 15 2004 - 15:08:45 EST



Yury, others,

I do think the a "replaceable OOM killer" is a valid and useful thing.

You should change your efforts to make such a feature be accepted in 2.6,
though.

On Mon, 15 Mar 2004, Cress, Andrew R wrote:

> Right, once it is really OOM, you are SOL :-) Really the only thing you can do at this point in the kernel is to not allocate any more memory, and functions that require more memory just don't work, and the recovery is to reboot..
>
> IMO, the best answer is to detect a nearly-OOM, or trending-toward-OOM condition before it gets so bad.
> This would allow userland actions, but would require more customization to tune the detection criteria, which would also imply a userland implementation of the monitoring. We've found that PCP works pretty well for this type of thing.
> See http://oss.sgi.com/projects/pcp/ and http://pcp4cgl.sourceforge.net/. We did some work with this for CGL 1.0.
>
> Andy Cress
>
> -----Original Message-----
> From: cgl_discussion-bounces@xxxxxxxxxxxxxx [mailto:cgl_discussion-bounces@xxxxxxxxxxxxxx] On Behalf Of Pavel Machek
> Sent: Monday, March 08, 2004 6:02 AM
> To: Yury V. Umanets
> Cc: Guo, Min; Tvrtko A. Ur¹ulin; linux-kernel@xxxxxxxxxxxxxxx; cgl_discussion@xxxxxxxxxxxxxx
> Subject: [cgl_discussion] Re: About Replaceable OOM Killer
>
>
> Hi!
>
> > > Though it hasn't been updated for a while because nobody cares...
> > IMHO problem with OOM killer is that it always will do wrong choice. So,
> > it should be either plugin based or allow to configure it and this
> > means, that it will become more complex and buggy. Does not it mean,
> > that OOM killer should be moved to user space?
> >
> > How about to export OOM event to user space? It might be done in manner
> > like hotplug script is used.
>
> When you are OOM, you really can't exec userland script...
>
>

-
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/