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] Odd blkdev throughput results

To: Mark Williamson <mark.williamson@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] Odd blkdev throughput results
From: Daniel Stodden <stodden@xxxxxxxxxx>
Date: 2008年3月17日 00:04:54 +0100
Cc: Ian Pratt <Ian.Pratt@xxxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: 2008年3月16日 16:05:43 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <200803162115.51707.mark.williamson@xxxxxxxxxxxx>
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>
Organization: Fakultät für Informatik I10, Technische Universität München
References: <1205082786.14527.116.camel@xxxxxxxxxxxxxxxxxxxx> <DD74FBB8EE28D441903D56487861CD9D2A0EC05C@xxxxxxxxxxxxxxxxxxxxxx> <1205097532.17897.69.camel@xxxxxxxxxxxxxxxxxxxx> <200803162115.51707.mark.williamson@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Sun, 2008年03月16日 at 21:15 +0000, Mark Williamson wrote:
> >
> > > Block IO doesn't require a copy at all.
> >
> > Well, not in blkback by itself, but certainly from the in-memory disk
> > image. Unless I misunderstoode Keirs post recently, page flipping is
> > basically dead code, so I thought the number should at least point into
> > roughly the same directions.
>
> Blkback has always DMA-ed directly into guest memory when reading data from 
> the disk drive (normal usecase), in which case there's no copy - I think that 
> was Ian's point. In contrast the Netback driver has to do a copy in the 
> normal case.
>
> If you're using a ramdisk then there must be a copy somewhere, although I'm 
> not sure exactly where it happens!
I checked it, this is comparatively easy to find. Since DMA-or-not is
ultimately up to the driver, it's that single memcpy() in rd.c. Looks
rather straightforward. 
In theory, such a pseudo-device could make use of the host DMA engine
embedded into newer Intel chipsets to save a few cycles. But looking at
the source that does not seem to be the case (and typical usage
scenarios for the ramdisk driver (4MB default size iirc) would hardly
justify the effort).
Blkdev peak throughput at 500MB/s is certainly not a usability issue :)
I just asked because I hoped someone who spent more time one the PV
drivers than I did might have experienced (or even profiled) similar
effects already, and could explain.
Thanks and greetings,
Daniel
 
-- 
Daniel Stodden
LRR - Lehrstuhl für Rechnertechnik und Rechnerorganisation
Institut für Informatik der TU München D-85748 Garching
http://www.lrr.in.tum.de/~stodden mailto:stodden@xxxxxxxxxx
PGP Fingerprint: F5A4 1575 4C56 E26A 0B33 3D80 457E 82AE B0D8 735B
_______________________________________________
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] Odd blkdev throughput results , Mark Williamson
Next by Date: Re: Re: [Xen-devel] about Xen accelerated network plugin modules , Zang Hongyong
Previous by Thread: Re: [Xen-devel] Odd blkdev throughput results , Mark Williamson
Next by Thread: [Xen-devel][RFC] Dynamic modes support for PV xenfb (included) , Pat Campbell
Indexes: [Date] [Thread] [Top] [All Lists]

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

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