From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 13 09:31:05 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 309D516A4CE for ; Wed, 13 Apr 2005 09:31:05 +0000 (GMT) Received: from mailhost.stack.nl (vaak.stack.nl [131.155.140.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 55C7C43D48 for ; Wed, 13 Apr 2005 09:31:04 +0000 (GMT) (envelope-from marcolz@stack.nl) Received: from hammer.stack.nl (hammer.stack.nl [IPv6:2001:610:1108:5010::153]) by mailhost.stack.nl (Postfix) with ESMTP id 264671F15F; Wed, 13 Apr 2005 11:31:03 +0200 (CEST) Received: by hammer.stack.nl (Postfix, from userid 333) id 07AF16132; Wed, 13 Apr 2005 11:31:02 +0200 (CEST) Date: Wed, 13 Apr 2005 11:31:02 +0200 From: Marc Olzheim To: Steven Hartland , =?us-ascii?Q?=3D=3Fus-ascii=3Aiso-8859-1=3FQ=3FSm=3DF8rgrav?= =?us-ascii?B?Pz0=?= , ALeine , freebsd-hackers@FreeBSD.ORG Message-ID: <20050413093102.GA61401@stack.nl> References: <200504121224.j3CCOFXL019177@marlena.vvi.at> <011a01c53f66$4035aa00$b3db87d4@multiplay.co.uk> <86ll7ox7re.fsf@xps.des.no> <020201c53f82$e4b54330$b3db87d4@multiplay.co.uk> <20050412224050.GA20005@VARK.MIT.EDU> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="VS++wcV0S1rZb1Fb" Content-Disposition: inline In-Reply-To: <20050412224050.GA20005@VARK.MIT.EDU> X-Operating-System: FreeBSD hammer.stack.nl 5.4-STABLE FreeBSD 5.4-STABLE X-URL: http://www.stack.nl/~marcolz/ User-Agent: Mutt/1.5.9i 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: Wed, 13 Apr 2005 09:31:05 -0000 --VS++wcV0S1rZb1Fb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Apr 12, 2005 at 06:40:50PM -0400, David Schultz wrote: > Using madvise doesn't require changes per app, since MADV_PROTECT > is inherited across exec. You just have to write a wrapper, much > in the spirit of nice(1), to execute a protected version of X. Hmm, that's new to me, but certainly very useful and would do the trick in the case of X. The only problem seems to be that it doesn't seem to be shareable across fork() and that is isn't easily tunable after a process is started. Btw.: Why is this in madvise() and not in rfork() ? Is it because of POSIX ? Any pointers are welcome... Marc --VS++wcV0S1rZb1Fb Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCXObWezjnobFOgrERAusvAJ9S6QUayqf3TAm/9FeX4SvXwQTAugCfRXXT jPVYLWODVH2NcmXX54vtF5Y= =LQwQ -----END PGP SIGNATURE----- --VS++wcV0S1rZb1Fb--