From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 12 16:53:43 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 C270916A4CE for ; Tue, 12 Apr 2005 16:53:43 +0000 (GMT) Received: from mailhost.stack.nl (vaak.stack.nl [131.155.140.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 01FAF43D31 for ; Tue, 12 Apr 2005 16:53:43 +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 E785B1F116; Tue, 12 Apr 2005 18:53:41 +0200 (CEST) Received: by hammer.stack.nl (Postfix, from userid 333) id CBE9F62F7; Tue, 12 Apr 2005 18:53:41 +0200 (CEST) Date: Tue, 12 Apr 2005 18:53:41 +0200 From: Marc Olzheim To: Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= Message-ID: <20050412165341.GA2257@stack.nl> References: <200504121224.j3CCOFXL019177@marlena.vvi.at> <011a01c53f66$4035aa00$b3db87d4@multiplay.co.uk> <86ll7ox7re.fsf@xps.des.no> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="oyUTqETQ0mS9luUI" Content-Disposition: inline In-Reply-To: <86ll7ox7re.fsf@xps.des.no> 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 cc: ALeine cc: freebsd-hackers@freebsd.org cc: Steven Hartland 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 16:53:43 -0000 --oyUTqETQ0mS9luUI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Apr 12, 2005 at 06:46:45PM +0200, Dag-Erling Smrgrav wrote: > There is no "large process detection". The first process that tries > to fault in a new page after the system runs out of swap gets killed. Which sucks when a process like X tries to free and realloc things when possible and tries to be system friendly, but thus increases the chance to get shot down, while programs over-allocing memory and never freeing it get to survive. It's a sad world. :-P Anyway, when at our office we were running X on low-memory systems and had to reboot often because of X being killed, rendering the text console useless, we had a patch to prevent processes with specific names being killed. I could revive this and turn this into a sysctl if anyone's interested... Marc --oyUTqETQ0mS9luUI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCW/0VezjnobFOgrERAunQAJ9DT0HTncPpxd5xQ/iEZanxfNGDoACfeHfW v6Ixpk6l+/NAYYXBofpMgiw= =vGEy -----END PGP SIGNATURE----- --oyUTqETQ0mS9luUI--