Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 12 Sep 2002 03:01:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 12 Sep 2002 03:01:41 -0400 Received: from c3p0.cc.swin.edu.au ([136.186.1.10]:44294 "EHLO net.cc.swin.edu.au") by vger.kernel.org with ESMTP id ; Thu, 12 Sep 2002 03:01:40 -0400 From: Tim Connors To: linux-kernel@vger.kernel.org Subject: Re: Killing/balancing processes when overcommited In-Reply-To: References: X-Face: "$j_Mi4]y1OBC/&z_^bNEN.b2?Nq4#6U/FiE}PPag?w3'vo79[]J_w+gQ7}d4emsX+`'Uh*.GPj}6jr\XLj|R^AI,5On^QZm2xlEnt4Xj]Ia">r37r<@S.qQKK;Y,oKBl<1.sP8r,umBRH';vjULF^fydLBbHJ"tP?/1@iDFsKkXRq`]Jl51PWN0D0%rty(`3Jx3nYg! Message-ID: Date: Thu, 12 Sep 2002 17:06:27 +1000 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1733 Lines: 39 In linux.kernel, you wrote: > > resource > group priority kill priority > system 0 0 - never kill > support 1 1 > payroll 2 2 > production 3 3 > general user 4 4 > production backgournd 5 3 <- make sure testing and > general user are killed BEFORE production > testing 6 5 > > Note that in the example above, production has the second lowest resource > priority, but a higher kill priority ("we don't care how long it takes, but > it must complete"). > > In a system with sufficient resources, everyone would get what they needed. > As resources become limit, payroll gets resources first and testing gets > the least. In the extreme case, when the system is overwhelmed, testing is > the first to be removed. You seemed to have just described a combination of forced niceness (from login scripts) and ulimit. Man ulimit about how to limit number of processes plus memory etc, so people can't fork() bomb you out of existance. -- TimC -- http://astronomy.swin.edu.au/staff/tconnors/ Conclusion to my thesis -- "It is trivial to show that it is clearly obvious that this is not woofly" - 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/