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

Wouldn't killing off the process that has the lowest CPU use be best
(other than processes 1-10, which are reserved, and currently all not
terminatable without dire consiqunces), on the theory that it wasn't doing
anything anyway? That should atleast give you enough memory to kill -HUP
others instead of just destroying them.

-=- James Mastros


\
 
 \ /
  Last update: 2005-03-22 13:39    [from the cache]
©2003-2011 Jasper Spaans