Bug 194551
Summary: | RAID10 - writemostly FEATURE REQUEST | ||
---|---|---|---|
Product: | IO/Storage | Reporter: | Reindl Harald (harry) |
Component: | MD | Assignee: | io_md |
Status: | REOPENED --- | ||
Severity: | normal | CC: | neilb |
Priority: | P1 | ||
Hardware: | x86-64 | ||
OS: | Linux | ||
Kernel Version: | 4.9.9 | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
Reindl Harald
2017-02-11 18:22:51 UTC
Quoting from the mdadm man page, the "--write-mostly" section: "This is valid for RAID1 only and means that...." As RAID10 is not RAID1, it is expected that writemostly doesn't work. it does work but not as effective as it should, otherwise the performance difference of this identical setups (cloned by move 2 disks from one machine to the other and rebuild the RAID's with 2 new disks in both) would not be possible [root@srv-rhsoft:~]$ hdparm -Tt /dev/md2 /dev/md2: Timing cached reads: 23974 MB in 1.99 seconds = 12038.71 MB/sec Timing buffered disk reads: 2400 MB in 3.00 seconds = 798.92 MB/sec [root@rh:~]$ hdparm -Tt /dev/md2 /dev/md2: Timing cached reads: 22224 MB in 1.99 seconds = 11157.92 MB/sec Timing buffered disk reads: 1084 MB in 3.00 seconds = 361.10 MB/sec RAID10 is more or less RAID0 + RAID1 > it does work but not as effective as it should It does not work *at*all*. The raid10 code does not test the write-mostly flag at all. There must be some other explanation for the performance difference. > RAID10 is more or less RAID0 + RAID1 In an abstract sense, this is true. However the code in the md/raid10 module it quite different from the code in the md/raid1 and md/raid0 modules. md/raid1 supports write-mostly and write-behind, which md/raid10 code does not. well, than please change it to a feature request RAID10 with "writemostly" makes a lot of sense for large storages to get them fast *and* reliable without make it extremly expensive * you don't want RAID5/RAID6 rebuild over many TB * very large SSD für RAID1 are much more expensive than smaller ones so with 4x2 TB disks you get 4 TB useable storage and with "writemostly" which would be in the best case "writeonly" you have a lightening fast RAID0 with good redundancy and most workloads are read-intense with less writes another benefit: different technologies - it's very unlikely that both disks of a stripe fail at the same time or due rebuild when one half is a SSD and the other a HDD A feature request makes some sense. However, a feature request without code doesn't get a very high priority. I suggest your best bet would be to send email to linux-raid@vger.kernel.org, telling the list that you would really like write-behind for RAID10, and why using RAID0 over write-behind-raid1 doesn't provide a sufficient solution. Maybe others will agree. Maybe someone will get enthusiastic. I'll re-open this bug and label it as a "feature request", but I don't know that doing so will serve much of a useful purpose. |