X-Original-To: pgsql-performance-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 8DE9D9FB35E for ; Thu, 24 Aug 2006 13:25:28 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 66525-04 for ; Thu, 24 Aug 2006 16:25:08 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from servata.com (ip-216-152-249-241.servata.com [216.152.249.241]) by postgresql.org (Postfix) with ESMTP id 1407C9FB361 for ; Thu, 24 Aug 2006 13:25:07 -0300 (ADT) Received: from [209.162.219.253] (helo=dogma.v10.wvs) by servata.com with esmtpa (Exim 4.50) id 1GGI0k-0004RT-3d; Thu, 24 Aug 2006 09:24:54 -0700 Subject: Re: PowerEdge 2950 questions From: Jeff Davis To: Merlin Moncure Cc: Bucky Jordan , pgsql-performance@postgresql.org In-Reply-To: References: <78ED28FACE63744386D68D8A9D1CF5D4104ACF@MAIL.corp.lumeta.com> <1156285374.15743.118.camel@dogma.v10.wvs> Content-Type: text/plain Date: Thu, 24 Aug 2006 09:24:50 -0700 Message-Id: <1156436690.15743.181.camel@dogma.v10.wvs> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 (2.0.4-7) Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=3.816 tagged_above=0 required=5 tests=SPF_HELO_SOFTFAIL, SPF_SOFTFAIL X-Spam-Level: *** X-Archive-Number: 200608/390 X-Sequence-Number: 20575 On Thu, 2006-08-24 at 09:21 -0400, Merlin Moncure wrote: > On 8/22/06, Jeff Davis wrote: > > On Tue, 2006-08-22 at 17:56 -0400, Bucky Jordan wrote: > > Very interesting. I always hear that people avoid RAID 5 on database > > servers, but I suppose it always depends. Is the parity calculation > > something that may increase commit latency vs. a RAID 10? That's > > normally the explanation that I get. > > it's not the parity, it's the seeking. Raid 5 gives you great > sequential i/o but random is often not much better than a single > drive. Actually it's the '1' in raid 10 that plays the biggest role > in optimizing seeks on an ideal raid controller. Calculating parity > was boring 20 years ago as it inolves one of the fastest operations in > computing, namely xor. :) > Here's the explanation I got: If you do a write on RAID 5 to something that is not in the RAID controllers cache, it needs to do a read first in order to properly recalculate the parity for the write. However, I'm sure they try to avoid this by leaving the write in the battery-backed cache until it's more convenient to do the read, or maybe until the rest of the stripe is written in which case it doesn't need to do the read. I am not sure the actual end effect. > > > Lastly, re your question on putting the WAL on the RAID10- I currently > > > have the box setup as RAID5x6 with the WAL and PGDATA all on the same > > > raidset. I haven't had the chance to do extensive tests, but from > > > previous readings, I gather that if you have write-back enabled on the > > > RAID, it should be ok (which it is in my case). > > with 6 relatively small disks I think single raid 10 volume is the > best bet. however above 6 dedicated wal is usually worth considering. > since wal storage requirements are so small, it's becoming affordable > to look at solid state for the wal. > I've often wondered about that. To a certain degree, that's the same effect as just having a bigger battery-backed cache, right? Regards, Jeff Davis