From: Mark van Walraven <markv@netvalue.net.nz>
To: Paolo Pedaletti <paolo.pedaletti@gmail.com>
Cc: kvm@vger.kernel.org
Subject: Re: kvm-83 write performance raw
Date: Thu, 5 Mar 2009 15:09:16 +1300 [thread overview]
Message-ID: <20090305020916.GB1724@netvalue.net.nz> (raw)
In-Reply-To: <49AF0082.7090809@gmail.com>
Hi Paolo,
Sorry, list - getting a bit off-topic but I'll include because it might
be of general interest for kvm users ...
On Wed, Mar 04, 2009 at 11:28:18PM +0100, Paolo Pedaletti wrote:
> ok, I can understand this
> but on a big multimedia-file partition an "opportune" read-ahead could
> be useful (to set with blockdev)
Sure. Adjust and measure for your average and worst-case workload.
I expected a moderate read-ahead to help on the storage serving my kvm
hosts, but in practice it caused painful latency spikes.
> I use LVM extensively so can you explain how can you achieve alignments
> between lvm and filesistem? and how to check it?
Your links contain good material on this. My comments are:
When you can, don't use a partition table but make the whole disk a PV.
Otherwise, watch that your partitions are properly aligned.
Use '--metadatasize 250k' arguments with pvcreate (the size is always
rounded up the next 64KB boundary so 250k ends up 256KB, '--metadatasize
256k' would result in 320KB).
'pvs -o+pe_start' and 'dmsetup table' will show your PV and LV offsets.
If you use image files, you probably don't want them to have holes in
them, or they will likey fragment as the holes are filled. I expect
qcow2 images internally fragment? Read-ahead on a fragmented image file
will really hurt.
Ext2 doesn't seem very sensitive to alignment. I haven't played with
aligning ext3's journal. (Speculation: a deliberately-wrong stride could
be interesting if inode lookups are a seek away from their data block
and your RAID is clever about splitting seeks between mirror drives.)
RAID controllers can have their own sector offsets and read-aheads.
Using disk type='block' avoids the host filesystem overhead altogether.
Regards,
Mark.
prev parent reply other threads:[~2009-03-05 2:09 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-02 20:11 kvm-83 write performance raw Malinka Rellikwodahs
2009-03-02 20:35 ` Anthony Liguori
2009-03-02 20:37 ` Malinka Rellikwodahs
2009-03-02 20:39 ` Malinka Rellikwodahs
2009-03-02 21:22 ` Anthony Liguori
2009-03-02 21:39 ` Malinka Rellikwodahs
2009-03-02 22:21 ` Anthony Liguori
2009-03-09 15:09 ` Avi Kivity
2009-03-02 20:53 ` Mark van Walraven
2009-03-02 21:00 ` Malinka Rellikwodahs
2009-03-03 15:13 ` Nikola Ciprich
[not found] ` <aa2a0fc0903051110q528da32ek17b0f6468d0f15ff@mail.gmail.com>
2009-03-05 19:11 ` Fwd: " Malinka Rellikwodahs
2009-03-06 0:14 ` Malinka Rellikwodahs
2009-03-09 15:40 ` Fwd: " Nikola Ciprich
2009-03-04 22:28 ` Paolo Pedaletti
2009-03-05 2:09 ` Mark van Walraven [this message]
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=20090305020916.GB1724@netvalue.net.nz \
--to=markv@netvalue.net.nz \
--cc=kvm@vger.kernel.org \
--cc=paolo.pedaletti@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox