LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* Performance Tuning
@ 2004-05-20 12:05 john weber
  2004-05-20 13:00 ` Richard B. Johnson
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: john weber @ 2004-05-20 12:05 UTC (permalink / raw)
  To: linux-kernel

I've been comparing kernel compile stats online to those I get 
on my own machine, and I am baffled.

Kernel compiles take 6m38s on my P4 2.8GHz (with HT enabled) and 
512 MB RAM as compared to 20-30 seconds reported by folks online. 
I am running kernel 2.6.6.

While I understand that this varies with the config, I also don't 
see why it should vary so much.  Does anyone have any pointers on 
how I could best troubleshoot my performance?

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Performance Tuning
  2004-05-20 12:05 Performance Tuning john weber
@ 2004-05-20 13:00 ` Richard B. Johnson
  2004-05-20 16:42 ` Valdis.Kletnieks
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 7+ messages in thread
From: Richard B. Johnson @ 2004-05-20 13:00 UTC (permalink / raw)
  To: john weber; +Cc: linux-kernel



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Performance Tuning 
  2004-05-20 12:05 Performance Tuning john weber
  2004-05-20 13:00 ` Richard B. Johnson
@ 2004-05-20 16:42 ` Valdis.Kletnieks
  2004-05-20 16:49   ` Prakash K. Cheemplavam
  2004-05-20 18:39 ` cliff white
                   ` (2 subsequent siblings)
  4 siblings, 1 reply; 7+ messages in thread
From: Valdis.Kletnieks @ 2004-05-20 16:42 UTC (permalink / raw)
  To: john weber; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 807 bytes --]

On Thu, 20 May 2004 12:05:15 -0000, john weber <weber@sixbit.org>  said:

> Kernel compiles take 6m38s on my P4 2.8GHz (with HT enabled) and 
> 512 MB RAM as compared to 20-30 seconds reported by folks online. 
> I am running kernel 2.6.6.
> 
> While I understand that this varies with the config, I also don't 
> see why it should vary so much.  Does anyone have any pointers on 
> how I could best troubleshoot my performance?

Step 1: Buy a machine that has 16 CPUs and 32G of memory.

Step 2: cd /usr/src/linux-2.6.6 && make -j20

Step 3: Stand back :)

Seriously - the only way to do a kernel build in 20 seconds is to use 'make
-j20' or so, and have enough processors to handle it, and enough RAM so that
you can basically do the whole thing in the fin-core cache rather than beating
on the disk....


[-- Attachment #2: Type: application/pgp-signature, Size: 226 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Performance Tuning
  2004-05-20 16:42 ` Valdis.Kletnieks
@ 2004-05-20 16:49   ` Prakash K. Cheemplavam
  0 siblings, 0 replies; 7+ messages in thread
From: Prakash K. Cheemplavam @ 2004-05-20 16:49 UTC (permalink / raw)
  To: Valdis.Kletnieks; +Cc: john weber, linux-kernel

Valdis.Kletnieks@vt.edu wrote:
> On Thu, 20 May 2004 12:05:15 -0000, john weber <weber@sixbit.org>  said:
> 
> 
>>Kernel compiles take 6m38s on my P4 2.8GHz (with HT enabled) and 
>>512 MB RAM as compared to 20-30 seconds reported by folks online. 
>>I am running kernel 2.6.6.
[snip]
> Seriously - the only way to do a kernel build in 20 seconds is to use 'make
> -j20' or so, and have enough processors to handle it, and enough RAM so that
> you can basically do the whole thing in the fin-core cache rather than beating
> on the disk....

20sec sounds very far from reality for me. I have athlon xp@2.2GHz and 
with gcc3.4 it takes about 4min to compile a 2.6.6-mm kernel. Using 
gcc3.3.x it needs minutes more.

Prakash

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Performance Tuning
  2004-05-20 12:05 Performance Tuning john weber
  2004-05-20 13:00 ` Richard B. Johnson
  2004-05-20 16:42 ` Valdis.Kletnieks
@ 2004-05-20 18:39 ` cliff white
  2004-05-20 18:51 ` Tim Bird
  2004-05-21 14:56 ` Bill Davidsen
  4 siblings, 0 replies; 7+ messages in thread
From: cliff white @ 2004-05-20 18:39 UTC (permalink / raw)
  To: john weber; +Cc: linux-kernel

On Thu, 20 May 2004 12:05:15 +0000
john weber <weber@sixbit.org> wrote:

> I've been comparing kernel compile stats online to those I get 
> on my own machine, and I am baffled.
> 
> Kernel compiles take 6m38s on my P4 2.8GHz (with HT enabled) and 
> 512 MB RAM as compared to 20-30 seconds reported by folks online. 
> I am running kernel 2.6.6.
> 
> While I understand that this varies with the config, I also don't 
> see why it should vary so much.  Does anyone have any pointers on 
> how I could best troubleshoot my performance?

That sounds about right for your hardware. As Valdis mentioned, 20 second
compiles just don't happen on UP machines, at least not at that clock speed.
cliffw

> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 


-- 
The church is near, but the road is icy.
The bar is far, but i will walk carefully. - Russian proverb

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Performance Tuning
  2004-05-20 12:05 Performance Tuning john weber
                   ` (2 preceding siblings ...)
  2004-05-20 18:39 ` cliff white
@ 2004-05-20 18:51 ` Tim Bird
  2004-05-21 14:56 ` Bill Davidsen
  4 siblings, 0 replies; 7+ messages in thread
From: Tim Bird @ 2004-05-20 18:51 UTC (permalink / raw)
  To: john weber; +Cc: linux-kernel

john weber wrote:
> I've been comparing kernel compile stats online to those I get 
> on my own machine, and I am baffled.
> 
> Kernel compiles take 6m38s on my P4 2.8GHz (with HT enabled) and 
> 512 MB RAM as compared to 20-30 seconds reported by folks online. 
> I am running kernel 2.6.6.
> 
> While I understand that this varies with the config, I also don't 
> see why it should vary so much.  Does anyone have any pointers on 
> how I could best troubleshoot my performance?

I have used compiler cache, and gotten about 30-second
compiles, after the first one, on a P4 3.0GHz.

See:  http://ccache.samba.org/

However, this isn't addressing performance of your machine, per-se.

=============================
Tim Bird
Architecture Group Co-Chair
CE Linux Forum
Senior Staff Engineer
Sony Electronics
E-mail: Tim.Bird@am.sony.com
=============================


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Performance Tuning
  2004-05-20 12:05 Performance Tuning john weber
                   ` (3 preceding siblings ...)
  2004-05-20 18:51 ` Tim Bird
@ 2004-05-21 14:56 ` Bill Davidsen
  4 siblings, 0 replies; 7+ messages in thread
From: Bill Davidsen @ 2004-05-21 14:56 UTC (permalink / raw)
  To: john weber; +Cc: linux-kernel

john weber wrote:
> I've been comparing kernel compile stats online to those I get 
> on my own machine, and I am baffled.
> 
> Kernel compiles take 6m38s on my P4 2.8GHz (with HT enabled) and 
> 512 MB RAM as compared to 20-30 seconds reported by folks online. 
> I am running kernel 2.6.6.
> 
> While I understand that this varies with the config, I also don't 
> see why it should vary so much.  Does anyone have any pointers on 
> how I could best troubleshoot my performance?

If you are not using "make -j3" for your build you should be able to 
pick up 20-30% improvement, assuming that you have an SMP kernel running.

-- 
    -bill davidsen (davidsen@tmr.com)
"The secret to procrastination is to put things off until the
  last possible moment - but no longer"  -me

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-05-21 23:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-20 12:05 Performance Tuning john weber
2004-05-20 13:00 ` Richard B. Johnson
2004-05-20 16:42 ` Valdis.Kletnieks
2004-05-20 16:49   ` Prakash K. Cheemplavam
2004-05-20 18:39 ` cliff white
2004-05-20 18:51 ` Tim Bird
2004-05-21 14:56 ` Bill Davidsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).