From owner-freebsd-jail@FreeBSD.ORG Tue Mar 26 17:09:39 2013 Return-Path: Delivered-To: freebsd-jail@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id F2BB4615 for ; Tue, 26 Mar 2013 17:09:39 +0000 (UTC) (envelope-from lists@jnielsen.net) Received: from ns1.jnielsen.net (secure.freebsdsolutions.net [69.55.234.48]) by mx1.freebsd.org (Postfix) with ESMTP id DABA3B6D for ; Tue, 26 Mar 2013 17:09:39 +0000 (UTC) Received: from [10.10.1.32] (office.betterlinux.com [199.58.199.60]) (authenticated bits=0) by ns1.jnielsen.net (8.14.4/8.14.4) with ESMTP id r2QH9aK7085991 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Tue, 26 Mar 2013 13:09:37 -0400 (EDT) (envelope-from lists@jnielsen.net) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Subject: Re: add more swap to jail within a jail From: John Nielsen In-Reply-To: <51518C95.2010902@inbox.im> Date: Tue, 26 Mar 2013 11:09:40 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <2A1C9A2C-248E-4232-89E9-635B44C23CF9@jnielsen.net> References: <51518C95.2010902@inbox.im> To: Nicolas de Bari Embriz Garcia Rojas X-Mailer: Apple Mail (2.1503) X-DCC--Metrics: ns1.jnielsen.net 1282; Body=2 Fuz1=2 Fuz2=2 X-Virus-Scanned: clamav-milter 0.97.5 at ns1.jnielsen.net X-Virus-Status: Clean Cc: freebsd-jail@freebsd.org X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Mar 2013 17:09:40 -0000 On Mar 26, 2013, at 5:55 AM, Nicolas de Bari Embriz Garcia Rojas = wrote: > Hi, how can I add more swap space within a jail ? >=20 > I have a jail with limited resources via rctl with somethiing like: >=20 > jail:myjail:maxproc:deny=3D50 > jail:myjail:memoryuse:deny=3D512M > jail:myjail:swapuse:deny=3D512M >=20 > But I want to know it it is possible to add jail disk space to > increment the swap ? >=20 > I am trying to compile gearmand/boots-libs but I can't since eats to > much memory. >=20 > An initial solution is to add the swap on the host, but is there a way > to do it within the jail so that the (root user/admin) doesn't have to > bother the host admin. I jail does not have its own virtual memory subsystem so I doubt this is = possible or advisable. And even if the host admin configures it, swap = space should NOT be directly readable from a jail as it will likely = contain data from external processes which the jail should not have = access to. JN