X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 1A0FF9DCA2D for ; Tue, 27 Dec 2005 09:35:36 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 89912-06 for ; Tue, 27 Dec 2005 09:35:36 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from vms040pub.verizon.net (vms040pub.verizon.net [206.46.252.40]) by postgresql.org (Postfix) with ESMTP id 3A95A9DC859 for ; Tue, 27 Dec 2005 09:35:26 -0400 (AST) Received: from osgiliath.mathom.us ([70.108.72.158]) by vms040.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IS500GIVSF5TOJN@vms040.mailsrvcs.net> for pgsql-performance@postgresql.org; Tue, 27 Dec 2005 07:35:29 -0600 (CST) Received: from localhost (localhost [127.0.0.1]) by osgiliath.mathom.us (Postfix) with ESMTP id BFBC26057D8 for ; Tue, 27 Dec 2005 08:35:28 -0500 (EST) Received: from osgiliath.mathom.us ([127.0.0.1]) by localhost (osgiliath [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 05808-01 for ; Tue, 27 Dec 2005 08:35:27 -0500 (EST) Received: by osgiliath.mathom.us (Postfix, from userid 1000) id 371FC6001CA; Tue, 27 Dec 2005 08:35:27 -0500 (EST) Date: Tue, 27 Dec 2005 08:35:27 -0500 From: Michael Stone Subject: Re: What's the best hardver for PostgreSQL 8.1? In-reply-to: <33c6269f0512261504n564c9198ka65bacbd1054f8fa@mail.gmail.com> <33c6269f0512260932g38c9b7a4uc2aba00f72ff77@mail.gmail.com> To: pgsql-performance@postgresql.org Mail-followup-to: pgsql-performance@postgresql.org Message-id: <20051227133526.GA6811@mathom.us> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-disposition: inline X-Pgp-Fingerprint: 53 FF 38 00 E7 DD 0A 9C 84 52 84 C5 EE DF 7C 88 X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at mathom.us References: <43A84D03.7090002@ritek.hu> <200512212209.50234.caseroj@comcast.net> <200512212231.55100.caseroj@comcast.net> <20051224135042.484c6e32.frank@wiles.org> <6.2.5.6.0.20051224161551.01dc5d98@earthlink.net> <6.2.5.6.0.20051224172653.01dd4c08@earthlink.net> <20051225173755.GA6986@mathom.us> <33c6269f0512260932g38c9b7a4uc2aba00f72ff77@mail.gmail.com> User-Agent: Mutt/1.5.11 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.045 required=5 tests=[AWL=0.045] X-Spam-Score: 0.045 X-Spam-Level: X-Archive-Number: 200512/630 X-Sequence-Number: 16451 On Mon, Dec 26, 2005 at 12:32:19PM -0500, Alex Turner wrote: >It's irrelavent what controller, you still have to actualy write the >parity blocks, which slows down your write speed because you have to >write n+n/2 blocks. instead of just n blocks making the system write >50% more data. > >RAID 5 must write 50% more data to disk therefore it will always be >slower. At this point you've drifted into complete nonsense mode. On Mon, Dec 26, 2005 at 10:11:00AM -0800, David Lang wrote: >what slows down raid 5 is that to modify a block you have to read blocks >from all your drives to re-calculate the parity. this interleaving of >reads and writes when all you are logicly doing is writes can really hurt. >(this is why I asked the question that got us off on this tangent, when >doing new writes to an array you don't have to read the blocks as they are >blank, assuming your cacheing is enough so that you can write blocksize*n >before the system starts actually writing the data) Correct; there's no reason for the controller to read anything back if your write will fill a complete stripe. That's why I said that there isn't a "RAID 5 penalty" assuming you've got a reasonably fast controller and you're doing large sequential writes (or have enough cache that random writes can be batched as large sequential writes). On Mon, Dec 26, 2005 at 06:04:40PM -0500, Alex Turner wrote: >Yes, but those blocks in RAID 10 are largely irrelevant as they are to >independant disks. In RAID 5 you have to write parity to an 'active' >drive that is part of the stripe. Once again, this doesn't make any sense. Can you explain which parts of a RAID 10 array are inactive? >I agree totally that the read+parity-calc+write in the worst case is >totaly bad, which is why I alway recommend people should _never ever_ >use RAID 5. In this day and age of large capacity chassis, and large >capacity SATA drives, RAID 5 is totally inapropriate IMHO for _any_ >application least of all databases. So I've got a 14 drive chassis full of 300G SATA disks and need at least 3.5TB of data storage. In your mind the only possible solution is to buy another 14 drive chassis? Must be nice to never have a budget. Must be a hard sell if you've bought decent enough hardware that your benchmarks can't demonstrate a difference between a RAID 5 and a RAID 10 configuration on that chassis except in degraded mode (and the customer doesn't want to pay double for degraded mode performance). >In reality I have yet to benchmark a system where RAID 5 on the same >number of drives with 8 drives or less in a single array beat a RAID >10 with the same number of drives. Well, those are frankly little arrays, probably on lousy controllers... Mike Stone