From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,6f9abf670add977a X-Google-Attributes: gid1164f8,public X-Google-Thread: fbad3,6f9abf670add977a X-Google-Attributes: gidfbad3,public X-Google-Thread: 10e1c8,6f9abf670add977a X-Google-Attributes: gid10e1c8,public X-Google-ArrivalTime: 1994-07-25 06:28:53 PST Path: nntp.gmd.de!Germany.EU.net!EU.net!uknet!daphne.ecmwf.co.uk!aeneas!cgd From: cgd@aeneas.ecmwf.co.uk (Dick Dixon) Newsgroups: comp.arch.storage,comp.periphs.scsi,comp.sys.dec Subject: Re: Those confusing RAID levels (was: RAID 7's improvements of VAX performance) Date: 25 Jul 1994 13:29:14 GMT Organization: ECMWF Sender: cgd@aeneas (Dick Dixon) Distribution: world Message-ID: <310ena$gqq@daphne.ecmwf.co.uk> References: <30rq92$bet@nova.netapp.com> NNTP-Posting-Host: aeneas.ecmwf.co.uk Xref: nntp.gmd.de comp.arch.storage:3771 comp.periphs.scsi:20486 comp.sys.dec:16920 In article <30rq92$bet@nova.netapp.com>, hitz@nova.netapp.com (Dave Hitz) writes: |> Bit-wise striping with parity (RAID 3) provides a single |> high-speed data stream, but since all heads seek together, seek |> time becomes a bottleneck for multi-process loads with separate |> I/O streams. RAID 3 is supposed to be byte-wise striped, not bit-wise, according to the original Berkeley papers. 'Only one I/O request may be serviced per parity disk at one time' (I thought this was non-obvious for reads, since a read does not use the parity disk. However, since all disks seek together, there can be only one I/O active per RAID 3 unit - which is the same thing.) |> |> Block-wise striping with parity (RAID 4) allows each disk to |> seek separately, reducing seek time for parallel I/O access, |> but the parity disk becomes a bottleneck because it participates |> in every write. |> |> Block-wise striping with rotating parity (RAID 5) solves the |> hot parity because it spreads parity over all the disks, thus |> evening up the load. The Berkeley papers say 'Several reads and writes per parity disk can be serviced concurrently'. Since *every* disk is a parity disk in RAID5, it's not clear what this means. On average, a read needs to access one drive, a write two, and the drives are randomly chosen; so some clever statistics are needed (it seems to me) to work out the likely limits in a real situation. Perhaps they meant to say 'Several reads and writes per RAID 5 unit', which makes better sense. |> |> I disagree with the implication that RAID 5 is necessarily "better" |> than |> RAID 4. I think it makes more sense to stick with RAID 4 and solve |> the |> hot-parity problem with better write allocation patterns in the file |> system. The benefit is that you can easily add new disks to the end |> of |> a RAID 4 array by simply zeroing them. Expanding a RAID 5 array is |> tricky. To use these things properly and get decent write speeds, one wants to avoid doing read-modify-write on the parity drive. The only way to do this is to write in blocks a whole RAID unit wide. And if one does *that*, the functional difference between RAIDs 3, 4 and 5 disappears anyway. OK; you can keep a cache image of the parity drive and pretend that's avoided the need to do the 'read' part of 'read-modify-write', but that's really no different from claiming that cache could abolish *all* your disk I/O - it just makes the read faster, that's all. Perhaps one might say 'If you're doing I/O better with RAID 5, you're not doing it right'... -- Dick