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

Re: [Xen-devel] [patch] Add support for barriers to blk{back,front} driv

To: Gerd Hoffmann <kraxel@xxxxxxx>
Subject: Re: [Xen-devel] [patch] Add support for barriers to blk{back,front} drivers.
From: Gerd Hoffmann <kraxel@xxxxxxx>
Date: Wed, 25 Oct 2006 18:52:16 +0200
Cc: Ian Pratt <m+Ian.Pratt@xxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 25 Oct 2006 09:52:46 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <453CB53F.8060908@xxxxxxx>
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: <3AAA99889D105740BE010EB6D5A5A3B205071C@xxxxxxxxxxxxxxxxxxxxxxxxxx> <453CB53F.8060908@xxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.7 (X11/20060911)
Gerd Hoffmann wrote:
> Ian Pratt wrote:

>> I'd certainly be interested to see some benchmarks with and without the
>> barrier support in blkfront/back.
> 
> I'll go run some ...

I did some bonnie++ runs, each test three times.  Complete set of
results, also the scripts I've used to run stuff, are at
http://www.suse.de/~kraxel/bb/.  Handle the scripts with care, there is
a mkfs call in there ;)

I've picked two numbers (sequential block writes, sequential file
creation) which should have a bunch barrier requests for journal updates.

Machine is a intel devel box with hyperthreading, 1GB of memory, sata
disk.  I've used the ext3 filesystem, freshly created on a lvm volume,
mounted with barrier={0,1} and data=journal (to stress journaling and
barriers ...).

Legend:
  wce0     -  write cache enable = off (hdparm -W0 /dev/sda)
  wce1     -  write cache enable = on  (hdparm -W1 /dev/sda)
  barrier0 -  barriers off (mount -o barrier=0)
  barrier1 -  barriers on

Here are the dom0 results:

name                   blkout   create
---------------------------------------
dom0-wce0-barrier1      12614     1841
                        12598      975
                        12575     1102
dom0-wce0-barrier0      12656     1320
                        12569     1629
                        12669     1313
dom0-wce1-barrier1      18457     2801
                        18395     3316
                        18560     2948
dom0-wce1-barrier0      19224     3190
                        18880     3079
                        19121     3555

With write caching disabled barriers don't make a big difference, it's
in the noise.  Not surprising.  With write caching enabled barriers make
things a bit slower.  But keep in mind that journaling filesystems can
NOT work reliable without barriers when write caching is enabled.  The
small performance penalty simply is the price to have to pay for
filesystem integrity.  The other way to make sure the journaling works
ok is to disable write caching.  As you can see this costs even more
performance.

domU results (guest with 256 MB memory, separate table due to the
results not being directly comparable with the dom0 ones).

name                   blkout   create
---------------------------------------
domU-wce0-barrier1       9247      866
                         9167     1265
                         9591     1131
domU-wce0-barrier0       9413      882
                         9414     1082
                         9113      942
domU-wce1-barrier1      21134     4428
                        19782     3507
                        19813     3810
domU-wce1-barrier0      20065     3411
                        20451     4342
                        20312     4672

Look simliar, but a bit more noisy, so there isn't a clear difference
visible for barriers being on/off ...

cheers,
  Gerd

-- 
Gerd Hoffmann <kraxel@xxxxxxx>
http://www.suse.de/~kraxel/julika-dora.jpeg

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel