Differences between version 18 and predecessor to the previous major change of KernelCompilationTimes.
Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 18 | Last edited on Wednesday, September 1, 2004 1:14:33 pm | by DanielLawson | Revert |
Older page: | version 15 | Last edited on Monday, September 29, 2003 1:50:18 pm | by MattBrown | Revert |
@@ -1,162 +1,72 @@
-I decided that it would be interesting
to compile
a page giving an idea
of how long it takes
to compile
a kernel on various machines
. That way if you have a machine that you need
to compile a kernel on
, you can look at
this page
and decide how many cups of coffee
to make
.
+This page covers the Kernel Compilation Benchmark, which is often used
to provide
a rough comparison
of system performance. This page used
to use
a 2
.4.19 default config
to do this benchmark
, this data still exists at KernelCompilationTimes2.4. The 2.4.19 kernel is a bit old now,
and the 2.6 build process has changed a lot, so we've updated this
to use 2.6.8 as the test kernel
.
-Both sets of times below are compiling
a standard linux
-2.4.19 kernel. Configured with the defualts
for everything
.
+A few things have changed - there is no longer any need to run make dep or make modules, so there will only be one time output. You will need to run make defconfig first, otherwise it will try to build
a host
-specific config
for your computer
.
-Here
's how I do this test. Note that its
important that you
perform a
compile as soon as you untar the source, so that
the source is still in the
disk cache. Or we could all reboot the machine between untarring and compiling, but, uh, no
.
+It
's still
important to
perform the
compile as soon as you untar the kernel
source, to ensure
the source is still in disk cache.
-(In /usr/src, with the 2.4.19 source downloaded already...)
-
tar zxvf linux-2.4
.19
.tar.gz
- cd linux-2.4
.19
- make oldconfig
- /usr/bin/time -p -o /tmp/dep.time make dep
- /usr/bin/time -p -o /tmp/bzImage.time make -j 2 bzImage modules
+(In /usr/src, with the 2.6.8 source downloaded already)
+
+
+
tar zxvf linux-2.6
.8
.tar.gz
+ cd linux-2.6
.8
+ make defconfig
+ /usr/bin/time -p -o /tmp/dep.time make
If you have a machine with more than one processor, you can use make -j n .... where n is the number of cpus + 1
-Note: the /usr/bin/time
-p
-o
... etc is to save the output from time into the specified file, and use the same format as bash's built in 'time'
. *sigh*
-
-! PII-300, 96MB Ram
- vendor_id : !
GenuineIntel
- cpu family : 6
- model : 5
- model name : Pentium II
(Deschutes
)
- stepping : 2
- cpu MHz : 300
.686
+----
+Name: deuterium%%%
+OS: Gentoo 2004
.2 Linux 2
.6
.8%%%
+Hardware: P4 2
.8C Northwood, 1024 MB DDR400 RAM, Intel D865GLC Motherboard%%%
+Notes: SMP + SMT enabled
+/proc/cpuinfo:%%%
+<verbatim>
+ processor : 1
+ vendor_id : GenuineIntel
+ cpu family : 15
+ model : 2
+ model name : Intel(R)
Pentium(R
) 4 CPU 2.80GHz
+ stepping : 9
+ cpu MHz : 2793
.238
cache size : 512 KB
+</verbatim>
+make
+* real 7m26.87s
+* user 7m00.68s
+* sys 0m31.68s
-
make dep
- real 4m57
.320s
- user 3m13
.270s
- sys 0m23
.990s
+make -j3
+*
real 7m25
.23s
+*
user 7m01
.32s
+*
sys 0m31
.43s
- make bzImage
- real 15m35.728s
- user 13m59.330s
- sys 0m44.490s
-
-! PII800, 384MB Ram
- vendor_id : !GenuineIntel
- cpu family : 6
- model : 8
- model name : Pentium III (Coppermine)
- stepping : 6
- cpu MHz : 800.040
- cache size : 256 KB
-
- make dep
- real 2m25.837s
- user 1m22.400s
- sys 0m15.760s
-
- make bzImage
- real 6m28.837s
- user 5m29.810s
- sys 0m30.400s
-
-! AMD AthlonXP 2600+, 1GB DDR
- vendor_id : AuthenticAMD
- cpu family : 6
- model : 8
- model name : AMD Athlon(tm) XP 2600+
- stepping : 1
- cpu MHz : 2079.552
- cache size : 256 KB
-
- make dep
- real 0m33.40s
- user 0m28.13s
- sys 0m03.71s
-
- make
-j2 bzImage modules
- real 2m47.96s
- user 2m36.04s
- sys 0m08.91s
-
-! Dual AMD AthlonMP 1800+, 1GB RAM
- processor :
- vendor_id : AuthenticAMD
- cpu family : 6
- model : 6
- model name : AMD Athlon(TM) MP 1800+
- stepping : 2
- cpu MHz : 1533.431
- cache size : 256 KB
+----
+Name: voodoo%%%
+OS: Debian Woody 3.0 2.4.26%%%
+Hardware: Dual Athlon 1800MP+, 2048 MB Ram%%%
+/proc/cpuinfo:%%%
+<verbatim>
processor : 1
vendor_id : AuthenticAMD
cpu family : 6
model : 6
model name : AMD Athlon(TM) MP 1800+
stepping : 2
- cpu MHz : 1533.431
+ cpu MHz : 1533.398
cache size : 256 KB
+</verbatim>
-
make dep
- real 0m25
.51s
- user 0m11
.35s
- sys 0m02.16s
-
- make -j 2 bzImage modules
- real 1m31.36s
- user 2m32.80s
- sys 0m13.50s
-
- make -j 3 bzImage modules
- real 1m41.04
- user 2m43.11
- sys 0m17.25
-
-! Dual Pentium 3 1GHz, 512 MB RAM
- processor : 1
- vendor_id : !GenuineIntel
- cpu family : 6
- model : 8
- model name : Pentium III (Coppermine)
- stepping : 10
- cpu MHz : 999.551
- cache size : 256 KB
-
- make dep
- real 1m03.073s
- user 0m55.750s
- sys 0m07.610s
-
- make bzImage
- real 3m46.111s
- user 3m35.930s
- sys 0m13.440s
-
- make -j 2 bzImage modules
- real 2m03.80
- user 3m47.93
- sys 0m14.91
-
- make -j 3 bzImage modules
- real 2m05.08
- user 3m49.75
- sys 0m15.03
-
-! Dual Pentium 4 Xeon 2.4GHz, 1024 MB RAM (with HyperThreading)
-
- processor :
- vendor_id : !GenuineIntel
- cpu family : 15
- model : 2
- model name : Intel(R) Xeon(TM) CPU 2.40GHz
- stepping : 7
- cpu MHz : 2400.147
- cache size : 512 KB
-
- make dep
- real 0m34
.02s
- user 0m30.44s
- sys 0m03.97s
+make
+*
real 7m05
.12s
+*
user 6m08
.19s
+*
sys 0m43
.02s
-
make -j 5 bzImage modules
- real 1m01
.41s
- user 3m45
.09s
- sys 0m13
.10s
+make -j3
+*
real 4m36
.29s
+*
user 6m22
.54s
+*
sys 0m45
.22s
----
CategoryKernel