From owner-freebsd-current@FreeBSD.ORG Wed Oct 7 20:49:31 2009 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 37FA81065696 for ; Wed, 7 Oct 2009 20:49:31 +0000 (UTC) (envelope-from tom@tomjudge.com) Received: from tomjudge.vm.bytemark.co.uk (tomjudge.vm.bytemark.co.uk [80.68.91.100]) by mx1.freebsd.org (Postfix) with ESMTP id D85AB8FC0A for ; Wed, 7 Oct 2009 20:49:30 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by tomjudge.vm.bytemark.co.uk (Postfix) with ESMTP id E9FC2489D8; Wed, 7 Oct 2009 21:49:29 +0100 (BST) X-Virus-Scanned: Debian amavisd-new at tomjudge.vm.bytemark.co.uk Received: from tomjudge.vm.bytemark.co.uk ([127.0.0.1]) by localhost (tomjudge.vm.bytemark.co.uk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OAe66dI-L4SZ; Wed, 7 Oct 2009 21:49:26 +0100 (BST) Received: from rita.nodomain (unknown [192.168.205.6]) by tomjudge.vm.bytemark.co.uk (Postfix) with ESMTP id 6A69F489D1; Wed, 7 Oct 2009 21:49:25 +0100 (BST) Message-ID: <4ACCFEB1.1010306@tomjudge.com> Date: Wed, 07 Oct 2009 20:48:49 +0000 From: Tom Judge User-Agent: Thunderbird 2.0.0.23 (X11/20090822) MIME-Version: 1.0 To: Miroslav Lachman <000.fbsd@quip.cz> References: <4ACA0549.7030404@tomjudge.com> <4ACBF147.1030002@tomjudge.com> <4ACC60EF.50104@quip.cz> In-Reply-To: <4ACC60EF.50104@quip.cz> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@FreeBSD.org, freebsd-jail@FreeBSD.org Subject: Re: Per Jail Memory Limits X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Oct 2009 20:49:31 -0000 Miroslav Lachman wrote: > Tom Judge wrote: > >> So I have worked up some thing usable fore us based on the 7.0 code >> from the wiki. >> >> This patch is for 7.1 in implements both soft and hard memory limits. >> >> Details are here: >> http://www.tomjudge.com/index.php/FreeBSD/Jails/MemoryLimits >> >> Changes that add supporting infrastructure for cpu limiting are in >> the patch but changes to the schedulers have not been included. If >> you need the scheduling support you will need to patch sched_4bsd >> with the code from the original patch set here: >> >> http://lists.freebsd.org/pipermail/freebsd-jail/2008-June/000333.html >> >> Hope this is useful for some people. > > I added links to this thread and to your patch into wiki page > http://wiki.freebsd.org/Jails. I hope it will help people to find your > work. > Do you plan to make it for 7.2 and other future releases? Thanks for adding it to the wiki. It should be simple to apply to 7.2, I can try to knock out a patch in my spare time for this. However at this time I have no plans to take this any further, it seems plenty of people are working on this problem. Maybe one day there will be an in tree solution. Tom