Re: make -j$n buildworld : use of -j investigated

2004-12-02 Thread Garance A Drosihn
At 2:08 PM +0900 11/23/04, Rob wrote: Hi, I have tested following with FreeBSD 5.3-Stable. On several different PCs I have used make -j$n buildworld with $n ranging from 1 to 9. Although people suggest "-j4" as optimal in general case, I have come to a very different conclusion... So, I finally

Re: make -j$n buildworld : use of -j investigated

2004-11-27 Thread Rob
David Schwartz wrote: According to my formula: time(minutes) = 1e5 / ( speed(MHz) * nproc ) and taking nproc = 1, this results in time = 1e5 / 2798.66 = 36 minutes Quite accurate for your system as well. At least this formula gives a resonable estimate about the compile time. Apparently HT does

RE: make -j$n buildworld : use of -j investigated

2004-11-27 Thread David Schwartz
> According to my formula: > >time(minutes) = 1e5 / ( speed(MHz) * nproc ) > > and taking nproc = 1, this results in > >time = 1e5 / 2798.66 = 36 minutes > > Quite accurate for your system as well. At least this formula gives a > resonable estimate about the compile time. > > Apparently HT

Re: make -j$n buildworld : use of -j investigated

2004-11-27 Thread Rob
Frank Behrens wrote: I read this thread with interest and saw the question, how the system wil behave with hyperthreading. Should I not benchmark my system? here you have the results. The interpretation is left to the experts. IMHO HT is not as useless as expected. :-) I did not switch off SMP w

Re: make -j$n buildworld : use of -j investigated

2004-11-27 Thread Frank Behrens
I read this thread with interest and saw the question, how the system wil behave with hyperthreading. Should I not benchmark my system? here you have the results. The interpretation is left to the experts. IMHO HT is not as useless as expected. :-) I did not switch off SMP with sysctl, but used

Re: make -j$n buildworld : use of -j investigated

2004-11-27 Thread Frank Behrens
I read this thread with interest and saw the question, how the system wil behave with hyperthreading. Should I not benchmark my system? here you have the results. The interpretation is left to the experts. IMHO HT is not as useless as expected. :-) I did not switch off SMP with sysctl, but used

Re: make -j$n buildworld : use of -j investigated

2004-11-25 Thread Rob
Kris Kennaway wrote: On Fri, Nov 26, 2004 at 11:44:53AM +0900, Rob wrote: Nick Barnes wrote: On Thu, 25 Nov 2004 16:19:02 +0900, Rob <[EMAIL PROTECTED]> wrote: time(minutes) * speed(MHz) * nproc / 1000 MHz Looking at your examples, it seems you divide by 1e5, not by 1000. Sorry, yes you're righ

Re: make -j$n buildworld : use of -j investigated

2004-11-25 Thread Kris Kennaway
On Fri, Nov 26, 2004 at 11:44:53AM +0900, Rob wrote: > Nick Barnes wrote: > >On Thu, 25 Nov 2004 16:19:02 +0900, Rob <[EMAIL PROTECTED]> wrote: > > > > > >>>time(minutes) * speed(MHz) * nproc / 1000 MHz > > > > > >Looking at your examples, it seems you divide by 1e5, not by 1000. > > Sorry, ye

Re: make -j$n buildworld : use of -j investigated

2004-11-25 Thread Rob
Nick Barnes wrote: On Thu, 25 Nov 2004 16:19:02 +0900, Rob <[EMAIL PROTECTED]> wrote: time(minutes) * speed(MHz) * nproc / 1000 MHz Looking at your examples, it seems you divide by 1e5, not by 1000. Sorry, yes you're right. In other words, buildworld is CPU bound and takes about 6e12 clock cy

Re: port make index (was: Re: make -j$n buildworld : use of -j investigated)

2004-11-25 Thread Kris Kennaway
On Thu, Nov 25, 2004 at 11:14:42AM +0100, Ronald Klop wrote: > On Thu, 25 Nov 2004 01:28:55 -0800, Kris Kennaway <[EMAIL PROTECTED]> > wrote: > > >On Thu, Nov 25, 2004 at 10:09:35AM +0100, Ronald Klop wrote: > > > >>Would all this work for 'make index' for the ports also? Or is this more > >>io

Re: port make index (was: Re: make -j$n buildworld : use of -j investigated)

2004-11-25 Thread Nick Barnes
On Thu, 25 Nov 2004 16:19:02 +0900, Rob <[EMAIL PROTECTED]> wrote: > > time(minutes) * speed(MHz) * nproc / 1000 MHz Looking at your examples, it seems you divide by 1e5, not by 1000. In other words, buildworld is CPU bound and takes about 6e12 clock cycles. Use -j. Nick B ___

Re: port make index (was: Re: make -j$n buildworld : use of -j investigated)

2004-11-25 Thread Ronald Klop
On Thu, 25 Nov 2004 01:28:55 -0800, Kris Kennaway <[EMAIL PROTECTED]> wrote: On Thu, Nov 25, 2004 at 10:09:35AM +0100, Ronald Klop wrote: Would all this work for 'make index' for the ports also? Or is this more io bound? I can't test this myself, because my laptop is to slow for making these tes

Re: port make index (was: Re: make -j$n buildworld : use of -j investigated)

2004-11-25 Thread Kris Kennaway
On Thu, Nov 25, 2004 at 10:09:35AM +0100, Ronald Klop wrote: > Would all this work for 'make index' for the ports also? Or is this more > io bound? > I can't test this myself, because my laptop is to slow for making these > tests any fun. Based on my tests, 'make index' is only faster with -j

port make index (was: Re: make -j$n buildworld : use of -j investigated)

2004-11-25 Thread Ronald Klop
On Thu, 25 Nov 2004 16:19:02 +0900, Rob <[EMAIL PROTECTED]> wrote: Rob wrote: Brian Szymanski wrote: Did you try any machines that used Hyperthreading? I'd be interested to see how those machines fare based on the number of logical and real CPUs. Although people suggest "-j4" as optimal in gene

Re: make -j$n buildworld : use of -j investigated

2004-11-24 Thread Rob
Rob wrote: Brian Szymanski wrote: Did you try any machines that used Hyperthreading? I'd be interested to see how those machines fare based on the number of logical and real CPUs. Although people suggest "-j4" as optimal in general case, I have come to a very different conclusion: 1) single CPU wi

Re: make -j$n buildworld : use of -j investigated

2004-11-23 Thread Rob
Brian Szymanski wrote: Did you try any machines that used Hyperthreading? I'd be interested to see how those machines fare based on the number of logical and real CPUs. Although people suggest "-j4" as optimal in general case, I have come to a very different conclusion: 1) single CPU with enough R

Re: make -j$n buildworld : use of -j investigated

2004-11-23 Thread Brian Szymanski
Did you try any machines that used Hyperthreading? I'd be interested to see how those machines fare based on the number of logical and real CPUs. > Although people suggest "-j4" as optimal in general > case, I have come to a very different conclusion: > > 1) single CPU with enough RAM (2 GHz, 512

Re: make -j$n buildworld : use of -j investigated

2004-11-23 Thread Jon Noack
Rob wrote: > I have tested following with FreeBSD 5.3-Stable. > > On several different PCs I have used > make -j$n buildworld > with $n ranging from 1 to 9. > > Although people suggest "-j4" as optimal in general > case, I have come to a very different conclusion: > > 1) single CPU with enough

Re: make -j$n buildworld : use of -j investigated

2004-11-22 Thread Derkjan de Haan
> With these simple tests, I come to the conclusion that > "make -j$n buildworld" is best with n = number of CPUs. > Does that make sense? Yes, I believe this makes sense. The recommendations made in the handbook (n >= 4) date back from the time when IO was the bottleneck in the compilation proce

make -j$n buildworld : use of -j investigated

2004-11-22 Thread Rob
Hi, I have tested following with FreeBSD 5.3-Stable. On several different PCs I have used make -j$n buildworld with $n ranging from 1 to 9. Although people suggest "-j4" as optimal in general case, I have come to a very different conclusion: 1) single CPU with enough RAM (2 GHz, 512 MB) there