Penguin
Note: You are viewing an old revision of this page. View the current version.

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.

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.

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.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


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:

 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

make

  • real 7m26.87s
  • user 7m00.68s
  • sys 0m31.68s

make -j3

  • real 7m25.23s
  • user 7m01.32s
  • sys 0m31.43s

Name: voodoo
OS: Debian Woody 3.0 2.4.26
Hardware: Dual Athlon 1800MP+, 2048 MB Ram
/proc/cpuinfo:

 processor       : 1
 vendor_id       : AuthenticAMD
 cpu family      : 6
 model           : 6
 model name      : AMD Athlon(TM) MP 1800+
 stepping        : 2
 cpu MHz         : 1533.398
 cache size      : 256 KB

make

  • real 7m05.12s
  • user 6m08.19s
  • sys 0m43.02s

make -j3

  • real 4m36.29s
  • user 6m22.54s
  • sys 0m45.22s

CategoryKernel