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] Could Xen hypervisor overwrite O_DIRECT setting of Linux 2.6

To: <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-users] Could Xen hypervisor overwrite O_DIRECT setting of Linux 2.6 kernel?
From: "Liang Yang" <multisyncfe991@xxxxxxxxxxx>
Date: Fri, 27 Oct 2006 17:13:57 -0700
Delivery-date: Fri, 27 Oct 2006 17:14:33 -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

Hi,

I?m doing some I/O performance analysis on Xen now. I noticed some weird thing when comparing the I/O performance data of Xen domain0 and Linux native. For sequential READ performance (no matter small packet or large packet), Linux native shows better performance than Xen domain0 (this is expected). However, for sequential write of small packet (512B and 1KB packets), Xen domain0 always outperforms the Linux native a lot. I ran the performance for several times and the results are pretty consistent.

The performance data is collected on 8 SAS drives (used as physical drives) and IOMeter is used as the benchmark tool. The latest IOMeter version used O_DIRECT. We know, Linux 2.6 kernel starts supporting O_DIRECT which makes all I/O requests work around buffer cache. The good thing for O_DIRECT is it reduces the CPU utilization and cache pollution. The bad thing is O_DIRECT not only forces all I/O requests become synchronous and no I/O coalescing will happen. Thus sequential write of small packets will be impacted most. For Xen, however, I believe Xen hypervisor overwrites this O_DIRECT setting and maybe it favors better performance over CPU and FSB utilization. Thus Xen domain0 can have better write performance than Linux native.

Is this correct?

Thanks,

Liang

 

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] Could Xen hypervisor overwrite O_DIRECT setting of Linux 2.6 kernel?, Liang Yang <=