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

xen-devel

[Top] [All Lists]

Re: [Xen-devel] [BUNDLE] Xen Share w/ block device

To: Andrew Warfield <andrew.warfield@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] [BUNDLE] Xen Share w/ block device
From: Rusty Russell <rusty@xxxxxxxxxxxxxxx>
Date: 2006年2月17日 18:22:49 +1100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: 2006年2月17日 07:35:22 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <eacc82a40602162114p432502b9ie0e3e461dc54c2d8@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <1140148795.25078.37.camel@xxxxxxxxxxxxxxxxxxxxx> <eacc82a40602162114p432502b9ie0e3e461dc54c2d8@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Thu, 2006年02月16日 at 21:14 -0800, Andrew Warfield wrote:
> > Here's the compulsory benchmark numbers (same machine, uniproc 3GHz
> > Pentium 4), ext2 filesystem in a file in dom0 served to dom1:
> >
> > Current block device:
> > dd if=/dev/zero of=test bs=1M count=1000: 71.5527 seconds
>
>
> By my accounting that looks to be about 14 MB/s off your block device
> using the existing split drivers... If you can't saturate the disk on
> a 3 Ghz box I'd have to think that something has gone desperately
> wrong.
Yes, I think so too. Frankly, I expected my implementation's
performance to be bad, because the hypervisor copies to dom0 userspace,
which then writes to the disk. This is great for implementing COW and
other specials, but not optimal if you're just shunting blocks to/from
disk.
Now, in dom0 this operation takes about 27 seconds (38 MB/sec). My code
gets about 33.7 MB/sec. Now, page-table ops involved in granting
buffers will hurt you some, but I'd expect nice big batches of ops from
this example to amortize that nicely. I cannot explain this level of
pain, but over 10 runs it was consistent.
> I don't doubt that better memory performance can be achieved by
> adjusting event notification frequency/batching -- as you pointed out
> earlier... but block devices are a pretty weird place to try to win. 
> I'd expect the numbers from the two tests you're running to be
> identical -- and bottlenecked on the disk. By a lot.
Hmm, my dom0 only has 128MB of RAM, and my dom1 64MB. Wonder if I'm
getting bad behaviour due to small amounts of memory?
I was just happy to get my code working, but I'll dig deeper next week.
Cheers,
Rusty.
-- 
 ccontrol: http://ozlabs.org/~rusty/ccontrol
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: Re: [Xen-devel] Re: user/hypervisor address space solution , Hollis Blanchard
Next by Date: Re: [Xen-devel] [BUNDLE] Xen Share w/ block device , Keir Fraser
Previous by Thread: Re: [Xen-devel] [BUNDLE] Xen Share w/ block device , Andrew Warfield
Next by Thread: Re: [Xen-devel] [BUNDLE] Xen Share w/ block device , Keir Fraser
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /