lkml.org 
[lkml]   [1997]   [May]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Out of memory kernel death
On Wed, 7 May 1997, bert hubert wrote:

>
> On Wed, 7 May 1997, Theodore Y. Ts'o wrote:
>
> > looks through the processes and kills off the largest one.
> > This should be doable in Linux too...
> >
> > The problem is that the largest process is often the X server. Often
> > this will indeed free a lot of memory, but it's not necessarily the best
> > thing to do...
>
> This is getting uglier & uglier, but let's be pragmatic and make it kill
> the largest process NOT called "X".
>
> bert hubert.
>
Hmm, that's not always best either (and that's policy in the kernel,
someone could find out, and start calling all there processes "X" ;).

A better thing to do would be to kill off the latest started process
consuming more that x% of the memory. Ie if you start X, and netscape,
and get X with 50%, and netscape with 30%, and x% is 25 then netscape will
be killed (if set at x% was 30+, it would be X again)

Bryn
--
PGP key pass phrase forgotten, \ Overload -- core meltdown sequence
again :( and I don't care ;) | initiated.
/ This space is intentionally left
| blank, apart from this text ;-)
\____________________________________


\
 
 \ /
  Last update: 2005-03-22 13:39    [W:0.095 / U:0.820 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site