All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: poor domU VBD performance.
@ 2005-03-31 17:55 Ian Pratt
  2005-03-31 18:04 ` Jens Axboe
                   ` (2 more replies)
  0 siblings, 3 replies; 60+ messages in thread
From: Ian Pratt @ 2005-03-31 17:55 UTC (permalink / raw)
  To: Jens Axboe, Keir Fraser
  Cc: Philip R Auld, Kurt Garloff, Xen development list,
	Vincent Hanquez, Christian Limpach


> > I've checked in something along the lines of what you 
> described into 
> > both the 2.0-testing and the unstable trees. Looks to have 
> identical 
> > performance to the original simple patch, at least for a bulk 'dd'.
> 
> Can you post the patch here for review? Or just point me 
> somewhere I can view it.

Jens,

Thanks for your help on this.

Here's Keirs updated patch:
http://xen.bkbits.net:8080/xen-2.0-testing.bk/gnupatch@424c1abd7LgWMiask
LEEAAX7ffdkXQ

Which is based on this earlier patch from you:
http://xen.bkbits.net:8080/xen-2.0-testing.bk/gnupatch@424bba4091aV1FuNk
sY_4w_z4Tvr3g


Best,
Ian

diff -Naru a/linux-2.6.11-xen-sparse/drivers/xen/blkback/blkback.c
b/linux-2.6.11-xen-sparse/drivers/xen/blkback/blkback.c
--- a/linux-2.6.11-xen-sparse/drivers/xen/blkback/blkback.c2005-03-31
09:52:27 -08:00
+++ b/linux-2.6.11-xen-sparse/drivers/xen/blkback/blkback.c2005-03-31
09:52:27 -08:00
@@ -481,7 +481,6 @@
     for ( i = 0; i < nr_psegs; i++ )
     {
         struct bio *bio;
-        struct bio_vec *bv;
 
         bio = bio_alloc(GFP_ATOMIC, 1);
         if ( unlikely(bio == NULL) )
@@ -494,17 +493,14 @@
         bio->bi_private = pending_req;
         bio->bi_end_io  = end_block_io_op;
         bio->bi_sector  = phys_seg[i].sector_number;
-        bio->bi_rw      = operation;
 
-        bv = bio_iovec_idx(bio, 0);
-        bv->bv_page   = virt_to_page(MMAP_VADDR(pending_idx, i));
-        bv->bv_len    = phys_seg[i].nr_sects << 9;
-        bv->bv_offset = phys_seg[i].buffer & ~PAGE_MASK;
+        bio_add_page(
+            bio,
+            virt_to_page(MMAP_VADDR(pending_idx, i)),
+            phys_seg[i].nr_sects << 9,
+            phys_seg[i].buffer & ~PAGE_MASK);
 
-        bio->bi_size    = bv->bv_len;
-        bio->bi_vcnt++;
-
-        submit_bio(operation, bio);
+        submit_bio(operation | (1 << BIO_RW_SYNC), bio);
     }
 #endif
 
# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
#   2005/03/31 09:52:16+01:00 kaf24@firebug.cl.cam.ac.uk 
#   Backport of Jens blkdev performance patch. I accidentally applied it
#   first to unstable.
# 
# linux-2.6.11-xen-sparse/drivers/xen/blkback/blkback.c
#   2005/03/31 09:52:15+01:00 kaf24@firebug.cl.cam.ac.uk +6 -10
#   Backport of Jens blkdev performance patch. I accidentally applied it
#   first to unstable.
# 

diff -Naru a/linux-2.6.11-xen-sparse/drivers/xen/blkback/blkback.c
b/linux-2.6.11-xen-sparse/drivers/xen/blkback/blkback.c
--- a/linux-2.6.11-xen-sparse/drivers/xen/blkback/blkback.c2005-03-31
09:54:46 -08:00
+++ b/linux-2.6.11-xen-sparse/drivers/xen/blkback/blkback.c2005-03-31
09:54:46 -08:00
@@ -66,6 +66,19 @@
 
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0)
 static kmem_cache_t *buffer_head_cachep;
+#else
+static request_queue_t *plugged_queue;
+void bdev_put(struct block_device *bdev)
+{
+    request_queue_t *q = plugged_queue;
+    /* We might be giving up last reference to plugged queue. Flush if
so. */
+    if ( (q != NULL) &&
+         (q == bdev_get_queue(bdev)) && 
+         (cmpxchg(&plugged_queue, q, NULL) == q) )
+        blk_run_queue(q);
+    /* It's now safe to drop the block device. */
+    blkdev_put(bdev);
+}
 #endif
 
 static int do_block_io_op(blkif_t *blkif, int max_to_do);
@@ -176,9 +189,15 @@
             blkif_put(blkif);
         }
 
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0)
         /* Push the batch through to disc. */
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0)
         run_task_queue(&tq_disk);
+#else
+        if ( plugged_queue != NULL )
+        {
+            blk_run_queue(plugged_queue);
+            plugged_queue = NULL;
+        }
 #endif
     }
 }
@@ -481,6 +500,7 @@
     for ( i = 0; i < nr_psegs; i++ )
     {
         struct bio *bio;
+        request_queue_t *q;
 
         bio = bio_alloc(GFP_ATOMIC, 1);
         if ( unlikely(bio == NULL) )
@@ -500,7 +520,14 @@
             phys_seg[i].nr_sects << 9,
             phys_seg[i].buffer & ~PAGE_MASK);
 
-        submit_bio(operation | (1 << BIO_RW_SYNC), bio);
+        if ( (q = bdev_get_queue(bio->bi_bdev)) != plugged_queue )
+        {
+            if ( plugged_queue != NULL )
+                blk_run_queue(plugged_queue);
+            plugged_queue = q;
+        }
+
+        submit_bio(operation, bio);
     }
 #endif
 
diff -Naru a/linux-2.6.11-xen-sparse/drivers/xen/blkback/common.h
b/linux-2.6.11-xen-sparse/drivers/xen/blkback/common.h
--- a/linux-2.6.11-xen-sparse/drivers/xen/blkback/common.h2005-03-31
09:54:46 -08:00
+++ b/linux-2.6.11-xen-sparse/drivers/xen/blkback/common.h2005-03-31
09:54:46 -08:00
@@ -30,8 +30,10 @@
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
 typedef struct rb_root rb_root_t;
 typedef struct rb_node rb_node_t;
+extern void bdev_put(struct block_device *bdev);
 #else
 struct block_device;
+#define bdev_put(_b) ((void)0)
 #endif
 
 typedef struct blkif_st {
diff -Naru a/linux-2.6.11-xen-sparse/drivers/xen/blkback/vbd.c
b/linux-2.6.11-xen-sparse/drivers/xen/blkback/vbd.c
--- a/linux-2.6.11-xen-sparse/drivers/xen/blkback/vbd.c2005-03-31
09:54:46 -08:00
+++ b/linux-2.6.11-xen-sparse/drivers/xen/blkback/vbd.c2005-03-31
09:54:46 -08:00
@@ -150,7 +150,7 @@
     {
         DPRINTK("vbd_grow: device %08x doesn't exist.\n",
x->extent.device);
         grow->status = BLKIF_BE_STATUS_EXTENT_NOT_FOUND;
-        blkdev_put(x->bdev);
+        bdev_put(x->bdev);
         goto out;
     }
 
@@ -255,7 +255,7 @@
     *px = x->next; /* ATOMIC: no need for vbd_lock. */
 
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
-    blkdev_put(x->bdev);
+    bdev_put(x->bdev);
 #endif
     kfree(x);
 
@@ -307,7 +307,7 @@
     {
         t = x->next;
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
-        blkdev_put(x->bdev);
+        bdev_put(x->bdev);
 #endif
         kfree(x);
         x = t;
@@ -335,7 +335,7 @@
         {
             t = x->next;
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
-            blkdev_put(x->bdev);
+            bdev_put(x->bdev);
 #endif
             kfree(x);
             x = t;
# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
#   2005/03/31 16:43:57+01:00 kaf24@firebug.cl.cam.ac.uk 
#   Backport of batched request_queue unplugging in blkback driver.
#   Signed-off-by: Keir Fraser <keir@xensource.com>
# 
# linux-2.6.11-xen-sparse/drivers/xen/blkback/blkback.c
#   2005/03/31 16:43:56+01:00 kaf24@firebug.cl.cam.ac.uk +29 -2
#   Backport of batched request_queue unplugging in blkback driver.
#   Signed-off-by: Keir Fraser <keir@xensource.com>
# 
# linux-2.6.11-xen-sparse/drivers/xen/blkback/common.h
#   2005/03/31 16:43:56+01:00 kaf24@firebug.cl.cam.ac.uk +2 -0
#   Backport of batched request_queue unplugging in blkback driver.
#   Signed-off-by: Keir Fraser <keir@xensource.com>
# 
# linux-2.6.11-xen-sparse/drivers/xen/blkback/vbd.c
#   2005/03/31 16:43:56+01:00 kaf24@firebug.cl.cam.ac.uk +4 -4
#   Backport of batched request_queue unplugging in blkback driver.
#   Signed-off-by: Keir Fraser <keir@xensource.com>
# 

^ permalink raw reply	[flat|nested] 60+ messages in thread
* RE: Re: poor domU VBD performance.
@ 2005-04-04 19:36 Ian Pratt
  2005-04-04 22:35 ` Nicholas Lee
  0 siblings, 1 reply; 60+ messages in thread
From: Ian Pratt @ 2005-04-04 19:36 UTC (permalink / raw)
  To: Cédric Schieli; +Cc: peter bier, xen-devel

 > > SATA works fine for me on 2.0-testing.
> > I get 50MB/s reading from a raw partition in both cases using: 
> >  time dd if=/dev/sda6 of=/dev/null bs=1024k count=1024
> 
> I've tried with a raw partition (the same that holds the LVM 
> volume) and got same results : 51 MB/s on Dom0 and 37 MB/s on DomU
> 
> I don't know if it is of importance, but I need to add
> ignorebiostables=1 in my boot parameters in order to make the 
> SATA work (kernel hang on drive detection without it). The 
> SATA controller is a VIA one.

It doesn't sound like Xen is too happy on your system, but its not clear how this would explain the performance difference between dom0 and domU.

When the IOAPIC patches are checked in it will be interesting to see whether this fixes it. Try the unstable tree in a week or so.

Best,
Ian

^ permalink raw reply	[flat|nested] 60+ messages in thread
* RE: poor domU VBD performance.
@ 2005-04-02 10:56 Ian Pratt
  2005-04-02 12:10 ` Cédric Schieli
  0 siblings, 1 reply; 60+ messages in thread
From: Ian Pratt @ 2005-04-02 10:56 UTC (permalink / raw)
  To: Cédric Schieli
  Cc: Xen development list, Kurt Garloff, Andrew Theurer, Philip R Auld,
	Vincent Hanquez, Jens Axboe, Christian Limpach


> > > Xen : 2.0.5
> > > Dom0 : 2.6.11-xen-testing (20050401 ~22h CEST) running 
> Debian Sarge 
> > > DomU : 2.6.10-xen-2.0.5 (8G LVM backed VBDs exported as
> > > hda1) running Gentoo Processor : AthlonXP 1800+ Chipset : 
> VIA KT600 
> > > Drive : Seagate ST380013AS 80G SATA
> > > 
> > > And my results :
> > > 
> > > Dom0 : 51 MB/s
> > > DomU : 36 MB/s
> > > 
> > > I've tried with request sizes from 128k to 1024k reading entire 
> > > volume and obtained always same results.
> > > Changing the scheduler on Dom0 and/or DomU doesn't change 
> anything.

Are you sure you're reading from the exact same part of the disk in both instances? 
How are you doing the bandwidth measurements? 'dd'?

Ian

^ permalink raw reply	[flat|nested] 60+ messages in thread
* RE: poor domU VBD performance.
@ 2005-04-01 23:22 Ian Pratt
  2005-04-02 10:36 ` Cédric Schieli
  0 siblings, 1 reply; 60+ messages in thread
From: Ian Pratt @ 2005-04-01 23:22 UTC (permalink / raw)
  To: Cédric Schieli, Andrew Theurer
  Cc: Xen development list, Kurt Garloff, Philip R Auld,
	Vincent Hanquez, Jens Axboe, Christian Limpach

 
There have been some changes to the frontend driver too: you might want to try using the 2.0-testing kernel in domU too.

Also, a really nasty CPU performance bug got fixed earlier this evening, so you should make sure you have the latest tree.

Ian

> > I just ran again, and for some reason it looks fine now...  
> I have no 
> > idea what I did to get the lower numbers initially, perhaps an 
> > inadvertant IO scheduler change.  Service commit times are 
> .28ms and I 
> > can drive ~58MB/sec with just 16k requests on xen0.  I'll 
> do some more 
> > tests to get a more consistent picture.
> > 
> 
> I still experience bad performance in domU with latest 
> xen-testing dom0.
> 
> Here's my setup :
> 
> Xen : 2.0.5
> Dom0 : 2.6.11-xen-testing (20050401 ~22h CEST) running Debian 
> Sarge DomU : 2.6.10-xen-2.0.5 (8G LVM backed VBDs exported as 
> hda1) running Gentoo Processor : AthlonXP 1800+ Chipset : VIA 
> KT600 Drive : Seagate ST380013AS 80G SATA
> 
> And my results :
> 
> Dom0 : 51 MB/s
> DomU : 36 MB/s
> 
> I've tried with request sizes from 128k to 1024k reading 
> entire volume and obtained always same results.
> Changing the scheduler on Dom0 and/or DomU doesn't change anything.
> 
> I can give you more info if nedded.
> 
> --
> Cédric Schieli
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
> 

^ permalink raw reply	[flat|nested] 60+ messages in thread
* RE: poor domU VBD performance.
@ 2005-03-31 22:36 Ian Pratt
  2005-03-31 23:05 ` Andrew Theurer
  0 siblings, 1 reply; 60+ messages in thread
From: Ian Pratt @ 2005-03-31 22:36 UTC (permalink / raw)
  To: Andrew Theurer, Keir Fraser
  Cc: Xen development list, Kurt Garloff, Philip R Auld,
	Vincent Hanquez, Jens Axboe, Christian Limpach

>       reqsze    MB/sec    svcmt
> 
> xenU    16k     6266.67   1.25
>         32k    12618.67   1.20 
>         64k    25002.67   1.28
>        128k    49322.67   1.35
>        256k    58538.67   3.15
> 
> xen0    16k    13818.67   1.15
>         32k    27573.33   1.16
>         64k    54784.00   1.16
>        128k    58581.33   2.18
>        256k    58453.33   4.38
> 
> noXen   16k    58679.19   0.27
> 	32k    58453.33   0.54
> 	64k    58713.04   1.08
>        128k    58174.09   2.17
>        256k    58820.07   4.36

These figures for xen0 are interesting. It's odd that we tail off so
badly for short requests. What interrupt rates are occuring when you do
these tests?

Thanks,
ian

^ permalink raw reply	[flat|nested] 60+ messages in thread
* RE: poor domU VBD performance.
@ 2005-03-31 21:32 Ian Pratt
  2005-03-31 22:13 ` Andrew Theurer
  0 siblings, 1 reply; 60+ messages in thread
From: Ian Pratt @ 2005-03-31 21:32 UTC (permalink / raw)
  To: Keir Fraser, Andrew Theurer
  Cc: Philip R Auld, Kurt Garloff, Xen development list,
	Vincent Hanquez, Jens Axboe, Christian Limpach

 > Could you try again, but replace calls to 
> blk_run_queue(plugged_queue) in blkback.c with:
>     if ( plugged_queue->unplug_fn )
>            plugged_queue->unplug_fn(plugged_queue);
> 
> This looks like a better match with what various other 
> drivers do (e.g. 
> swraid).

This patch is required to make it work with LVM. 2.0-testing and
unstable will be updated shortly...

Ian 

^ permalink raw reply	[flat|nested] 60+ messages in thread
* RE: RE: RE: poor domU VBD performance.
@ 2005-03-30 11:16 Ian Pratt
  2005-03-30 17:01 ` peter bier
  2005-03-31  7:05 ` RE: " Jens Axboe
  0 siblings, 2 replies; 60+ messages in thread
From: Ian Pratt @ 2005-03-30 11:16 UTC (permalink / raw)
  To: Jens Axboe, Kurt Garloff
  Cc: Vincent Hanquez, Xen development list, Christian Limpach

> I'll check the xen block driver to see if there's anything 
> else that sticks out.
>
> Jens Axboe

Jens, I'd really appreciate this.

The blkfront/blkback drivers have rather evolved over time, and I don't
think any of the core team fully understand the block-layer differences
between 2.4 and 2.6. 

There's also some junk left in there from when the backend was in Xen
itself back in the days of 1.2, though Vincent has prepared a patch to
clean this up and also make 'refreshing' of vbd's work (for size
changes), and also allow the blkfront driver to import whole disks
rather than paritions. We had this functionality on 2.4, but lost it in
the move to 2.6.

My bet is that it's the 2.6 backend that is where the true perofrmance
bug lies. Using a 2.6 domU blkfront talking to a 2.4 dom0 blkback seems
to give good performance under a wide variety of circumstances. Using a
2.6 dom0 is far more pernickety. I agree with Andrew that I suspect it's
the work queue changes are biting us when we don't have many outstanding
requests.

Thanks,
Ian

^ permalink raw reply	[flat|nested] 60+ messages in thread
[parent not found: <A95E2296287EAD4EB592B5DEEFCE0E9D1E3905@liverpoolst.ad.cl.cam.ac.uk>]
* RE: Re: poor domU VBD performance.
@ 2005-03-29 14:19 Ian Pratt
  2005-03-29 15:27 ` peter bier
  0 siblings, 1 reply; 60+ messages in thread
From: Ian Pratt @ 2005-03-29 14:19 UTC (permalink / raw)
  To: Ian Pratt, peter bier, xen-devel


> Would you mind repeating these experiments with a 2.4 dom0 
> and a 2.6domU
> ?

Also, please could you try exporting the device to the dom0 as a scsi
device e.g. sda1 rather than ide device hde1 or hda1. [Yes, I know this
shouldn't make any difference, but I have a suspicion it will.]

Thanks,
Ian

^ permalink raw reply	[flat|nested] 60+ messages in thread
* RE: poor domU VBD performance.
@ 2005-03-28 22:17 Ian Pratt
  2005-03-29  8:44 ` peter bier
  0 siblings, 1 reply; 60+ messages in thread
From: Ian Pratt @ 2005-03-28 22:17 UTC (permalink / raw)
  To: Andrew Theurer, Peter Bier, xen-devel

> tried xen-2.0.5 and xen-unstable with a sequential read test 
> using 256k 
> request size and 8 reader threads with o_direct on a 
> lvm-raid-0 scsci array 
> (no HW cache) and got:
> 
> xen-2-dom0-2.6.10:  177 MB/sec
> xen-2-domU-2.6.10:  185 MB/sec
> xen-3-dom0-2.6.11:  177 MB/sec
> xen-3-domU-2.6.11:  185 MB/sec

Please can you try a simple 'dd if=/dev/sdaXX of=/dev/null bs=1024k
count=4096'
to read 4GB from the partition both in dom0 and domU.

When booting, I get the following output, which I presume is the
default?
 elevator: using anticipatory as default io scheduler

Thanks,
Ian

^ permalink raw reply	[flat|nested] 60+ messages in thread
* RE: poor domU VBD performance.
@ 2005-03-28 20:14 Ian Pratt
  2005-03-28 20:18 ` Andrew Theurer
  2005-03-28 21:48 ` Andrew Theurer
  0 siblings, 2 replies; 60+ messages in thread
From: Ian Pratt @ 2005-03-28 20:14 UTC (permalink / raw)
  To: Andrew Theurer, Peter Bier, xen-devel

> > > > I found out that dom0 does file-system IO and raw IO ( using
> > > > dd as a tool to test
> > > > throughput from the disk ) is about exactly the same as when
> > > > using a standard
> > > > linux kernel without XEN. But the raw IO from DomU to an
> > > > unused disk ( a second
> > > > disk in the system ) is limited to fourty percent of the
> > > > speed I get within Dom0.
> 
> Is the second disk exactly the same as the first one?  I'll 
> try an IO test 
> here on the same disk array with dom0 and domU and see what I get.

I've reproduced the problem and its a real issue. 

It only affects reads, and is almost certainly down to how the blkback
driver passes requests down to the actual device.

Does anyone on the list actually understand the changes made to linux
block IO between 2.4 and 2.6?

In the 2.6 blkfront there is no run_task_queue() to flush requests to
the lower layer, and we use submit_bio() instead of 2.4's
generic_make_request(). It looks like this is happening syncronously
rather than queueing multiple requests. What should we be doing to cause
things to be batched?

Thanks,
Ian

 

^ permalink raw reply	[flat|nested] 60+ messages in thread
* RE: poor domU VBD performance.
@ 2005-03-28 18:55 Ian Pratt
  2005-03-28 19:33 ` Andrew Theurer
  0 siblings, 1 reply; 60+ messages in thread
From: Ian Pratt @ 2005-03-28 18:55 UTC (permalink / raw)
  To: Ian Pratt, Peter Bier, xen-devel


> > I found out that dom0 does file-system IO and raw IO ( using 
> > dd as a tool to test
> > throughput from the disk ) is about exactly the same as when 
> > using a standard 
> > linux kernel without XEN. But the raw IO from DomU to an 
> > unused disk ( a second
> > disk in the system ) is limited to fourty percent of the 
> > speed I get within Dom0.

OK, this looks like a perofrmance bug that's crept into the 2.6 dom0
some where along the way. I'm surprised no-one else has spotted it. 

Please can you confirm that performance is OK if you use 2.4 as a dom0?
(It doesn't matter what you use as guests).


Thanks,
Ian

^ permalink raw reply	[flat|nested] 60+ messages in thread
* RE: poor domU VBD performance.
@ 2005-03-27 17:41 Ian Pratt
  2005-03-28  8:48 ` peter bier
                   ` (2 more replies)
  0 siblings, 3 replies; 60+ messages in thread
From: Ian Pratt @ 2005-03-27 17:41 UTC (permalink / raw)
  To: Peter Bier, xen-devel; +Cc: ian.pratt

> I found out that dom0 does file-system IO and raw IO ( using 
> dd as a tool to test
> throughput from the disk ) is about exactly the same as when 
> using a standard 
> linux kernel without XEN. But the raw IO from DomU to an 
> unused disk ( a second
> disk in the system ) is limited to fourty percent of the 
> speed I get within Dom0.

Just to be clear: you're doing a dd performance test within dom0 to the
exact same partition on the 2nd disk that you're using when you start
the domU and finding that the domU 'dd' performance is 40% of the dom0
performance?

I've not heard of anyone else having problems like this. What happens if
you use a partition on the 1st disk?

What chipset is the IDE controller? What device (e.g. sda1) are you
exporting the disk partition into the domU as?

Are you sure dom 0 is idle when doing the dd test in the domU?

Ian


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id\x14396&op=click

^ permalink raw reply	[flat|nested] 60+ messages in thread
* poor domU VBD performance.
@ 2005-03-26 18:14 Peter Bier
  0 siblings, 0 replies; 60+ messages in thread
From: Peter Bier @ 2005-03-26 18:14 UTC (permalink / raw)
  To: xen-devel

I have installed XEN and linux 2.6.10 on three different machines. The slowest 
of them was my computer at home running and Athlon XP 1600+ ( 1.4 GHZ ) and 256 
MB RAM. 

My Problem is reduced file-system performance in domU guests. These guest run
faster when I use loopbacked files on Dom0 than the do when I use real partitions
and poulate them with a linux system. 

I found out that dom0 does file-system IO and raw IO ( using dd as a tool to test
throughput from the disk ) is about exactly the same as when using a standard 
linux kernel without XEN. But the raw IO from DomU to an unused disk ( a second
disk in the system ) is limited to fourty percent of the speed I get within Dom0.
This effect transforms to about the same ratio when doing real file-system IO.

I found this sympthom in all of the systems I installed. An early paper about 
XEN describes that the penalty when using VDBs is close to zero and neglectable.
I think this conflicts with the results I got and I believe this reflects that 
something in my configuration is wrong ( at least I hope so ). 

I have the drivers for my chipset linked into the kernel and hdparm tells me that
DMA is enabled for the used disks ( using hdparm under Dom0 ). 

What worries me is that the results within Dom0 are completely satisfactory, 
while those in DomU are not. Do I have to change the kernel config for DomU ? Or
is there any special option I have to set in the kernel configuration for Dom0 or
even for xen?

I have compiled version 2.0.5 - the newest available, to my knowledge.

Any hints ??  



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

^ permalink raw reply	[flat|nested] 60+ messages in thread

end of thread, other threads:[~2005-04-12 10:29 UTC | newest]

Thread overview: 60+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-31 17:55 poor domU VBD performance Ian Pratt
2005-03-31 18:04 ` Jens Axboe
2005-03-31 18:57   ` Keir Fraser
2005-03-31 19:22     ` Jens Axboe
2005-03-31 20:49 ` Andrew Theurer
2005-03-31 21:15   ` Keir Fraser
2005-03-31 21:27     ` Andrew Theurer
2005-04-01  5:43     ` Jens Axboe
2005-04-01 16:36 ` peter bier
  -- strict thread matches above, loose matches on Subject: below --
2005-04-04 19:36 Ian Pratt
2005-04-04 22:35 ` Nicholas Lee
2005-04-12 10:29   ` peter bier
2005-04-02 10:56 Ian Pratt
2005-04-02 12:10 ` Cédric Schieli
2005-04-01 23:22 Ian Pratt
2005-04-02 10:36 ` Cédric Schieli
2005-04-02 19:54   ` peter bier
2005-03-31 22:36 Ian Pratt
2005-03-31 23:05 ` Andrew Theurer
2005-04-01 21:40   ` Cédric Schieli
2005-03-31 21:32 Ian Pratt
2005-03-31 22:13 ` Andrew Theurer
2005-03-30 11:16 RE: " Ian Pratt
2005-03-30 17:01 ` peter bier
2005-03-31  7:05 ` RE: " Jens Axboe
2005-03-31  7:10   ` Jens Axboe
2005-03-31  8:17     ` Keir Fraser
2005-03-31  8:19       ` Jens Axboe
2005-03-31 14:33         ` Philip R Auld
2005-03-31 15:34           ` Kurt Garloff
2005-03-31 15:39             ` Jens Axboe
2005-03-31 15:41               ` Jens Axboe
2005-03-31 16:27                 ` Nivedita Singhvi
2005-03-31 17:43                   ` Jens Axboe
2005-03-31 18:27                   ` Kurt Garloff
2005-03-31 21:59                     ` Nivedita Singhvi
2005-03-31 15:49               ` Keir Fraser
2005-03-31 16:02                 ` Andrew Theurer
2005-03-31 17:44                 ` Jens Axboe
2005-03-31 16:55               ` Philip R Auld
2005-03-31 16:53             ` Philip R Auld
2005-03-31 18:01               ` Jens Axboe
2005-03-31 18:43                 ` Philip R Auld
2005-03-31 19:07                   ` Keir Fraser
2005-03-31 19:10                     ` Keir Fraser
2005-03-31 19:20                     ` Jens Axboe
2005-03-31 19:21                   ` Jens Axboe
     [not found] <A95E2296287EAD4EB592B5DEEFCE0E9D1E3905@liverpoolst.ad.cl.cam.ac.uk>
2005-03-29 22:45 ` RE: " Kurt Garloff
2005-03-29 22:59   ` Andrew Theurer
2005-03-29 23:19     ` Kurt Garloff
2005-03-29 23:26       ` Andrew Theurer
2005-03-29 14:19 Ian Pratt
2005-03-29 15:27 ` peter bier
2005-03-28 22:17 Ian Pratt
2005-03-29  8:44 ` peter bier
2005-03-28 20:14 Ian Pratt
2005-03-28 20:18 ` Andrew Theurer
2005-03-28 21:48 ` Andrew Theurer
2005-03-28 23:38   ` Peter Bier
2005-03-29  0:27     ` Andrew Theurer
2005-03-29 11:39       ` peter bier
2005-03-28 18:55 Ian Pratt
2005-03-28 19:33 ` Andrew Theurer
2005-03-27 17:41 Ian Pratt
2005-03-28  8:48 ` peter bier
2005-03-28 12:44 ` peter bier
2005-03-29  6:20 ` Pasi Kärkkäinen
2005-03-26 18:14 Peter Bier

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.