Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Jan 2006 15:15:08 -0500
From:      Ashok Shrestha <ashok.shrestha@gmail.com>
To:        Wesley Shields <wxs@csh.rit.edu>
Cc:        Dag-Erling Sm?rgrav <des@des.no>, Brandon Flowers <flowersster@gmail.com>, Mike Meyer <mwm@mired.org>, freebsd-hackers@freebsd.org
Subject:   Re: speed up port compiling using RAM (tmpfs) ???
Message-ID:  <79e2026f0601191215p117d78ebjbee2c4b710075154@mail.gmail.com>
In-Reply-To: <20060119175224.GA71633@csh.rit.edu>
References:  <79e2026f0601142345x1a9269bdl3153d1bb110be08d@mail.gmail.com> <86ek34d35f.fsf@xps.des.no> <17359.49899.183831.844670@bhuda.mired.org> <86k6cww445.fsf@xps.des.no> <20060119175224.GA71633@csh.rit.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
I mounted part of RAM as such:

mdmfs -s 500m md /mnt

Then put WRKDIRPREFIX=3D/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@csh.rit.edu> wrote:
> On Thu, Jan 19, 2006 at 05:54:02PM +0100, Dag-Erling Sm?rgrav wrote:
> > Mike Meyer <mwm@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



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