From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 12 13:22:28 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A49EE16A4CE for ; Tue, 12 Apr 2005 13:22:28 +0000 (GMT) Received: from arginine.spc.org (arginine.spc.org [83.167.185.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3724A43D48 for ; Tue, 12 Apr 2005 13:22:28 +0000 (GMT) (envelope-from bms@spc.org) Received: from localhost (localhost [127.0.0.1]) by arginine.spc.org (Postfix) with ESMTP id 66E8A65213; Tue, 12 Apr 2005 14:22:09 +0100 (BST) Received: from arginine.spc.org ([127.0.0.1]) by localhost (arginine.spc.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 36163-02-3; Tue, 12 Apr 2005 14:22:09 +0100 (BST) Received: from empiric.dek.spc.org (dhcp52.icir.org [192.150.187.52]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by arginine.spc.org (Postfix) with ESMTP id 8460165211; Tue, 12 Apr 2005 14:22:03 +0100 (BST) Received: by empiric.dek.spc.org (Postfix, from userid 1001) id B2834616D; Tue, 12 Apr 2005 06:22:19 -0700 (PDT) Date: Tue, 12 Apr 2005 06:22:19 -0700 From: Bruce M Simpson To: ALeine Message-ID: <20050412132219.GB784@empiric.icir.org> Mail-Followup-To: ALeine , killing@multiplay.co.uk, freebsd-hackers@freebsd.org References: <200504121224.j3CCOFXL019177@marlena.vvi.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200504121224.j3CCOFXL019177@marlena.vvi.at> cc: freebsd-hackers@freebsd.org cc: killing@multiplay.co.uk Subject: Re: kernel killing processes when out of swap X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Apr 2005 13:22:28 -0000 On Tue, Apr 12, 2005 at 05:24:15AM -0700, ALeine wrote: > machine. Having a flag to tag processes as vital to prevent them from getting > killed (or to give them lower next-to-be-killed priority so that all non-vital > processes get killed first) when you run out of swap would be a useful feature, P_SYSTEM provides something like this feature, amongst others. It is used by init(8). However P_SYSTEM also says that process statistics should not be maintained, and that the signals that may be dispatched to such processes are restricted. It would be more appropriate if such processes use the mlockall(2) call for the time being. BMS