From owner-freebsd-stable@FreeBSD.ORG Sat Mar 11 01:23:33 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9B77E16A420 for ; Sat, 11 Mar 2006 01:23:33 +0000 (GMT) (envelope-from peterjeremy@optushome.com.au) Received: from mail10.syd.optusnet.com.au (mail10.syd.optusnet.com.au [211.29.132.191]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9944C494EF for ; Fri, 10 Mar 2006 19:32:58 +0000 (GMT) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-19-236.belrs4.nsw.optusnet.com.au [220.239.19.236]) by mail10.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id k2AJWog0029355 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sat, 11 Mar 2006 06:32:51 +1100 Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.13.4/8.13.4) with ESMTP id k2AJWn71003190; Sat, 11 Mar 2006 06:32:50 +1100 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.13.4/8.13.4/Submit) id k2AJWmPE003189; Sat, 11 Mar 2006 06:32:48 +1100 (EST) (envelope-from peter) Date: Sat, 11 Mar 2006 06:32:48 +1100 From: Peter Jeremy To: Dmitry Pryanishnikov Message-ID: <20060310193248.GC688@turion.vk2pj.dyndns.org> References: <20060302181625.I3905@atlantis.atlantis.dp.ua> <76FAD2DB-CD18-42D4-95C8-F016CFB17B00@segpub.com.au> <20060303110936.R86586@atlantis.atlantis.dp.ua> <20060303185157.GB692@turion.vk2pj.dyndns.org> <20060304001224.G356@atlantis.atlantis.dp.ua> <20060304065138.GD692@turion.vk2pj.dyndns.org> <20060310121758.S80837@atlantis.atlantis.dp.ua> <20060310123942.GI37572@deviant.kiev.zoral.com.ua> <20060310153737.X40396@atlantis.atlantis.dp.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060310153737.X40396@atlantis.atlantis.dp.ua> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.11 Cc: Kostik Belousov , Michael Proto , freebsd-stable@freebsd.org Subject: Re: RELENG_4 on flash disk and swap X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Mar 2006 01:23:33 -0000 On Fri, 2006-Mar-10 15:53:43 +0200, Dmitry Pryanishnikov wrote: > But AFAIK the kernel kills NOT the requesting process but the one with the >largest RSS. This selection algorithm seems to be the dumbest one, since >process with largest RSS almost always is the process which does some real >work. This frees up the greatest amount of memory and so minimises the risk of the problem recurring. > Compare "never satisfy request" and "kill another, totally unrelated, >process". This has been argued about many times in the past - though not with any satisfactory solution AFAIK. Look for 'SIGDANGER' in the archives. -- Peter Jeremy