linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Michal Soltys <soltys@ziu.info>
To: Holger Mauermann <mauermann@gmail.com>
Cc: "Keld Jørn Simonsen" <keld@dkuug.dk>, linux-raid@vger.kernel.org
Subject: Re: LVM on raid10,f2 performance issues
Date: Wed, 03 Dec 2008 10:43:35 +0100	[thread overview]
Message-ID: <493654C7.2090909@ziu.info> (raw)
In-Reply-To: <4935C4B3.2060404@gmail.com>

Holger Mauermann wrote:
> Keld Jørn Simonsen schrieb:
>> How is it if you use the raid10,f2 without lvm?
>> What are the numbers?
> 
> After a fresh installation LVM performance is now somewhat better. I
> don't know what was wrong before. However, it is still not as fast as
> the raid10...
> 
> dd on raw devices
> -----------------
> 
> raid10,f2:
>   read : 409 MB/s
>   write: 212 MB/s
> 
> raid10,f2 + lvm:
>   read : 249 MB/s
>   write: 158 MB/s
> 
> 
> sda:  sdb:  sdc:  sdd:
> ----------------------
> YYYY  ....  ....  XXXX
> ....  ....  ....  ....
> XXXX  YYYY  ....  ....
> ....  ....  ....  ....



Regarding the layout from your first mail - this is how it's supposed to 
be. LVM's header took 3*64KB (you can control that with --metadatasize, 
and verify with e.g. pvs -o+pe_start), and then the first 4MB extent 
(controlled with --physicalextentsize) of the first logical volume 
started - on sdd and continued on sda. Mirrored data was set "far" from 
that, and shifted one disk to the right - as expected from raid10,f2.

As for performance, hmmm. Overally - there're few things to consider 
when doing lvm on top of the raid:

- stripe vs. extent alignment
- stride vs. stripe vs. extent size
- filesystem's awareness that there's also raid a layer below
- lvm's readahead (iirc, only uppermost layer matters - functioning as a 
hint for the filesystem)

But this is particulary important for raid with parities. Here 
everything is aligned already, and parity doesn't exist.

But the last point can be relevant - and you did test with filesystem 
after all. Try setting readahead with blockdev or lvchange (the latter 
will be permananet across lv activations). E.g.

#lvchange -r 2048 /dev/mapper...

and compare to raw raid10:

#blockedv --setra 2048 /dev/md...

If you did your tests with ext2/3, also try to create it with -E stride= 
stripe-width= option in both cases. Similary to sunit/swidth if you used 
xfs.

You might also create volume group with larger extent - such as 512MB 
(as 4MB granularity is often an overkill). Performance wise it shouldn't 
matter in this case though.

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2008-12-03  9:43 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-01  0:00 LVM on raid10,f2 performance issues Holger Mauermann
2008-12-01 16:42 ` Keld Jørn Simonsen
2008-12-02 23:28   ` Holger Mauermann
2008-12-03  7:15     ` Keld Jørn Simonsen
2008-12-03  9:43     ` Michal Soltys [this message]
2009-01-19  1:24       ` thomas62186218
2009-01-19  7:28         ` Peter Rabbitson
2009-01-26 19:06           ` Bill Davidsen
2009-01-19  7:30         ` Michal Soltys
2009-01-19 12:17         ` Keld Jørn Simonsen
2009-01-19 12:24           ` Peter Rabbitson
2009-01-19 13:59             ` Keld Jørn Simonsen

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=493654C7.2090909@ziu.info \
    --to=soltys@ziu.info \
    --cc=keld@dkuug.dk \
    --cc=linux-raid@vger.kernel.org \
    --cc=mauermann@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;
as well as URLs for NNTP newsgroup(s).