From owner-freebsd-jail@FreeBSD.ORG Mon May 23 19:05:34 2011 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2D037106566B for ; Mon, 23 May 2011 19:05:34 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) by mx1.freebsd.org (Postfix) with ESMTP id DEB898FC17 for ; Mon, 23 May 2011 19:05:33 +0000 (UTC) Received: from elsa.codelab.cz (localhost.codelab.cz [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id C887E19E02D; Mon, 23 May 2011 20:48:40 +0200 (CEST) Received: from [192.168.1.2] (ip-86-49-61-235.net.upcbroadband.cz [86.49.61.235]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 58EA419E02F; Mon, 23 May 2011 20:48:38 +0200 (CEST) Message-ID: <4DDAAC05.5050101@quip.cz> Date: Mon, 23 May 2011 20:48:37 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 MIME-Version: 1.0 To: "Lars R. Noldan" References: <4DDA8FDE.9030005@sixfeetup.com> In-Reply-To: <4DDA8FDE.9030005@sixfeetup.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-jail@freebsd.org Subject: Re: Memory Limits X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 May 2011 19:05:34 -0000 Lars R. Noldan wrote: > Hello all, > > I'm sorry if this has been asked before. My search fu only showed > something dating back to FreeBSD 6.2 era, and I know a lot of work has > gone into jails since then. Is there a way to limit the amount of total > ram available to a jail? Say for instance I have a jails server with > 32gb of ram, can I limit jail01 to 512mb? If this isn't currently > possible is there any work being done towards this goal? > > Any suggestions you can provide, including links to the fine manual I > should have found but didn't are welcome. > > Thanks for all the hard work that's gone into jails! In the time I've > been using them (since 7.1-Release) The improvements are huge! You are looking for http://wiki.freebsd.org/Hierarchical_Resource_Limits it is implemented in 9-CURRENT http://svnweb.freebsd.org/base/head/usr.bin/rctl/ Miroslav Lachman