From owner-freebsd-questions@freebsd.org Thu Jan 5 19:18:58 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 284A2CA1F9F for ; Thu, 5 Jan 2017 19:18:58 +0000 (UTC) (envelope-from steve@sohara.org) Received: from smtp3.irishbroadband.ie (smtp3.irishbroadband.ie [62.231.32.5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EA5C01D12 for ; Thu, 5 Jan 2017 19:18:57 +0000 (UTC) (envelope-from steve@sohara.org) Received: from [89.127.62.20] (helo=smtp.lan.sohara.org) by smtp3.irishbroadband.ie with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1cPDYr-0005rY-Cl for freebsd-questions@freebsd.org; Thu, 05 Jan 2017 19:18:53 +0000 Received: from [192.168.63.1] (helo=steve.lan.sohara.org) by smtp.lan.sohara.org with smtp (Exim 4.87 (FreeBSD)) (envelope-from ) id 1cPDZU-000AlU-Ml for freebsd-questions@freebsd.org; Thu, 05 Jan 2017 19:19:32 +0000 Date: Thu, 5 Jan 2017 19:18:47 +0000 From: Steve O'Hara-Smith To: freebsd-questions@freebsd.org Subject: Re: Resource Limits Within Jails Message-Id: <20170105191847.705e2e863078640a98bfb330@sohara.org> In-Reply-To: <118410c1-1e3e-2388-ea5b-682515bc39f1@ssimicro.com> References: <118410c1-1e3e-2388-ea5b-682515bc39f1@ssimicro.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.29; amd64-portbld-freebsd10.1) X-Clacks-Overhead: "GNU Terry Pratchett" Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jan 2017 19:18:58 -0000 On Thu, 5 Jan 2017 11:53:55 -0700 markham breitbach wrote: > I am trying to figure out the best way to manage resource limits for a > particular daemon within a jail (specifically memory usage), without > having to limit the entire jail and other processes within. Not specific to jails but one way is to start the daemon from a shell script and use ulimit to set resource limits before execing the daemon. -- Steve O'Hara-Smith