Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id A235163443D for ; Sat, 4 Apr 2009 02:25:07 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 39482-07 for ; Sat, 4 Apr 2009 02:25:02 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from EXHUB018-1.exch018.msoutlookonline.net (exhub018-1.exch018.msoutlookonline.net [64.78.17.16]) by mail.postgresql.org (Postfix) with ESMTP id 1B9B663364C for ; Sat, 4 Apr 2009 02:25:00 -0300 (ADT) Received: from EXVMBX018-1.exch018.msoutlookonline.net ([64.78.17.47]) by EXHUB018-1.exch018.msoutlookonline.net ([64.78.17.16]) with mapi; Fri, 3 Apr 2009 22:24:59 -0700 From: Scott Carey To: "david@lang.hm" , Greg Smith CC: "pgsql-performance@postgresql.org" Date: Fri, 3 Apr 2009 22:24:52 -0700 Subject: Re: Raid 10 chunksize Thread-Topic: [PERFORM] Raid 10 chunksize Thread-Index: Acm0wYfaKClMeTW/RaChD/nBrN/OmgAJCZaK Message-ID: In-Reply-To: Accept-Language: en-US Content-Language: en X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200904/95 X-Sequence-Number: 33462 On 4/3/09 6:05 PM, "david@lang.hm" wrote: > On Fri, 3 Apr 2009, Greg Smith wrote: >=20 >> Hannes sent this off-list, presumably via newsgroup, and it's certainly = worth >> sharing. I've always been scared off of using XFS because of the proble= ms >> outlined at http://zork.net/~nick/mail/why-reiserfs-is-teh-sukc , with m= ore >> testing showing similar issues at http://pages.cs.wisc.edu/~vshree/xfs.p= df >> too >>=20 >> (I'm finding that old message with Ted saying "Making sure you don't los= e >> data is Job #1" hilarious right now, consider the recent ext4 data loss >> debacle) >=20 > also note that the message from Ted was back in 2004, there has been a > _lot_ of work done on XFS in the last 4 years. >=20 > as for the second link, that focuses on what happens to the filesystem if > the disk under it starts returning errors or garbage. with the _possible_ > exception of ZFS, every filesystem around will do strange things under > those conditions. and in my option, the way to deal with this sort of > thing isn't to move to ZFS to detect the problem, it's to setup redundanc= y > in your storage so that you can not only detect the problem, but correct > it as well (it's a good thing to know that your database file is corrupt, > but that's not nearly as useful as having some way to recover the data > that was there) Not trying to spread too much kool-aid around, but ZFS does that. If a mirror set (which might be 2, 3 or more copies in the mirror) detects = a checksum error, it reads the other copies and attempts to correct the bad block. PLUS, the performance under normal conditions for reads scales with the mirrors. 12 disks in raid 10 do writes as fast as 6 disk raid 0, but reads as fast as 12 disk raid 0 since it does not have to read both mirror sets t= o detect an error, only to recover. You can even just write zeros to random spots in a mirror and it will throw errors and use the other copies. This really isn't a ZFS promotion, rather its a promotion of the power of checksums at the file system and raid level. A hardware raid card could just as well sacrifice some space to place checksums on its blocks and get much the same result. >=20 > David Lang >=20