speed up port compiling using RAM (tmpfs) ???

Ashok Shrestha ashok.shrestha at gmail.com
Thu Jan 19 12:21:12 PST 2006


I mounted part of RAM as such:

mdmfs -s 500m md /mnt

Then put WRKDIRPREFIX=/path/to/md in /etc/make.conf.

It substantially reduces compile time by about 5-10 times.


Thanx to all ur replies.

-Ashok Shrestha

On 1/19/06, Wesley Shields <wxs at csh.rit.edu> wrote:
> On Thu, Jan 19, 2006 at 05:54:02PM +0100, Dag-Erling Sm?rgrav wrote:
> > Mike Meyer <mwm at mired.org> writes:
> > > Will using a swap-backed disk change anything?
> >
> > Not really.
> >
> > > How about the best way to configure things to use two disks for the
> > > compile?
> >
> > I'm not sure what you are trying to achieve.  Unlike the base system,
> > the ports tree does not use separate source and object directories.
>
> I think he is trying to get at a scenario where WRKDIR is on a seperate
> disk from the one /usr/ports is on.
>
> To answer his question, assuming this is what he is going, for why not
> just add a new physical disk to the system per the handbook, and set
> WRKDIR to be where ever that disk is mounted.
>
> -- WXS
>


--
Ashok Shrestha


More information about the freebsd-hackers mailing list