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] Really slow disk write on Ubuntu

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Really slow disk write on Ubuntu
From: rudi <rudolone@xxxxxxxxx>
Date: Mon, 24 May 2010 18:20:32 +0200
Delivery-date: Mon, 24 May 2010 09:22:26 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=WcYyqWzVWD7Kj9sdvHLDhSLEjPQtkAMXpIUKNZcpxF0=; b=AXWZ04C4RT+rvumGiQ594KpM40wiicxSuCbL272fu4XwGtia6ibofpvvTSc/Jaz7s7 ApIEs35JhdAfiVvJGazetxThF5Zws8HR2fQ0qeXE+4ZQHzFWzklKZpBtsoH/LuD4oJHt 8u0eANfdl54ack5bSd0muuVXPoRRyekpWP3FE=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=r374NJiHL4O7wBKykRRzXMDPYjrlixSeXIh+GklyZshH0sggkMMIGY/lsA/1k23coU K/HIiLV4XwSYdxQWby8of1P1xvR5Roskc1Zz/zxvrZfoP/XucMptEy2FbpTFywdvii8x ivcg1vKh9bxldxu2f1Naz+puXP8HYI6S+Jnp4=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.24 (X11/20100411)
Hello,

we have a fresh Ubuntu 2.6.32-22-server install on Xen 3.4.0 and we observed really slow disk-write performance. Disk writes are so slow that the system is almost unusable. We ran a the classic dd benchmark a few times and the results are really discouraging:

rd@ubuntu:~$ time sh -c "dd if=/dev/zero of=bigfile bs=8k count=1000000 && sync"
1000000+0 records in
1000000+0 records out
8192000000 bytes (8.2 GB) copied, 2082.15 s, 3.9 MB/s

root@ubuntu:/home/rd# time sh -c "dd if=/dev/zero of=bigfile bs=8k count=1000000 && sync"
1000000+0 records in
1000000+0 records out
8192000000 bytes (8.2 GB) copied, 2352.29 s, 3.5 MB/s

root@ubuntu:/home/rd# time sh -c "dd if=/dev/zero of=bigfile bs=8k count=1000000 && sync"
1000000+0 records in
1000000+0 records out
8192000000 bytes (8.2 GB) copied, 2544.19 s, 3.2 MB/s

Then, we ran a postgresql benchmark - pgbench - that submits a few transactions against a small database. Simulating 15 clients running 200 transactions each we obtained this result, in transaction per second:

tps: 1462.109434 (excluding connections establishing)

where a non-virtualized workstation result is something like:

tps: 5.833331 (excluding connections establishing)

Running the dd benchmark against the raw disk we obtain good results (120MB/s) and a couple of Windows 2003 server guests hosted by the same Xen host seem to run fine (but I have no benchmark fo this).

The disk is a HP ProLiant ML350 G6 Server series,
Ubuntu is fully virtualized, 4 cpu, 4 GB RAM.

Do you have any hint?

Thanks




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