From: Jia Rao Subject: Strange Xen Disk I/O performance among DomUs Date: Wed, 1 Apr 2009 10:26:05 -0400 Message-ID: <994429490904010726id4cec82ld03ebc799e349b91@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0212406928==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0212406928== Content-Type: multipart/alternative; boundary=0015175cb83a917aea04667f1834 --0015175cb83a917aea04667f1834 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi all, I tested the xen vm disk I/O this weekend and had some interesting observations: I ran TPC-C benchmarks (mostly random small disk read) within two VMs (PV) with the exactly the same resource and software configuration. I started the benchmarks in the two VMs at the same time (started with a script, the time difference is within several ms). The Xen VM scheduler seems always favor one VM, which results in a 50% better performance over the other VM. I changed the seqence of the VM creation and application starting order, the specific VM always got better performance, 30%-50% better. What could be the reason that xen always favor a specific VM? I ran the above test for several more times. Between each run, I purged the cached data within each VM to make the I/O demand always the same. It is interesting that the performance gap between the two VM becomes smaller and smaller. After 6 runs, the performance almost the same. Anyone has any idea? Does the VM scheduler scheduling VMs based on history? I have already tried file-based, physical partition and LVM VMDs, similar results. I am using Xen 3.3.1, CentOS 5.1, linux 2.8.18-x86_64 Each VM has 512M, 2-VCPU not pinned. Dom0 with 512M, 8-VCPU not pinned. Host: dell poweredge 1950: 8G, two quad-core Intel xeon. Thanks in advance, Jia. --0015175cb83a917aea04667f1834 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi all,

I tested the xen vm disk I/O this weekend and had some inter= esting observations:

I ran TPC-C benchmarks (mostly random small disk read) within two VMs (PV) with the exactly the same resource and software configuration. I started the benchmarks in the two VMs at the same time (started with a script, the time difference is within several ms). The Xen VM scheduler seems always favor one VM, which results in a 50% better performance over the other VM.=A0 I changed the seqence of the VM creation and application starting order, the specific VM always got better performance, 30%-50% better.

What could be the reason that xen always favor a specific VM?

I ran the above test for several more times. Between each run, I purged the cached data within each VM to make the I/O demand always the same. It is interesting that the performance gap between the two VM becomes smaller and smaller. After 6 runs, the performance almost the same.

Anyone has any idea? Does the VM scheduler scheduling VMs based on hist= ory?

I have already tried file-based, physical partition and LVM VMD= s, similar results.

I am using Xen 3.3.1, CentOS 5.1, linux 2.8.18-x= 86_64
Each VM has 512M, 2-VCPU not pinned. Dom0 with 512M, 8-VCPU not pinned.
= Host: dell poweredge 1950: 8G, two quad-core Intel xeon.

Thanks in advance,
Jia. --0015175cb83a917aea04667f1834-- --===============0212406928== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0212406928==--