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

Kris Kennaway kris at obsecurity.org
Thu Jan 19 15:06:07 PST 2006


On Thu, Jan 19, 2006 at 05:32:58PM -0500, Gary Thorpe wrote:
> Ashok Shrestha wrote:
> >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
> 
> An alternative is to try using the "-pipe" flag with GCC: this 
> eliminates the need to use some temporary files by using a unix pipe for 
> IPC. Setting another flag "-j 2" will allow 2 jobs to be done at the 
> same time and should eliminate (by hiding) the I/O delays (this slows 
> down the CPU slightly because of more task switches, but even with one 
> job there are still lots of generated tasks).

-j is not safe to use with port builds since many ported software
contain race conditions in the build.

Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20060119/7bf8da19/attachment.bin


More information about the freebsd-hackers mailing list