Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 7ECCF632AA4 for ; Thu, 5 Aug 2010 19:27:58 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 46494-10 for ; Thu, 5 Aug 2010 22:27:49 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from 27.mail-out.ovh.net (27.mail-out.ovh.net [91.121.30.210]) by mail.postgresql.org (Postfix) with SMTP id 3E05C6322FF for ; Thu, 5 Aug 2010 19:27:49 -0300 (ADT) Received: (qmail 7373 invoked by uid 503); 5 Aug 2010 22:28:45 -0000 Received: from b7.ovh.net (HELO mail433.ha.ovh.net) (213.186.33.57) by 27.mail-out.ovh.net with SMTP; 5 Aug 2010 22:28:45 -0000 Received: from b0.ovh.net (HELO queueout) (213.186.33.50) by b0.ovh.net with SMTP; 6 Aug 2010 00:27:46 +0200 Received: from par69-8-88-161-102-87.fbx.proxad.net (HELO apollo13) (lists%peufeu.com@88.161.102.87) by ns0.ovh.net with SMTP; 6 Aug 2010 00:27:44 +0200 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: "Kenneth Cox" , pgsql-performance@postgresql.org Subject: Re: Advice configuring ServeRAID 8k for performance References: Date: Fri, 06 Aug 2010 00:27:43 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Pierre C" Message-ID: In-Reply-To: User-Agent: Opera Mail/10.10 (Linux) X-Ovh-Tracer-Id: 4242390850575468280 X-Ovh-Remote: 88.161.102.87 (par69-8-88-161-102-87.fbx.proxad.net) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: DONE|U 0.5/N X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.001 tagged_above=-10 required=5 tests=BAYES_20=-0.001, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201008/77 X-Sequence-Number: 39920 > 1) Should I switch to RAID 10 for performance? I see things like "RAID > 5 is bad for a DB" and "RAID 5 is slow with <= 6 drives" but I see > little on RAID 6. As others said, RAID6 is RAID5 + a hot spare. Basically when you UPDATE a row, at some point postgres will write the page which contains that row. RAID10 : write the page to all mirrors. RAID5/6 : write the page to the relevant disk. Read the corresponding page from all disks (minus one), compute parity, write parity. As you can see one small write will need to hog all drives in the array. RAID5/6 performance for small random writes is really, really bad. Databases like RAID10 for reads too because when you need some random data you can get it from any of the mirrors, so you get increased parallelism on reads too. > with good redundancy. My current performance is 85MB/s write, 151 MB/s > reads FYI, I get 200 MB/s sequential out of the software RAID5 of 3 cheap desktop consumer SATA drives in my home multimedia server...