linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RE: [cgl_discussion] Re: About Replaceable OOM Killer
@ 2004-03-15 13:45 Cress, Andrew R
  2004-03-15 18:24 ` Pavel Machek
  2004-03-15 20:06 ` Marcelo Tosatti
  0 siblings, 2 replies; 3+ messages in thread
From: Cress, Andrew R @ 2004-03-15 13:45 UTC (permalink / raw)
  To: Pavel Machek, Yury V. Umanets
  Cc: Guo, Min, Tvrtko A. Uršulin, linux-kernel, cgl_discussion

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@lists.osdl.org [mailto:cgl_discussion-bounces@lists.osdl.org] 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@vger.kernel.org; cgl_discussion@lists.osdl.org
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...

-- 
64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms         

_______________________________________________
cgl_discussion mailing list
cgl_discussion@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/cgl_discussion

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [cgl_discussion] Re: About Replaceable OOM Killer
  2004-03-15 13:45 [cgl_discussion] Re: About Replaceable OOM Killer Cress, Andrew R
@ 2004-03-15 18:24 ` Pavel Machek
  2004-03-15 20:06 ` Marcelo Tosatti
  1 sibling, 0 replies; 3+ messages in thread
From: Pavel Machek @ 2004-03-15 18:24 UTC (permalink / raw)
  To: Cress, Andrew R
  Cc: Yury V. Umanets, Guo, Min, Tvrtko A. Uršulin, linux-kernel,
	cgl_discussion

Hi!

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

Well, I see that as orthogonal.

With right daemon you may prevent OOM in most situations. Kernel still
needs some OOM killer for cases where faileure was just too fast, but
it can now be simpler (and that's good).
								Pavel
-- 
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [cgl_discussion] Re: About Replaceable OOM Killer
  2004-03-15 13:45 [cgl_discussion] Re: About Replaceable OOM Killer Cress, Andrew R
  2004-03-15 18:24 ` Pavel Machek
@ 2004-03-15 20:06 ` Marcelo Tosatti
  1 sibling, 0 replies; 3+ messages in thread
From: Marcelo Tosatti @ 2004-03-15 20:06 UTC (permalink / raw)
  To: Cress, Andrew R
  Cc: Pavel Machek, Yury V. Umanets, Guo, Min, Tvrtko A. Uršulin,
	linux-kernel, cgl_discussion


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@lists.osdl.org [mailto:cgl_discussion-bounces@lists.osdl.org] 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@vger.kernel.org; cgl_discussion@lists.osdl.org
> 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...
> 
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-03-15 20:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-15 13:45 [cgl_discussion] Re: About Replaceable OOM Killer Cress, Andrew R
2004-03-15 18:24 ` Pavel Machek
2004-03-15 20:06 ` Marcelo Tosatti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).