Messages in this thread | | | Date | Wed, 7 May 1997 16:53:29 -0500 (CDT) | From | <> | Subject | Re: 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 | +---------------------------------+
| |