Date: Wed, 07 Oct 2009 01:39:19 +0000 From: Tom Judge <tom@tomjudge.com> To: freebsd-current@freebsd.org Subject: Re: Per Jail Memory Limits Message-ID: <4ACBF147.1030002@tomjudge.com> In-Reply-To: <4ACA0549.7030404@tomjudge.com> References: <4ACA0549.7030404@tomjudge.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Tom Judge wrote: > Hi, > > Does anyone know of a patch that will add per jail memory limits so > that a jail can't swallow the resources of the entire box? > 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. Tom
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4ACBF147.1030002>