From owner-freebsd-stable@FreeBSD.ORG Sat Apr 25 11:16:26 2015 Return-Path: Delivered-To: freebsd-stable@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A35464E0; Sat, 25 Apr 2015 11:16:26 +0000 (UTC) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2172A1376; Sat, 25 Apr 2015 11:15:55 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.14.5/8.14.5) with ESMTP id t3PBFWkW044248; Sat, 25 Apr 2015 14:15:32 +0300 (MSK) (envelope-from marck@rinet.ru) Date: Sat, 25 Apr 2015 14:15:32 +0300 (MSK) From: Dmitry Morozovsky To: Baptiste Daroussin cc: freebsd-stable@FreeBSD.org Subject: Re: protecting some processes from out-of-swap killer In-Reply-To: <20150425104336.GD13141@ivaldir.etoilebsd.net> Message-ID: References: <20150425104336.GD13141@ivaldir.etoilebsd.net> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-NCC-RegID: ru.rinet X-OpenPGP-Key-ID: 6B691B03 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (woozle.rinet.ru [0.0.0.0]); Sat, 25 Apr 2015 14:15:32 +0300 (MSK) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.20 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, 25 Apr 2015 11:16:26 -0000 On Sat, 25 Apr 2015, Baptiste Daroussin wrote: > > However, sometimes postgres processes got killed by 'out of swap space'. > > I suppose the source of problem could be that VSZ size of postgres processes > > (8-9 G) is bigger than swap congigured (4G). > > > > Is there any way to prevent this, besides reallocating space for swap? > > protect(1) ? Of course. I really do not understand how google hides the man page from me. Thanks, and sorry fot the noise. -- Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] [ FreeBSD committer: marck@FreeBSD.org ] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------