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, Theodore Y. Ts'o wrote:

> From: Rik van Riel <Rik.vanRiel@phil.ruu.nl>
> Date: Tue, 6 May 1997 15:24:43 +0200 (MET DST)
>
> I read this thread and linux does indead have this problem.
> I also read the FreeBSD sourcecode, and saw a (somewhat)
> elegant solution for this. If FreeBSD is out of memory, it
> 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...

I think it would almost be dangerous to kill off randium processes. It
would make more sense to kill off the newest processes untill there is
enough memory. That way, as in the above example, you wouldn't kill the x
server untill everything else was killed off of it, unless other computer
are displaying to it. Also that way you have less chance of killing a
vi session where you spent the last day fixing every bug in the kernel and
you didn't save it.

+---------------------------------+
| David Fries |
| dfries@mail.win.org |
+---------------------------------+


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