Using a a RAM drive for compiling
Jason Helfman
jgh at FreeBSD.org
Sat May 26 00:30:59 EDT 2012
On Fri, May 25, 2012 at 7:03 AM, Dmitry Morozovsky <marck at rinet.ru> wrote:
> On Fri, 25 May 2012, Andrew Wasilczuk wrote:
>
> > > I'd like tinderbox to use a RAM drive for speeding up compiling times.
> I
> > > guess the way is to point WRKDIRPREFIX to the RAM drive, but how do I
> that.
> > > Is there a way to specify the WRKDIRPREFIX globally for all
> jails/builds?
> >
> > Here's a post I wrote a while ago about this:
> >
> > http://kungfubar.net/tinderbox-tmpfs
> >
> > Hope it helps,
>
> The other possibility, used by our builder:
>
>
> -- 8< --
> marck at beaver:~> cat /etc/fstab
> tmpfs /b tmpfs rw 0 0
>
> marck at beaver:~> cat tb-tmpfs
> #!/bin/sh
>
> TBHOME=/usr/local/tb
>
> BLIST=`${TBHOME}/scripts/tc listBuilds`
>
> for n in $BLIST; do
> mkdir -p /b/$n
> d=${TBHOME}/$n
> rm -rf $d
> chflags -R 0 $d
> rm -rf $d
> mkdir -p $d
> mount -t nullfs -onoclusterw /b/$n $d
> done
> -- 8< --
>
> so even dist tarballs are unpacked to tmpfs
>
> Sometimes I'm still experienced lockups between ZFS and TMPFS though are
> quite rare even if I use 3 or even 4 parallel tinderbuilds.
>
> YMMV, of course...
>
>
> --
> Sincerely,
> D.Marck [DM5020, MCK-RIPE, DM3-RIPN]
> [ FreeBSD committer: marck at FreeBSD.org ]
> ------------------------------------------------------------------------
> *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck at rinet.ru ***
> ------------------------------------------------------------------------
>
> This is already part of Tinderbox. Try configMD option.
-jgh
More information about the tinderbox-list
mailing list