All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oliver Martin <oliver.martin@student.tuwien.ac.at>
To: Michael Guntsche <mike@it-loops.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: LVM performance
Date: Mon, 10 Mar 2008 09:54:07 +0100	[thread overview]
Message-ID: <47D4F72F.40203@student.tuwien.ac.at> (raw)
In-Reply-To: <3AF45EEC-EC43-4AD4-ACD1-4EEDDE798346@it-loops.com>

Michael Guntsche schrieb:
> That's exactly what I ment sorry for not being clear enough.
> If you have a chunk size of 128KB it makes sense to align the beginning 
> of the PV to this as well.

I was talking about stripe size, not chunk size. That 128KB stripe size 
is made up of n-1 chunks of an n-disk raid-5. In this case, 3 disks and 
64KB chunk size result in 128KB stripe size.

I assume if you tell the file system about this stripe size (or it 
figures it out itself, as xfs does), it tries to align its structures 
such that whole-stripe writes are more likely than partial writes. This 
means that md only has to write 3*64KB (2x data + parity).

If a write touches both (data_chunk_1 + offset) and (data_chunk_2 + 
offset), you can calculate (parity_chunk + offset) without reading 
anything. If it doesn't change all data chunks, you have to read either
* the current parity
* the data chunk(s) to be changed
* all other data chunks
to calculate parity.

So, if this 128KB write is offset by half a stripe, md has to read one 
of the chunks from each stripe prior to writing so it can update parity. 
Also, there are two parity chunks to write. So that's 2*64KB read + 
4*64KB write.

That's what I meant with stripe-aligning the PV (and thus the LV and 
thus the file system).

-- 
Oliver

  reply	other threads:[~2008-03-10  8:54 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-17  3:58 RAID5 to RAID6 reshape? Beolach
2008-02-17 11:50 ` Peter Grandi
2008-02-17 14:45   ` Conway S. Smith
2008-02-18  5:26     ` Janek Kozicki
2008-02-18 12:38       ` Beolach
2008-02-18 14:42         ` Janek Kozicki
2008-02-19 19:41           ` LVM performance (was: Re: RAID5 to RAID6 reshape?) Oliver Martin
2008-02-19 19:52             ` Jon Nelson
2008-02-19 20:00               ` Iustin Pop
2008-02-19 23:19             ` LVM performance Peter Rabbitson
2008-02-20 12:19             ` LVM performance (was: Re: RAID5 to RAID6 reshape?) Peter Grandi
2008-02-22 13:41               ` LVM performance Oliver Martin
2008-03-07  8:14                 ` Peter Grandi
2008-03-09 19:56                   ` Oliver Martin
2008-03-09 21:13                     ` Michael Guntsche
2008-03-09 23:27                       ` Oliver Martin
2008-03-09 23:53                         ` Michael Guntsche
2008-03-10  8:54                           ` Oliver Martin [this message]
2008-03-10 21:04                             ` Peter Grandi
2008-03-12 14:03                               ` Michael Guntsche
2008-03-12 19:54                                 ` Peter Grandi
2008-03-12 20:11                                   ` Guntsche Michael
2008-03-10  0:32                         ` Richard Scobie
2008-03-10  0:53                           ` Michael Guntsche
2008-03-10  0:59                             ` Richard Scobie
2008-03-10  1:21                               ` Michael Guntsche
2008-02-18 19:05     ` RAID5 to RAID6 reshape? Peter Grandi
2008-02-20  6:39       ` Alexander Kühn
2008-02-22  8:13         ` Peter Grandi
2008-02-23 20:40           ` Nagilum
2008-02-25  0:10             ` Peter Grandi
2008-02-25 16:31               ` Nagilum
2008-02-17 13:31 ` Janek Kozicki
2008-02-17 16:18   ` Conway S. Smith
2008-02-18  3:48     ` Neil Brown
2008-02-17 22:40   ` Mark Hahn
2008-02-17 23:54     ` Janek Kozicki
2008-02-18 12:46     ` Andre Noll
2008-02-18 18:23       ` Mark Hahn
2008-02-17 14:06 ` Janek Kozicki
2008-02-17 23:54   ` cat
2008-02-18  3:43 ` Neil Brown

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=47D4F72F.40203@student.tuwien.ac.at \
    --to=oliver.martin@student.tuwien.ac.at \
    --cc=linux-raid@vger.kernel.org \
    --cc=mike@it-loops.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.