WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] Poor performance running apache under xen

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Poor performance running apache under xen
From: Richard@xxxxxxxxxxxxxxx, Heycock@xxxxxxxxxxxxxxx
Date: Thu, 27 Jul 2006 15:11:38 +1000
Delivery-date: Wed, 26 Jul 2006 22:12:56 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
We've been seeing a fairly significant slow down of a fairly large, in
house java application based on apache tomcat, when running under xen.
In order to gain some insight into this I've run similar tests using
Apache2 and ApacheBench and we are seeing almost exactly the same slow
down of about 24% (23.8% for our application and 23.5% for apache).

The test consisted of sending one million reqests to the web server and
was run from a different machine over gigbit ethernet. During the tests
the driving machine did not go over 15% cpu load and the 1 min load avg
did not go over 2. The machine under test had nothing else running. The
results given are for the second of two runs after a reboot. The cpu
usage is the average over the entire run obtained from sar with a four
second average (sar 4 0). The cpu figure is of the machine running the
test. The /lib/tls directory was removed.

The tests where carried out using the following versions of software:

* Ubuntu 5.10 (Breezy Badger) using Debian 32bit kernels
* Xen 3.0.2
* Apache 2.0.54 using both the mpm-prefork (multi-process worker) and the
  mpm-worker (hybrid multi-threaded multi-process worker)
* ApacheBench 2.0.41-dev

The different kernel configurations are:

    Stock kernel: 2.6.16-2-686-smp #1 SMP
    dom0 kernel: 2.6.16-1-xen-686 #1 SMP
    domU kernel: 2.6.16-1-xen-686 #1 SMP

The throughput is:

        Kernel                  throughput  % cpu (user + system)
    stock kernel (prefork):     5019.42     24.31
    stock kernel (worker):      4800.20     30.37
    dom0 kernel (prefork):      5029.60     22.37
    dom0 kernel (worker):       4843.59     29.97
    domU kernel (prefork):      3726.44     38.80
    domU kernel (worker):       3704.95     41.32

The reason I tested both the mpm-prefork and mpm-worker is test to see
if the threading concurrency model made a big difference -- it didn't!

Can anyone shed any light on these results? Is this the normal
performance that is to be expected from this type of application?

I've put all the results (ApacheBench results and the sar outputs) on
http://twosecondmemory.org/xen-performance/

rgh


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>