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



Kris Kennaway wrote:

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

This effectively means that you cannot take advantage of SMP to compile FreeBSD's ports collection. That sounds like a big limitation...especially for people trying to speed up bulk builds.


Is "-pipe" still a good idea? It should provide a significant performance boost, if the process is spending a lot of time doing disk I/O, without using up a lot of memory.
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"




Relevant Pages

  • Re: speed up port compiling using RAM (tmpfs) ???
    ... Ashok Shrestha wrote: ... Setting another flag "-j 2" will allow 2 jobs to be done at the same time and should eliminate 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). ...
    (freebsd-hackers)
  • Re: events and backgroundworker thread
    ... /// code in theread Manager ... all jobs of this jobtype ... if i have 4 threads running the errorhandler will set the flag once, ...
    (microsoft.public.dotnet.languages.csharp)
  • Flags in emails - how to get date/time to print consistently when ticked "completed", pls?
    ... I use flags in email messages to help track BFs. ... dozens of emails a day and it's been very tricky trying to keep on top ... then print a hard copy of that final email with the flag and blurb. ... In last 2 jobs they haven't. ...
    (microsoft.public.outlook.general)
  • Re: dont you know outsourcing your job to katmandu is good for you.
    ... > is the villain the one that wraps themselves in a flag and merrily or ... > speech while complaining about the millions of us jobs being shipped ... about....this free trade zone is the cornerstone of rp's industrial ...
    (soc.culture.filipino)
  • Re: SQL Server Agent job enable flag
    ... If that is the really the case it sounds like a bug to me. ... It seems to behave differently for different jobs. ... > enable flag did not exist. ... > Some jobs execute some ActiveX script as the first step, ...
    (microsoft.public.sqlserver.server)