Apache performance issue on AMD 6000+ cpu

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I've searched the archives and the web in general but haven't found an answer.

Problem:
I recently started setting up a new machine for use as a standard LAMP
server and as a box to investigate XEN virtualisation. When doing some
crude performance tests using ab, I found that performance of the
machine was not what I would have expected. We have a number of XEON
based systems in a different hosting provider. My expectation was that
the AMD 6000+ box would perform at least as well as the XEON boxes.

Command: ab -k -c 100 -n 50,000 http://localhost/
index.html here was a static text file with either standard debian
content or a "hello world" message so size of content is usually less
than 20 bytes or so.

AMD BOX:  about 8,000 requests per second.
XEON BOX: about 16,000 requests per second.

XEON BOX:
2 gb ram
1 x xeon 3050 @ 2.13ghz (dual core)
/ is on a mirror of 2 seagate barracuda (it appears. write speed on
this box is quite poor...)
32 bit debian etch
apache 2.2.3


AMD BOX:
6gb ram
1 x amd x2 6000+ (dual core)
/ on a mirror of 2 samsung drives. Not sure which ones but bonnie
tells me I/O perfomance is superior to XEON box.
Various versions of debian were tried and various kernels but all gave
similar results
lenny 64 bit and 32 bit
xen and non xen kernels
xen guest os in 32 and 64 bit lenny and etch

The hosting provider gives us a black box installation menu that
didn't seem to be able to install etch so I can't quite compare apples
to apples which is unfortunate.


Apache configs.
In order to try and level this unlevel playing field I tried a lot of
different apache configs on the amd box including using exactly the
same one as on herbgarden yet performance remained about the same.


What I did notice was that according to vmstat 1, cpu idle count never
dropped below 50% on the amd box indicating some issue with
multithreading.

My question is, should I expect the ab test above on the AMD box to be
at least the same as on the XEON box rather than then current poor
situation?

Any pointers appreciated.

John


Extra info:


AMD BOX:

# cat /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 107
model name      : AMD Athlon(tm) 64 X2 Dual Core Processor 6000+
stepping        : 2
cpu MHz         : 3100.000
cache size      : 512 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 2
apicid          : 0
initial apicid  : 0
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext
fxsr_opt rdtscp lm 3dnowext 3dnow
pni cx16 lahf_lm cmp_legacy svm extapic cr8_legacy 3dnowprefetch
bogomips        : 6205.46
clflush size    : 64
power management: ts fid vid ttp tm stc 100mhzsteps

processor       : 1
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 107
model name      : AMD Athlon(tm) 64 X2 Dual Core Processor 6000+
stepping        : 2
cpu MHz         : 3100.000
cache size      : 512 KB
physical id     : 0
siblings        : 2
core id         : 1
cpu cores       : 2
apicid          : 1
initial apicid  : 1
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext
fxsr_opt rdtscp lm 3dnowext 3dnow
pni cx16 lahf_lm cmp_legacy svm extapic cr8_legacy 3dnowprefetch
bogomips        : 6205.46
clflush size    : 64
power management: ts fid vid ttp tm stc 100mhzsteps

free
             total       used       free     shared    buffers     cached
Mem:       6200668     536780    5663888          0      24740     453800
-/+ buffers/cache:      58240    6142428
Swap:      4200888          0    4200888
hope:~#

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux