linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* raid5.c internal stripe layout
@ 2014-08-18 18:32 Markus Stockhausen
  2014-08-19  3:06 ` NeilBrown
  0 siblings, 1 reply; 2+ messages in thread
From: Markus Stockhausen @ 2014-08-18 18:32 UTC (permalink / raw)
  To: linux-raid@vger.kernel.org

[-- Attachment #1: Type: text/plain, Size: 680 bytes --]

Hi,

I'm wondering if there are any pros/cons for handling stripes in memory
exactly in the same layout as on disks. There are several places that could
be simplified if parity disks would be always at the end (DDD..DDPQ). Of 
course one would have to do the mapping during read/write operations.

Cases for optimization would be:

- replace conditions "i == pd_idx || i == qd_qdx" with "i>=pd_idx"
- run data disk loops starting/ending with pd_idx (triple parity raid someday?)
- remove syndrome disk order calculation functions
- Shaohua's last patch could cross chunks
- ...

Just in case I missed a discussion I'm interested if patches are welcome.

Markus
=

[-- Attachment #2: InterScan_Disclaimer.txt --]
[-- Type: text/plain, Size: 1650 bytes --]

****************************************************************************
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
Weitergabe dieser Mail ist nicht gestattet.

Über das Internet versandte E-Mails können unter fremden Namen erstellt oder
manipuliert werden. Deshalb ist diese als E-Mail verschickte Nachricht keine
rechtsverbindliche Willenserklärung.

Collogia
Unternehmensberatung AG
Ubierring 11
D-50678 Köln

Vorstand:
Kadir Akin
Dr. Michael Höhnerbach

Vorsitzender des Aufsichtsrates:
Hans Kristian Langva

Registergericht: Amtsgericht Köln
Registernummer: HRB 52 497

This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.

e-mails sent over the internet may have been written under a wrong name or
been manipulated. That is why this message sent as an e-mail is not a
legally binding declaration of intention.

Collogia
Unternehmensberatung AG
Ubierring 11
D-50678 Köln

executive board:
Kadir Akin
Dr. Michael Höhnerbach

President of the supervisory board:
Hans Kristian Langva

Registry office: district court Cologne
Register number: HRB 52 497

****************************************************************************

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

* Re: raid5.c internal stripe layout
  2014-08-18 18:32 raid5.c internal stripe layout Markus Stockhausen
@ 2014-08-19  3:06 ` NeilBrown
  0 siblings, 0 replies; 2+ messages in thread
From: NeilBrown @ 2014-08-19  3:06 UTC (permalink / raw)
  To: Markus Stockhausen; +Cc: linux-raid@vger.kernel.org

[-- Attachment #1: Type: text/plain, Size: 1188 bytes --]

On Mon, 18 Aug 2014 18:32:57 +0000 Markus Stockhausen
<stockhausen@collogia.de> wrote:

> Hi,
> 
> I'm wondering if there are any pros/cons for handling stripes in memory
> exactly in the same layout as on disks. There are several places that could
> be simplified if parity disks would be always at the end (DDD..DDPQ). Of 
> course one would have to do the mapping during read/write operations.
> 
> Cases for optimization would be:
> 
> - replace conditions "i == pd_idx || i == qd_qdx" with "i>=pd_idx"
> - run data disk loops starting/ending with pd_idx (triple parity raid someday?)
> - remove syndrome disk order calculation functions
> - Shaohua's last patch could cross chunks
> - ...
> 
> Just in case I missed a discussion I'm interested if patches are welcome.

My guess is that you would just end up moving the complexity from one place
to another.
If I'm wrong and the change ends up making a noticeable improvement in code
readability, then I would certainly consider it.  But I'm pretty sure it
would be a big change, so it would need to bring a real improvement.

So I'm sceptical but happy to be proven wrong.

NeilBrown


> 
> Markus


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

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

end of thread, other threads:[~2014-08-19  3:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-18 18:32 raid5.c internal stripe layout Markus Stockhausen
2014-08-19  3:06 ` NeilBrown

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).