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 > > Log: > Allow the kern.osrelease and kern.osreldate sysctl values to be set in a > jail's creation parameters. This allows the kernel version to be reliably
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! -- Regards, Bryan Drewery
signature.asc
Description: OpenPGP digital signature