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-devel

[Xen-devel] [PATCH] multi-page blkfront/blkback patch

To: "Samvel Yuri" <samvelox@xxxxxxxxx>
Subject: [Xen-devel] [PATCH] multi-page blkfront/blkback patch
From: "Geoffrey Lefebvre" <geoffrey@xxxxxxxxx>
Date: Thu, 27 Nov 2008 18:17:58 -0800
Cc: Dutch Meyer <dmeyer@xxxxxxxxx>, Samuel Thibault <samuel.thibault@xxxxxxxxxxxx>, xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, Andrew Warfield <andy@xxxxxxxxx>
Delivery-date: Thu, 27 Nov 2008 18:18:33 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:mime-version:content-type:x-google-sender-auth; bh=Ib5zZXm3n52EVpd5wpTmpUcG8UqqyEtLq9YMIHocRzI=; b=MJOBL7eJ7OnCjLZ3dr1yWpChuAoin9avi4OJbg4Tfb62BK0kH66Yn7FM2zxIeMMALr qLQxRJAGKmbsVt4fh1TbNOo1hWMf2a1DMByoK1qUbEZc/PpJVXOmUpDTaZepyQ+Duqbk Ktu0Ahvcy+Qr78UiVqcroWwQWstWXnxrS+oNE=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:mime-version:content-type :x-google-sender-auth; b=EkAhnsRnTuBaOp+wS563q/OssbWTqlhEyGrMv0IlRYHFzJOkye+lDeAl1izjxEE+fb U+rZkrf5052CYc4T65Et4HuOEY1ZC1aCubQg8ulCifsF0mEru+kSib6OiM3NbMInVVle nZ1efJr1TaZAvhtbmeNZ8JOYpjkDlupC3SaFQ=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

Here is the refreshed version of the multi-page ring patch for
blkfront and blkback. I currently don't have time to refresh the
blktap part of the patch. The patch should apply cleanly to the
following changeset in the linux 2.6.18 tree:

changeset:   752:0b859c9516ba
tag:         qparent
parent:      751:6591b4869889
parent:      748:5012c470f875
user:        Keir Fraser <keir.fraser@xxxxxxxxxx>
date:        Wed Nov 26 11:13:49 2008 +0000
summary:     Merge with ia64 tree.

The patch adds support for 1,2 and 4 pages ring for block devices. The
number of page is configured when compiling blkfront. The xenstore
setup protocol is backward compatible in the sense that a patched
blkback will support both patched and unpatched blkfront, and a
patched blkfront will use the existing protocol when setting up a 1
page ring so that it works with existing dom0. A guest will fail at
boot time if it tries to setup a multi-page ring with an unpatched
dom0.

The ring setup protocol is a bit crude and it would be much nicer if
the number of ring pages could be configured more dynamically and if
blkfront could adapt to block backend that don't support multi-page
ring (specially if you want to be able to migrate from a patched to an
unpatched dom0). If someone is interested in implementing this
feature, feel free to have a go at it.

The refreshed version of the patch hasn't been tested extensively but
it seems to work well. I don't have access to a setup that allows me
to test if migration works but save/restore seems to work. I also
don't have access to a filer to reproduce the performance number but
the patch did give a significant boost in throughput (from 60 to
100MB/sec) when we last tested it. I am sorry i currently don't have
much time to spend on this but hopefully this will be helpful.

cheers,

geoffrey

Attachment: big_ring.patch
Description: Text Data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>