Paul de Weerd wrote: > On Mon, Dec 15, 2008 at 06:17:53AM -0600, Ed Ahlsen-Girard wrote: >> 2. In any case, how big does that slice need to be? > > Mine is 2G, but the size depends on a lot of things. What arch are you > building for ? Do you only build kernels ? Full make build ? Making > Xorg ? I have 'WRKOBJDIR=/usr/obj/ports' for ports building, that also > takes some room. > > So the correct answer is "depends". With current disksizes, giving it > a couple of G's shouldn't hurt and will give you plenty of room to do > whatever. > > Cheers, > > Paul 'WEiRD' de Weerd >
On that note, does anyone know how to poke the restrictions set in login.conf on a temporary basis? The existence of datasize-cur and datasize-max suggest I should be able to do this, but I can't find the relevant command. I'd rather not do it in login.conf as its a useful restriction most of the time to stop things running away. I'm trying to create a 2G MFS for /usr/obj, but if I go much above 2000000 with mount_mfs I get an error: slash:~# mount_mfs -s 3000000 swap /mnt mount_mfs: mmap: Cannot allocate memory slash:~# mount_mfs -s 2000000 swap /mnt slash:~# # Works OK. I am assuming this is down to my login class, although it could be a kernel setting. I'm not sure how tio find out which. Anyone got any ideas? I'm hoping putting obj on an mfs will help my build times, but if I can't make it big enough it'll do me no good at all :-) Si1entDave