From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <3ABA8B02.F28B333A@redhat.com> Date: Thu, 22 Mar 2001 18:30:10 -0500 From: Doug Ledford MIME-Version: 1.0 Subject: Re: [PATCH] Prevent OOM from killing init References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org Return-Path: To: Alan Cox Cc: Stephen Clouse , Guest section DW , Rik van Riel , Patrick O'Rourke , linux-mm@kvack.org, linux-kernel@vger.kernel.org List-ID: Alan Cox wrote: > > > > How do you return an out of memory error to a C program that is out of memory > > > due to a stack growth fault. There is actually not a language construct for it > > > > Simple, you reclaim a few of those uptodate buffers. My testing here has > > If you have reclaimable buffers you are not out of memory. If oom is triggered > in that state it is a bug. If you are complaining that the oom killer triggers > at the wrong time then thats a completely unrelated issue. Ummm, yeah, that would pretty much be the claim. Real easy to reproduce too. Take your favorite machine with lots of RAM, run just a handful of startup process and system daemons, then log in on a few terminals and do: while true; do bonnie -s (1/2 ram); done Pretty soon, system daemons will start to die. -- Doug Ledford http://people.redhat.com/dledford Please check my web site for aic7xxx updates/answers before e-mailing me about problems -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux.eu.org/Linux-MM/