Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Mar 2015 23:58:38 -0500
From:      Bryan Drewery <bdrewery@FreeBSD.org>
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
Message-ID:  <5512407E.2040505@FreeBSD.org>
In-Reply-To: <201502271628.t1RGSurE067472@svn.freebsd.org>
References:  <201502271628.t1RGSurE067472@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5512407E.2040505>