From linux-kernel-owner+willy=40w.ods.org@vger.kernel.org Sat Feb 22 21:22:06 2003 Return-Path: Received: from vax.home.local (vax [10.2.1.2]) by alpha.home.local (8.12.4/8.12.1) with ESMTP id h1MKM5li028512 for ; Sat, 22 Feb 2003 21:22:06 +0100 Received: from vger.kernel.org (vger.kernel.org [209.116.70.75]) by vax.home.local (8.12.2/8.12.1) with ESMTP id h1MKaD1Q017069 for ; Sat, 22 Feb 2003 21:36:17 +0100 (CET) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sat, 22 Feb 2003 15:22:34 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sat, 22 Feb 2003 15:22:34 -0500 Received: from 5-077.ctame701-1.telepar.net.br ([200.193.163.77]:40590 "EHLO 5-077.ctame701-1.telepar.net.br") by vger.kernel.org with ESMTP id ; Sat, 22 Feb 2003 15:22:33 -0500 Received: from localhost ([IPv6:::ffff:127.0.0.1]:40078 "EHLO localhost") by imladris.surriel.com with ESMTP id ; Sat, 22 Feb 2003 17:32:34 -0300 Date: Sat, 22 Feb 2003 17:32:33 -0300 (BRT) From: Rik van Riel To: Marc-Christian Petersen cc: linux-kernel@vger.kernel.org Subject: Re: oom killer and its superior braindamage in 2.4 In-Reply-To: Message-ID: References: <200302222025.48129.m.c.p@wolk-project.de> X-spambait: aardvark@kernelnewbies.org X-spammeplease: aardvark@nl.linux.org MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org Status: RO Content-Length: 1117 Lines: 40 On Sat, 22 Feb 2003, Rik van Riel wrote: > On Sat, 22 Feb 2003, Marc-Christian Petersen wrote: > > > - Feb 21 10:04:57 codeman kernel: Out of Memory: Killed process 2657 (apache). > > > > The above log entry (apache) appeared for about 4 hours every some > > seconds (same PID) until I thought about sysrq-b > > > Is there any chance we can fix this up? > > Yes. Never mind my last idea, it can be done much simpler ;) Does the below patch fix your problem ? Rik -- Engineers don't grow up, they grow sideways. http://www.surriel.com/ http://kernelnewbies.org/ ===== mm/oom_kill.c 1.11 vs edited ===== --- 1.11/mm/oom_kill.c Fri Aug 16 10:59:46 2002 +++ edited/mm/oom_kill.c Sat Feb 22 17:31:49 2003 @@ -61,6 +61,9 @@ if (!p->mm) return 0; + + if (p->flags & PF_MEMDIE) + return 0; /* * The memory size of the process is the basis for the badness. */ - 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/