From: Adi Kriegisch <adi@cg.tuwien.ac.at>
To: xen-devel@lists.xensource.com
Subject: blk[front|back] does not hand over disk parameters
Date: Fri, 25 Feb 2011 17:43:52 +0100 [thread overview]
Message-ID: <20110225164344.GW10906@vrvis.at> (raw)
Dear all,
(following the XenFAQ on how to report a bug[1], I submitted this to
xen-user list[2] first, reported the bug in bugzilla[3] and now resend the
text to this list. Please CC me in replys as I am not subscribed to this
list, Thanks!)
I investigated some serious performance drop between Dom0 and DomU with
LVM on top of RAID6 and blkback devices.
While I have around 130MB/s write performance in Dom0, I only get 30MB/s in
DomU. Inspecting this with dstat/iostat revealed that I have a read rate of
about 17-25MB/s while writing with aroung 40MB/s.
The reading only occurs on the disk devices assembled to the RAID6 not the
md device itself. So this is related to RAID6 activity only.
The reason for this is recalculation of checksums due to a too small
optimal_io_size:
On Dom0:
blockdev --getiomin /dev/space/test
524288 (which is chunk size)
blockdev --getioopt /dev/space/test
3145728 (which is 6*chunk size)
On DomU:
blockdev --getiomin /dev/xvdb1
512
blockdev --getioopt /dev/xvdb1
0 (so the kernel will use 1MB by default, IIRC)
minimum_io_size -- if not set -- is hardware block size which seems to be
set to 512 in xlvbd_init_blk_queue (blkfront.c). Btw: blockdev --getbsz
/dev/space/test gives 4096 on Dom0 while DomU reports 512.
I can somehow mitigate the issue by using a way smaller chunk size but this
is IMHO just working around the issue. Another workaround could be to use a
"power-of-two" number of data disks in the raid and choose the chunk size
to sum up to 1MB. But this is just another hack...
If there is anything I can do, please let me know!
Thanks,
Adi Kriegisch
PS: I am using a stock Debian/Squeeze kernel on top of Debians Xen 4.0.1-2.
[1] http://wiki.xensource.com/xenwiki/XenFaq
[2] http://lists.xensource.com/archives/html/xen-users/2011-02/msg00615.html
[3] http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1745
next reply other threads:[~2011-02-25 16:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-25 16:43 Adi Kriegisch [this message]
2011-02-28 10:06 ` blk[front|back] does not hand over disk parameters Ian Campbell
2011-02-28 10:55 ` Jan Beulich
2011-02-28 11:13 ` Ian Campbell
2011-02-28 12:54 ` Jan Beulich
2011-02-28 11:54 ` Adi Kriegisch
2011-02-28 12:51 ` Jan Beulich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110225164344.GW10906@vrvis.at \
--to=adi@cg.tuwien.ac.at \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.