Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 23 Mar 2001 12:23:59 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 23 Mar 2001 12:23:44 -0500 Received: from dfmail.f-secure.com ([194.252.6.39]:44553 "HELO dfmail.f-secure.com") by vger.kernel.org with SMTP id ; Fri, 23 Mar 2001 12:22:55 -0500 Date: Fri, 23 Mar 2001 19:31:33 +0200 (MET DST) From: Szabolcs Szakacsits To: Rik van Riel cc: "Patrick O'Rourke" , , Subject: Re: [PATCH] Prevent OOM from killing init In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 21 Mar 2001, Rik van Riel wrote: > One question ... has the OOM killer ever selected init on > anybody's system ? Hi Rik, When I ported your OOM killer to 2.2.x and integrated it into the 'reserved root memory' [*] patch, during intensive testing I found two cases when init was killed. It happened on low-end machines and when OOM killer wasn't triggered so init was killed in the page fault handler. The later was also one of the reasons I replaced the "random" OOM killer in page fault handler with yours [so there is only one OOM killer]. I also asked you at that time whether there was any reason you didn't put it also there but unfortunately you didn't answer. Practice showed it works there as well [and actually some crashes that was reported here recently could have been avoided in this way] but technically maybe I missed something? Other things that bothered me, - niced processes are penalized - trying to kill a task that is permanently in TASK_UNINTERRUPTIBLE will probably deadlock the machine [or the random OOM killer will kill the box]. Szaka [*] who are interested, it can be found at http://mlf.linux.rulez.org/mlf/ezaz/reserved_root_memory.html - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/