From owner-freebsd-stable@FreeBSD.ORG Thu Apr 30 18:37:59 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 1267E294 for ; Thu, 30 Apr 2015 18:37:59 +0000 (UTC) Received: from new2-smtp.messagingengine.com (new2-smtp.messagingengine.com [66.111.4.224]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DBD0B1D0F for ; Thu, 30 Apr 2015 18:37:57 +0000 (UTC) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.nyi.internal (Postfix) with ESMTP id 5773715D4 for ; Thu, 30 Apr 2015 14:28:17 -0400 (EDT) Received: from web3 ([10.202.2.213]) by compute3.internal (MEProxy); Thu, 30 Apr 2015 14:28:17 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=/X9GyG98fPh7/w1 T7L3SpfXl15A=; b=LvcHKocv/KsiZf+pv0WTZWYq23DhsEGGUwvTF4reAuCc7R1 KvkBvXDnLJDmcClKFYKfYkSI+UvvRElqXyLnpv915k22/FUpjot311WqJhmU7k8k Z3nN/EoLC/g5zG6G1MiT/oSMoMmfUde86ElygQK3/f/hhDatcCQ+JZJPR+zU= Received: by web3.nyi.internal (Postfix, from userid 99) id 12FAC1079D9; Thu, 30 Apr 2015 14:28:17 -0400 (EDT) Message-Id: <1430418497.3253201.261134645.7FB30850@webmail.messagingengine.com> X-Sasl-Enc: alQlvRvgU0ndsjJwq0nCXyT2yB6Gqgj7EjeEyCKE27q4 1430418497 From: Mark Felder To: freebsd-stable@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain X-Mailer: MessagingEngine.com Webmail Interface - ajax-f5f4dd6c Subject: Re: protecting some processes from out-of-swap killer Date: Thu, 30 Apr 2015 13:28:17 -0500 In-Reply-To: <20150425104336.GD13141@ivaldir.etoilebsd.net> References: <20150425104336.GD13141@ivaldir.etoilebsd.net> 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: Thu, 30 Apr 2015 18:37:59 -0000 On Sat, Apr 25, 2015, at 05:43, Baptiste Daroussin wrote: > On Sat, Apr 25, 2015 at 01:31:14PM +0300, Dmitry Morozovsky wrote: > > Hi there colleagues, > > > > I have stable/10 on a rather big machine (2*8*2 e5 Xeon, 64G RAM, SAS+SSD ZFS > > raid10+ZIL+L2ARC) acting as a PostgreSQL server. > > > > To use such a big resource pool that is mostly idle, I'd deployed poudriere > > there (using tmpfs) too. > > > > Most times this combination works like a charm: LA could be 60+ and no visual > > latency increase on SQL queries. > > > > 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? > > > > Quick googling does not help, at least I could not find answers relevant > > enough. > > > > Thanks! > > protect(1) ? > Thanks for asking, Dmitry, as I've now learned of a new useful command. It appears it has only been around a short time: > Added Thu Sep 19 18:53:42 2013 UTC (19 months, 1 week ago) by jhb Very cool. :-)