Date: Thu, 19 Jan 2006 17:32:58 -0500 From: Gary Thorpe <gthorpe@myrealbox.com> To: Ashok Shrestha <ashok.shrestha@gmail.com> Cc: Dag-Erling Sm?rgrav <des@des.no>, Brandon Flowers <flowersster@gmail.com>, Mike Meyer <mwm@mired.org>, Wesley Shields <wxs@csh.rit.edu>, freebsd-hackers@freebsd.org Subject: Re: speed up port compiling using RAM (tmpfs) ??? Message-ID: <43D0139A.1040601@myrealbox.com> In-Reply-To: <79e2026f0601191215p117d78ebjbee2c4b710075154@mail.gmail.com> 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> <79e2026f0601191215p117d78ebjbee2c4b710075154@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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). If you combine these, you should see your compilations becoming CPU-bound.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43D0139A.1040601>