public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* OOM killer
@ 2002-02-19 10:02 Paco Martinez
  2002-02-19 10:34 ` Alan Cox
  2002-02-19 14:29 ` Denis Vlasenko
  0 siblings, 2 replies; 15+ messages in thread
From: Paco Martinez @ 2002-02-19 10:02 UTC (permalink / raw)
  To: kernel list

Do you know any newer kernel that solves problem about "OOM Killer" ??

Thank you !!!!



^ permalink raw reply	[flat|nested] 15+ messages in thread
* oom killer
@ 2005-05-26 22:37 mbneto
  2005-05-28  2:52 ` John Livingston
  0 siblings, 1 reply; 15+ messages in thread
From: mbneto @ 2005-05-26 22:37 UTC (permalink / raw)
  To: linux-kernel

Hi,

I am trying to figure out how to enable/use a oom killer in order to
prevent a single process to trash the machine.

Any tips will be great.

thanks.

Ps. Is this the right forum ?

^ permalink raw reply	[flat|nested] 15+ messages in thread
* OOM killer.
@ 2002-01-23 12:57 Andrey Nekrasov
  2002-01-23 13:55 ` Helge Hafting
  0 siblings, 1 reply; 15+ messages in thread
From: Andrey Nekrasov @ 2002-01-23 12:57 UTC (permalink / raw)
  To: linux-kernel

Help.

Is it possible to disable VM-killer completely?

Or make it not kill some critical tools. I want, for example, that
in any situation sshd/nfsd/cron remained alive.

-- 
bye.
Andrey Nekrasov, SpyLOG.

^ permalink raw reply	[flat|nested] 15+ messages in thread
* OOM killer
@ 2001-09-27 16:01 Thomas Hood
  2001-09-26 17:11 ` Jesper Juhl
  0 siblings, 1 reply; 15+ messages in thread
From: Thomas Hood @ 2001-09-27 16:01 UTC (permalink / raw)
  To: linux-kernel

After meeting the OOM killer for the first time (not a pleasant meeting)
I went looking for info about it and read through some of the threads
that took place on l-k a few months ago.  I'm sure I didn't read
everything, and I am far from being an expert in this area, but are my
two cents anyway.

It is all very well to have a "smart" function that tries to
minimize the damage done when the OS has to start killing
processes in order to recover memory.  However:

1) It's better if this situation doesn't arise in the first place, and,
2) once it does arise, it's better to let the administrator decide 
   what to kill.  Sometimes the administrator will get fired for killing
   the database and sometimes he'll get fired for killing Netscape---
   there is no way for the authors of Linux to know in advance.

Some OSes don't allow memory overcommit at all.  On these OSes, a process
will simply fail if it tries to allocate memory that's not available.
That Linux allows processes to go ahead under such circumstances can,
I suppose, be called a 'feature'.  But the result of that feature is
that OOM can occur and then a kill decision has to be made.  How this
decision is made ought to be under the administrator's control.

How about assigning each process a property similar to its niceness
which would be used to decide which process to kill in the event of
OOM?  Let's call this property 'humility'.  By default, processes 
would run with humility zero.  A process run with negative humility
would never be allowed to proceed unless there was enough VM to back
up its memory request.  A process with non-negative humility would
be allowed to proceed under such circumstances, but it would be
taking the chance that it would be killed later.

So the system starts to run out of memory.  If all processes have the
same humility then the OOM-killer adjudicator is left to decide among
them just as it does now.  Those with negative humility will never be
killed, and they will never have to be killed because all the memory
they allocated really exists.  Among remaining process, the humblest
get killed first; among those equally humble, the baddest get killed.

So someday in the future I fire up my webserver and start Apache with
negative humility since it's a mission-critical app.  My boss logs in
and starts writing e-mail (humility 0 process).  There's memory 
pressure, so I take the precaution of starting Netscape with
    $ humble communicator
to make sure that communicator gets the axe if we run oom.

Your humble servant,
Thomas Hood

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

end of thread, other threads:[~2005-05-28  2:52 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-19 10:02 OOM killer Paco Martinez
2002-02-19 10:34 ` Alan Cox
2002-02-20 19:56   ` Jeffrey Nowland
2002-02-19 14:29 ` Denis Vlasenko
  -- strict thread matches above, loose matches on Subject: below --
2005-05-26 22:37 oom killer mbneto
2005-05-28  2:52 ` John Livingston
2002-01-23 12:57 OOM killer Andrey Nekrasov
2002-01-23 13:55 ` Helge Hafting
2001-09-27 16:01 Thomas Hood
2001-09-26 17:11 ` Jesper Juhl
2001-09-27 20:52   ` Alex Bligh - linux-kernel
2001-09-26 18:06     ` Jesper Juhl
2001-09-27 23:13       ` Alan Cox
2001-09-28  7:34         ` Jesper Juhl
2001-09-28  7:54           ` Thomas Glanzmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox