> Von: linux-raid-owner@xxxxxxxxxxxxxxx [linux-raid-owner@xxxxxxxxxxxxxxx]" im Auftrag von "Roman Mamedov [rm@xxxxxxxxxxx] > Gesendet: Dienstag, 24. Februar 2015 00:58 > An: linux-raid@xxxxxxxxxxxxxxx > Betreff: RAID6 write I/O amplification? > > Hello, > > Got a bit of a "how does it actually work" question... > > Suppose I have an MD RAID6 of 8 drives, with 64KB chunk size. > > I am rewriting a 4KB filesystem sector somewhere on that RAID (not crossing > the stripe boundary). > > What's the amount of disk I/O in total this will result in? > > I assume the RAID will need to read data from all drives, recompute parity, > then write to the data stripe where the updated piece happened to be, and also > write to two parity stripes. > > Is this done at a stripe granularity, so 6x64KB reads, 3x64KB writes? > Or down to individual sectors (pages), i.e. 6x4KB reads, 3x4KB writes? > Or am I describing this algorithm correctly at all? Implementation will work on "internal" stripe granularity and that is 4K So your case will be 6x4KB read + 3x4KB write. That said, you can only reduce the I/O overhead by writing data that is larger than your configured stripe size (e.g. 64K). Looking at Neils development GIT you will find patches that allow read-modify-write cycles for RAID6. So we only need the old block, the old parities, recaluclate them and write the new block and the new parities. In your case that would reduce the I/Os to 3x4KB read + 3x4KB write. See http://git.neil.brown.name/?p=md.git;a=shortlog;h=refs/heads/devel I posted them 6 months ago but they did not made their way into the stable tree. Additionally it conatins patches to batch adjacent writes to be processed in less & larger I/Os. Currently Linux Raid will break each operation into 4K I/Os. Markus
**************************************************************************** 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 ****************************************************************************