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 3396D9FA15C for ; Thu, 14 Sep 2006 18:58:46 -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 42386-04 for ; Thu, 14 Sep 2006 21:58:37 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from exchange.g2switchworks.com (mail.g2switchworks.com [63.87.162.25]) by postgresql.org (Postfix) with ESMTP id A2D709FA195 for ; Thu, 14 Sep 2006 18:58:37 -0300 (ADT) Received: from 10.10.1.37 ([10.10.1.37]) by exchange.g2switchworks.com ([10.10.1.2]) with Microsoft Exchange Server HTTP-DAV ; Thu, 14 Sep 2006 21:58:37 +0000 Received: from state.g2switchworks.com by mail.g2switchworks.com; 14 Sep 2006 16:58:35 -0500 Subject: Re: RAID 0 not as fast as expected From: Scott Marlowe To: "Craig A. James" Cc: Alan Hodgson , pgsql-performance@postgresql.org In-Reply-To: <4509CB04.4020605@modgraph-usa.com> References: <450999EC.8070601@modgraph-usa.com> <200609141136.03345@hal.medialogik.com> <4509CB04.4020605@modgraph-usa.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Message-Id: <1158271115.24726.24.camel@state.g2switchworks.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Thu, 14 Sep 2006 16:58:35 -0500 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=SPF_PASS, UNPARSEABLE_RELAY X-Spam-Level: X-Archive-Number: 200609/180 X-Sequence-Number: 20866 On Thu, 2006-09-14 at 16:35, Craig A. James wrote: > Alan Hodgson wrote: > > On Thursday 14 September 2006 11:05, "Craig A. James" > > wrote: > >> I'm experiment with RAID, looking for an inexpensive way to boost > >> performance. I bought 4 Seagate 7200.9 120 GB SATA drives and two SIIG > >> dual-port SATA cards. (NB: I don't plan to run RAID 0 in production, > >> probably RAID 10, so no need to comment on the failure rate of RAID 0.) > >> > > > > Are those PCI cards? If yes, it's just a bus bandwidth limit. > > Ok, that makes sense. > > One SATA disk = 52 MB/sec > 4-disk RAID0 = 106 MB/sec > > PCI at 33 MHz x 32 bits (4 bytes) = 132 MB/sec. > > I guess getting to 80% of the theoretical speed is as much as I should expect. Note that many mid to high end motherboards have multiple PCI busses / channels, and you could put a card in each one and get > 132MByte/sec on them. But for a database, sequential throughput is almost never the real problem. It's usually random access that counts, and for that a RAID 10 is a pretty good choice.