A needle of Hope
amid a haystack of Chaos.

Kernels Are Frecking Important :O

Created: Tuesday, August 23rd, 2005
15:15:52 UTC
Last modified: Tuesday, August 23rd, 2005
15:18:52 UTC

Two duplicate websites on two different servers, both running the same CPU architecture, lots of ram, and same Linux distribution (Gentoo)...yet with totally conflicting results :o
2100MHz AthlonXP & 1800MHz AthlonXP

1800mhz: Linux 1800mhz 2.6.9-gentoo-r1hope #2 SMP Mon Aug 15 22:47:12 CDT 2005 i686 AMD Athlon(tm) XP 2200+ AuthenticAMD GNU/Linux
2100mhz: Linux localhost 2.6.12-ck5 #2 SMP Mon Aug 15 12:05:49 CDT 2005 i686 AMD Athlon(tm) XP 2600+ AuthenticAMD GNU/Linux

1800MHz: mysql Ver 12.22 Distrib 4.0.25, for pc-linux-gnu (i686)
2100MHz: mysql Ver 12.22 Distrib 4.0.25, for pc-linux-gnu (i686)

1800MHz: PHP Version 4.4.0 (Built Aug 21 2005 13:13:22)
2100MHz: PHP Version 4.4.0 (Built Aug 16 2005 07:44:02)

1800MHz: apache-2.0.54-r14 (Built Aug 20 2005 23:21:29)
2100MHz: apache-2.0.54-r14 (Built Aug 19 2005 23:32:24)

1800MHz: g++ (GCC) 3.4.3 20041125 (Gentoo Linux 3.4.3-r1, ssp-3.4.3-0, pie-8.7.7)
2100MHz: g++ (GCC) 3.4.4 (Gentoo 3.4.4, ssp-3.4.4-1.0, pie-8.7.8)

Compile flags:
1800MHz: -O2 -march=athlon-xp -fno-strict-aliasing -fomit-frame-pointer
2100MHz: -O2 -march=athlon-xp -fomit-frame-pointer -fno-strict-aliasing

Time to render /venues/ (From cached db copy)
1800MHz: 153.762 ms (1.603 ms)
2100MHz: 350.583 ms (68.382 ms)

Time to render /concerts/U2-tickets.php:
1800MHz: 24.646 (1.701 ms)
2100MHz: 271.242 ms (45.261 ms)

The only frecking thing that's different is the damn kernel :O
Can it really make that much difference?!! :O