Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id B28052E0068 for ; Wed, 26 Dec 2007 18:24:21 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 96011-04 for ; Wed, 26 Dec 2007 18:24:17 -0400 (AST) Received: from bifrost.lang.hm (dsl081-033-126.lax1.dsl.speakeasy.net [64.81.33.126]) by postgresql.org (Postfix) with ESMTP id D31B52E017E for ; Wed, 26 Dec 2007 18:24:16 -0400 (AST) Received: from asgard.lang.hm (asgard.lang.hm [10.0.0.100]) by bifrost.lang.hm (8.13.4/8.13.4/Debian-3) with ESMTP id lBQMO5cX023361; Wed, 26 Dec 2007 14:24:05 -0800 Date: Wed, 26 Dec 2007 15:36:38 -0800 (PST) From: david@lang.hm X-X-Sender: dlang@asgard.lang.hm To: Mark Mielke cc: Florian Weimer , Fernando Hevia , "'pgsql-performance'" Subject: Re: With 4 disks should I go for RAID 5 or RAID 10 In-Reply-To: <4772CE34.2040608@mark.mielke.cc> Message-ID: References: <0f8201c847f6$08e15090$8f01010a@iptel.com.ar> <87zlvxnpkl.fsf@mid.deneb.enyo.de> <4772CA58.5050406@mark.mielke.cc> <4772CE34.2040608@mark.mielke.cc> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200712/389 X-Sequence-Number: 28205 On Wed, 26 Dec 2007, Mark Mielke wrote: > david@lang.hm wrote: >> On Wed, 26 Dec 2007, Mark Mielke wrote: >> >>> Florian Weimer wrote: >>>>> seek/read/calculate/seek/write since the drive moves on after the >>>>> read), when you read you must read _all_ drives in the set to check >>>>> the data integrity. >>>> I don't know of any RAID implementation that performs consistency >>>> checking on each read operation. 8-( >>> Dave had too much egg nog... :-) >>> Yep - checking consistency on read would eliminate the performance >>> benefits of RAID under any redundant configuration. >> except for raid0, raid is primarily a reliability benifit, any performance >> benifit is incidental, not the primary purpose. >> that said, I have heard of raid1 setups where it only reads off of one of >> the drives, but I have not heard of higher raid levels doing so. > What do you mean "heard of"? Which raid system do you know of that reads all > drives for RAID 1? > > Linux dmraid reads off ONLY the first. Linux mdadm reads off the "best" one. > Neither read from both. Why should it need to read from both? What will it do > if the consistency check fails? It's not like it can tell which disk is the > right one. It only knows that the whole array is inconsistent. Until it gets > an actual hardware failure (read error, write error), it doesn't know which > disk is wrong. yes, the two linux software implementations only read from one disk, but I have seen hardware implementations where it reads from both drives, and if they disagree it returns a read error rather then possibly invalid data (it's up to the admin to figure out which drive is bad at that point). no, I don't remember which card this was. I've been playing around with things in this space for quite a while. David Lang