From owner-svn-src-head@FreeBSD.ORG Wed Mar 25 04:58:37 2015 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9284C144 for ; Wed, 25 Mar 2015 04:58:37 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 58043122 for ; Wed, 25 Mar 2015 04:58:37 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.9/8.14.9) with ESMTP id t2P4wb9s037369 for ; Wed, 25 Mar 2015 04:58:37 GMT (envelope-from bdrewery@freefall.freebsd.org) Received: (from bdrewery@localhost) by freefall.freebsd.org (8.14.9/8.14.9/Submit) id t2P4wblT037368 for svn-src-head@freebsd.org; Wed, 25 Mar 2015 04:58:37 GMT (envelope-from bdrewery) Received: (qmail 33390 invoked from network); 24 Mar 2015 23:58:35 -0500 Received: from unknown (HELO ?10.10.1.139?) (freebsd@shatow.net@10.10.1.139) by sweb.xzibition.com with ESMTPA; 24 Mar 2015 23:58:35 -0500 Message-ID: <5512407E.2040505@FreeBSD.org> Date: Tue, 24 Mar 2015 23:58:38 -0500 From: Bryan Drewery Organization: FreeBSD User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r279361 - in head: sys/kern sys/sys usr.sbin/jail References: <201502271628.t1RGSurE067472@svn.freebsd.org> In-Reply-To: <201502271628.t1RGSurE067472@svn.freebsd.org> OpenPGP: id=6E4697CF; url=http://www.shatow.net/bryan/bryan2.asc Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qE6JkqtRN8MjIF9cfEAN008M9AEr40GR2" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Mar 2015 04:58:37 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --qE6JkqtRN8MjIF9cfEAN008M9AEr40GR2 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2/27/2015 10:28 AM, Ian Lepore wrote: > Author: ian > Date: Fri Feb 27 16:28:55 2015 > New Revision: 279361 > URL: https://svnweb.freebsd.org/changeset/base/279361 >=20 > Log: > Allow the kern.osrelease and kern.osreldate sysctl values to be set i= n a > jail's creation parameters. This allows the kernel version to be rel= iably For package building we very much need to be able to override hw.ncpu, hw.physmem and kern.smp.cpus. Too many ports spy on those rather than using the values we pass in the environment. Java ports have this issue. We set a ulimit on the jail and Java sees there is 96GB of RAM on the system and tries to allocate a very large portion of it and fails. Hence we cannot run package builds with any sort of memory limits. Ports disrespecting the MAKE_JOBS_NUMBER we assign to them will no longer be an issue if we can spoof hw.ncpu/kern.smp.cpus as well. Bonus points for allowing these to be changed on-demand. We may setup a jail and want to change how much memory or CPUs it is allowed depending on what is going to be built next. I had been planning to look at this eventually but if someone beats me to it that would be great! --=20 Regards, Bryan Drewery --qE6JkqtRN8MjIF9cfEAN008M9AEr40GR2 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJVEkB+AAoJEDXXcbtuRpfPZLQH/3d2oxN3l6sTsg4hPAwlo+f4 IIf42iWq3t0LK2C/W2xAzDRuOxZP8VyX527njF3yxxkbJu1jHZSBnis7swKwscfl ch8FyT/XdFuVFn6VxXd3md5NH20V8XfbfCBA2ovIRgETML/uFkf6LkvSuy2A1Gsr xHij2u7rKTH0jgR2CuclMevjcXeBVf3RS/ax6q357GMpCIy0MOYuGcOYVQ/Q251M liKkYR2EmR0CWqZhiQVo48MSM090pZ9HsQwk+dYCD94iBwcy60RwSdKZ3a0aRk6a ud9dcKNwb/KLu0/juXcrxP3j2/e1zx3S8AaGL4y6ekfcmAOF8AEmps9kBkx6eDw= =wDDi -----END PGP SIGNATURE----- --qE6JkqtRN8MjIF9cfEAN008M9AEr40GR2--