Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 27 Mar 2001 13:09:48 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 27 Mar 2001 13:09:38 -0500 Received: from asterix.hrz.tu-chemnitz.de ([134.109.132.84]:57244 "EHLO asterix.hrz.tu-chemnitz.de") by vger.kernel.org with ESMTP id ; Tue, 27 Mar 2001 13:09:28 -0500 Date: Tue, 27 Mar 2001 20:08:30 +0200 From: Ingo Oeser To: Martin Dalecki Cc: Jonathan Morton , Rogier Wolff , linux-kernel@vger.kernel.org Subject: Re: OOM killer??? Message-ID: <20010327200830.C8133@nightmaster.csn.tu-chemnitz.de> In-Reply-To: <3AC09480.E8317507@evision-ventures.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <3AC09480.E8317507@evision-ventures.com>; from dalecki@evision-ventures.com on Tue, Mar 27, 2001 at 03:24:16PM +0200 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 27, 2001 at 03:24:16PM +0200, Martin Dalecki wrote: > > @@ -93,6 +95,10 @@ > > p->uid == 0 || p->euid == 0) > > points /= 4; > > > > + /* Much the same goes for processes with low UIDs */ > > + if(p->uid < 100 || p->euid < 100) > > + points /= 2; > > + > > Plase change to 100 to 500 - this would make it consistant with > the useradd command, which starts adding new users at the UID 500 No, useradd reads usally the /etc/login.defs to select the range. The oom-killer should have configurables for that, to allow the policy decisions in USER space -- where it belongs -- not in KERNEL space If we use my OOM killer API, this patch would be a module and could have module parameters to select that. Johnathan: I URGE you to apply my patch before adding OOM killer stuff. What's wrong with it, that you cannot use it? ;-) It is easy to add configurables to a module and play with them WITHOUT recompiling. Dynamic sysctl tables would also be possible, IF we had an value that is DEFINED to be invalid for sysctrl(2) and only valid for /proc. It is also better to include the egid into the decision. There are deamons, that I defintely want to be killed on a workstation, but not on a server. e.g. My important matlab calculation, which runs in user mode should not be killed. But killing a local webserver, which serves my help system is ok (because I will not loose work, and might get it over the net, if there is a problem). So as Rik stated: The OOM killer cannot suit all people, so it has to be configurable, to be OOM kill, not overkill ;-) Thanks & Regards Ingo Oeser -- 10.+11.03.2001 - 3. Chemnitzer LinuxTag <<<<<<<<<<<< been there and had much fun >>>>>>>>>>>> - 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/