Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 868832E032E for ; Mon, 3 Mar 2008 11:22:18 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 24912-06 for ; Mon, 3 Mar 2008 11:22:05 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.183]) by postgresql.org (Postfix) with ESMTP id 864252E02F5 for ; Mon, 3 Mar 2008 11:22:14 -0400 (AST) Received: by wa-out-1112.google.com with SMTP id m38so88292waf.5 for ; Mon, 03 Mar 2008 07:22:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=fQSujZZAyDb6i5IOgT722VXDvgBEMNw9PVb0EtFecD4=; b=UY1nLBNSBF6JYOII0iSi0odDO5y089bXz9O+lCom3pD9CUVnGFnPpAQ+pfJQ2b8okwpkSoZD5JPl6BfenxOMtZI+ISUKydLjGAADwApKdtBoZyaC5VGbJR5FszjkwX3LHp2Td4nxG1B8+EK0XT+HnMpAzjRE3YBzTa4ql6eSyZg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=RfCCUQFMj1JSiXnpgaJwiPpymZC2pUs2jN64XBWVisZc/IbuJoiAsxZym794Wnz2NxEbaGsfn3TDVplVs/o46byZ94jX1XvDbZloGXaqaJ4r15Z+5m7vwDNEAfQjwztMUSfFkdsDwwOZFyIuy7C2EIJrX+69eHXp6zcmCuep4Qo= Received: by 10.114.176.1 with SMTP id y1mr66666wae.86.1204557733026; Mon, 03 Mar 2008 07:22:13 -0800 (PST) Received: by 10.114.133.6 with HTTP; Mon, 3 Mar 2008 07:22:12 -0800 (PST) Message-ID: Date: Mon, 3 Mar 2008 09:22:12 -0600 From: "Scott Marlowe" To: "Mark Mielke" Subject: Re: How to allocate 8 disks Cc: Matthew , pgsql-performance In-Reply-To: <47CC0FD1.7090404@mark.mielke.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1204285894.11773.33.camel@franck-gusty> <1204296705.11773.51.camel@franck-gusty> <47C88826.4040209@paradise.net.nz> <47C99B3E.4010606@emolecules.com> <20080301130347.0832b323@commandprompt.com> <47C9D05C.3040908@emolecules.com> <47CC0FD1.7090404@mark.mielke.cc> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200803/32 X-Sequence-Number: 28986 On Mon, Mar 3, 2008 at 8:48 AM, Mark Mielke wrote: > Matthew wrote: > > On Sat, 1 Mar 2008, Craig James wrote: > >> Right, I do understand that, but reliability is not a top priority in > >> this system. The database will be replicated, and can be reproduced > >> from the raw data. > > > > So what you're saying is: > > > > 1. Reliability is not important. > > 2. There's zero write traffic once the database is set up. > > > > If this is true, then RAID-0 is the way to go. I think Greg's options > > are good. Either: > > > > 2 discs RAID 1: OS > > 6 discs RAID 0: database + WAL > > > > which is what we're using here (except with more discs), or: > > > > 8 discs RAID 10: everything > > Has anybody been able to prove to themselves that RAID 0 vs RAID 1+0 is > faster for these sorts of loads? My understanding is that RAID 1+0 *can* > reduce latency for reads, but that it relies on random access, whereas > RAID 0 performs best for sequential scans? Does PostgreSQL ever do > enough random access to make RAID 1+0 shine? RAID 1+0 has certain theoretical advantages in parallel access scenarios that straight RAID-0 wouldn't have. I.e. if you used n>2 disks in a mirror and built a RAID-0 out of those types of mirrors, then you could theoretically have n users reading data on the same "drive" (the raid-1 underneath the raid-0) at the same time where RAID-0 would only have the one disk to read from. The effects of this advantage are dulled by caching, depending on how much of the data set you can cache. With a system that can cache it's whole data set in memory (not uncommon for transactional systems) or at least a large percentage, the n>2 RAID-1 sets aren't that big of an advantage. RAID-0 of n drives should behave pretty similarly to RAID-10 with 2n drives for most types of access. I.e. no better or worse for sequential or random access, if the number of drives is equivalent.