From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,bb49ce5018b7d730,start X-Google-Attributes: gidfee84,public From: Nikola Milutinovic Subject: Re: RAID 0+1 faster than RAID 5 ? How much faster? Date: 1999/02/24 Message-ID: <36D3CF6C.899456EA@ev.co.yu>#1/1 X-Deja-AN: 447832903 Content-Transfer-Encoding: 7bit References: <7av07j$hqn$1@charm.magnus.acs.ohio-state.edu> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: EPS JP Elektrovojvodina Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 Steen Hansen wrote: > > I have a RAID 310 disk array, configured for RAID 5. It is used in a mixed > read and write environment, with a lot of random traffic. > > I have read a number of places that RAID 0+1 works faster, for these reasons: > > - Less overhead for writes > - Reads can be done alternating between the two halfs of the mirror, in > effect doubling the capacity > > I have not seen any data indicating HOW much faster one can expect it to work. > Sure, it depends a lot on how they are used, but some anecdotes would be > nice to hear. RAID 5 ------ Requires n + 1 disks. For every n stripes (stripe = m * block), there is an additional CHKsum stripe. All these n+1 stripes are writen to all n+1 disks, as paralelly, as SCSI configuration would permit. If all disks have separate SCSI channels, then it can be done totally in paralel. Requires processing power for that CHKsum operation - usually in a form of a special controller card. For instance, we have Mylex RAID and it has a RISC microprocessor on it, Intel i960. RAID 0 ------ Requres n disks. Performs a simple stripping. RAID 1 ------ Requires 2 disks. Performs mirroring. Usually, doesn't require awsome computing power. RAID 0+1 -------- Requires 2 * n disks. Performs stripping upon mirrored pairs of disks. Again, not a processor hog. -------- So, it looks like RAID 0+1 is faster than RAID 5. But, think again. All the overhead of RAID 5 is USUALLY handled by a specially designed RAID controller, which should have enough computing power on it. Remember, disk operations are much slower than memory/processor operations. Even if you have all disks on separate SCSI channels, the on-board processor should be fast enough. The only advantage I can see in RAID 0+1 is that it can theoretically survive n disk failures, where RAID 5 can survive only 1. Of course, if both disks from a disk pair in RAID 0+1 crash, you're gone. Speed can be greatly achieved through sufficient on-controller cache. We have Mylex 3-channel RAID SCSI controller in RAID 5 scheme and we perform monthly backups on DAT.