Bad performance with Athlon and non smp-kernel..

From: Jarkko Lietolahti (jappe@iki.fi)
Date: Mon Feb 07 2000 - 15:47:52 EST


 Ops, compiling 2.3.42 with athlon and without SMP-support (with dummy
APIC or what ever ) gives very poor ratings in nbench. Only difference is
CONFIG_SMP=n(and yes to the APIC support for uniprosessors) in the first
test and CONFIG_SMP=y in the latter.

Or maybe this was just bad luck and kernel compiled wrong? But would
wronly compiled kernel boot and otherwise ok?

The values seem to be roughly 1/2 wrong.

This is 675Mzh Athlon and 2.3.42 without SMP.

BYTEmark* Native Mode Benchmark ver. 2 (10/95)
Index-split by Andrew D. Balsa (11/97)
Linux/Unix* port by Uwe F. Mayer (12/96,11/97)

TEST : Iterations/sec. : Old Index : New Index
                    : : Pentium 90* : AMD K6/233*
--------------------:------------------:-------------:------------
NUMERIC SORT : 257.04 : 6.59 : 2.16
STRING SORT : 22.782 : 10.18 : 1.58
BITFIELD : 5.7193e+07 : 9.81 : 2.05
FP EMULATION : 20.088 : 9.64 : 2.22
FOURIER : 4443.4 : 5.05 : 2.84
ASSIGNMENT : 2.031 : 7.73 : 2.00
IDEA : 481.2 : 7.36 : 2.19
HUFFMAN : 169.56 : 4.70 : 1.50
NEURAL NET : 5.2983 : 8.51 : 3.58
LU DECOMPOSITION : 170.72 : 8.84 : 6.39
==========================ORIGINAL BYTEMARK RESULTS==========================
INTEGER INDEX : 7.762
FLOATING-POINT INDEX: 7.246
Baseline (MSDOS*) : Pentium* 90, 256 KB L2-cache, Watcom* compiler 10.0
==============================LINUX DATA BELOW===============================
C compiler : gcc version 2.95.2 19991024 (release)
libc : unknown version
MEMORY INDEX : 1.864
INTEGER INDEX : 1.994
FLOATING-POINT INDEX: 4.019
Baseline (LINUX) : AMD K6/233*, 512 KB L2-cache, gcc 2.7.2.3, libc-5.4.38
* Trademarks are property of their respective holder.

And this is the same thing with SMP turned on.

BYTEmark* Native Mode Benchmark ver. 2 (10/95)
Index-split by Andrew D. Balsa (11/97)
Linux/Unix* port by Uwe F. Mayer (12/96,11/97)

TEST : Iterations/sec. : Old Index : New Index
                    : : Pentium 90* : AMD K6/233*
--------------------:------------------:-------------:------------
NUMERIC SORT : 517.32 : 13.27 : 4.36
STRING SORT : 45.585 : 20.37 : 3.15
BITFIELD : 1.143e+08 : 19.61 : 4.10
FP EMULATION : 40.184 : 19.28 : 4.45
FOURIER : 8884.2 : 10.10 : 5.67
ASSIGNMENT : 4.0603 : 15.45 : 4.01
IDEA : 961 : 14.70 : 4.36
HUFFMAN : 340.65 : 9.45 : 3.02
NEURAL NET : 10.602 : 17.03 : 7.16
LU DECOMPOSITION : 329.64 : 17.08 : 12.33
==========================ORIGINAL BYTEMARK RESULTS==========================
INTEGER INDEX : 15.543
FLOATING-POINT INDEX: 14.323
Baseline (MSDOS*) : Pentium* 90, 256 KB L2-cache, Watcom* compiler 10.0
==============================LINUX DATA BELOW===============================
C compiler : gcc version 2.95.2 19991024 (release)
libc : unknown version
MEMORY INDEX : 3.726
INTEGER INDEX : 3.997
FLOATING-POINT INDEX: 7.944
Baseline (LINUX) : AMD K6/233*, 512 KB L2-cache, gcc 2.7.2.3, libc-5.4.38

Oh, and you still need the following patch to compile 2.3.42 with athlon
support and SMP.

diff -u -r linux/include/asm-i386/string.h linux-2.3.41-pre3/include/asm-i386/string.h
--- linux-orig/include/asm-i386/string.h Fri Jan 21 02:05:35 2000
+++ linux/include/asm-i386/string.h Sat Jan 29 23:32:27 2000
@@ -289,7 +289,7 @@
 #ifdef CONFIG_X86_USE_3DNOW
 
 /* All this just for in_interrupt() ... */
-
+#include <linux/sched.h>
 #include <asm/system.h>
 #include <asm/ptrace.h>
 #include <linux/smp.h>
diff -u -r linux/include/linux/signal.h linux-2.3.41-pre3/include/linux/signal.h
--- linux-orig/include/linux/signal.h Fri Jan 21 02:05:38 2000
+++ linux/include/linux/signal.h Sat Jan 29 23:31:22 2000
@@ -61,7 +61,7 @@
 #endif /* __HAVE_ARCH_SIG_BITOPS */
 
 #ifndef __HAVE_ARCH_SIG_SETOPS
-#include <linux/string.h>
+/* #include <linux/string.h> */
 
 #define _SIG_SET_BINOP(name, op) \
 extern inline void name(sigset_t *r, const sigset_t *a, const sigset_t *b) \

* Trademarks are property of their respective holder.

--
-----------------------------------------\
jappe@iki.fi   	http://www.iki.fi/~jappe |
Jarkko.Lietolahti@cs.helsinki.fi 	 |

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



This archive was generated by hypermail 2b29 : Mon Feb 07 2000 - 21:00:15 EST