From owner-freebsd-questions@freebsd.org Tue Jan 10 01:19:59 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 411ACCA7746 for ; Tue, 10 Jan 2017 01:19:59 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: from mail-pf0-x241.google.com (mail-pf0-x241.google.com [IPv6:2607:f8b0:400e:c00::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 193CB1680 for ; Tue, 10 Jan 2017 01:19:59 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: by mail-pf0-x241.google.com with SMTP id y143so4954086pfb.1 for ; Mon, 09 Jan 2017 17:19:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-transfer-encoding; bh=Y246Ji+l+YQTyaGZJZ8PsdAv2a9qWex7mfX9aWNTFk4=; b=TLxdYrWcnkXEprLoRdO+deTkh+NKwWsNBOLxOOadKRbpIRvxsIZbg5q2iThyhgnSs7 u5i5pQ8Mk+/H3EqjLEaUuSXysn8pHxFyAR0sjfpfQ9dMs0Yo+pfHLU97fUMfFhMiSC/k KB1JozPsH8uQaCkwUdnxIaaYFbx9+UlXkTiA7qmfcdQfwbmXuMS7W3i+2mOamfswop3I fsmByxqBqZDQ7MMvjdVUYYZOGrWFSRArvOMwD+VPlQF6x7cVv7O57Ihjm2ZOGMCu6PZs CvJkSbkTLVowj2MDqeb+O7Y4BOv6zIVAipDaxkIdFcbx/xpFNbcc25kVsYMNSDoVAbAq l/QQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-transfer-encoding; bh=Y246Ji+l+YQTyaGZJZ8PsdAv2a9qWex7mfX9aWNTFk4=; b=Bz0/jCdGl5jqK8vDVdqYYqSevQapLB3zP763NnaVouad6Vr4LzYHdjdaxCjF94Swrx joFnvzyOmfQkWkkGj3ZHgzf3UbELhn7T9WWD6KAyGtHI6jHTw5sRMZAH/5px9SvzFqkn U7dAL7M8940+CdlfnBD3L2myBCByir2t/bW84+MTXkK+IoGkHlc+nrsZiW6iLetp4/aZ x9D9ZK3pSYQZU5hG5RTFZLQsf49RAWRcvR0FGjsU6Q71DP7FfHYT9WNtdaHpuIktEv3r Gorz21VqExNeLXc8+FcffFE0H9tWy5Vke7eD1KPhf4fS6cdDB8/0CEkNEbkLiByNZFdt b+eg== X-Gm-Message-State: AIkVDXKQjBd6SVbOQ5lU6TLH1EDworCytZISOqnd0Oq2KhYqzF6kh3D+yz6RThZWtB0HXA== X-Received: by 10.84.164.231 with SMTP id l36mr935666plg.33.1484011198637; Mon, 09 Jan 2017 17:19:58 -0800 (PST) Received: from [192.168.1.103] ([120.29.76.161]) by smtp.googlemail.com with ESMTPSA id 89sm299720pfi.70.2017.01.09.17.19.57 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 09 Jan 2017 17:19:58 -0800 (PST) Message-ID: <587436BE.20207@gmail.com> Date: Tue, 10 Jan 2017 09:19:58 +0800 From: Ernie Luzar User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Steve O'Hara-Smith CC: freebsd-questions@freebsd.org Subject: Re: Resource Limits Within Jails References: <118410c1-1e3e-2388-ea5b-682515bc39f1@ssimicro.com> <20170105191847.705e2e863078640a98bfb330@sohara.org> In-Reply-To: <20170105191847.705e2e863078640a98bfb330@sohara.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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: Tue, 10 Jan 2017 01:19:59 -0000 Steve O'Hara-Smith wrote: > 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. > I remember reading about resource limiting functions being added to the base system in 10.x or maybe it was a port. I don't recall its name. It has ability to do jail resource limiting. It has also been talked about on this list. Do a find on "resource limiting" in this list archives.