Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id E33429FB769 for ; Fri, 17 Aug 2007 20:56:04 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 50142-06 for ; Fri, 17 Aug 2007 20:55:45 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.184]) by postgresql.org (Postfix) with ESMTP id 6258F9FB75B for ; Fri, 17 Aug 2007 20:56:01 -0300 (ADT) Received: by nf-out-0910.google.com with SMTP id f5so504927nfh for ; Fri, 17 Aug 2007 16:55:59 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; 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; b=T0YVbErUKmjbM0OlRaWjlTHxGJG75EdIOm1CZD2NVLpk4juo0I74yT4XefF6aiXJWHFBKeObqc6MrTmTRgmdwAduwFMgQ3xwDpk48/6F+z5FP1aTcoUEjIVY5BDALhlgl5LPC+TRijUHbir3eQQu/MjMq0gsX02XRmcW1wcpB1g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=G38gfbFfQV/B4kZOk05YeagCS5KBjCvYDpOilmNXH/2NTQiY5gr1XzsMMPk0dtHRtPXD0oCdBVHRUvuCMPEkGs8BVinQodpNs6cEqceFHYgZQz0QXsav7mFg+usYSBqxc61CcamBR+HonRP17oDZmM3ulhPLXDe87P4gEThUWX0= Received: by 10.78.162.4 with SMTP id k4mr1169134hue.1187394959325; Fri, 17 Aug 2007 16:55:59 -0700 (PDT) Received: by 10.78.18.9 with HTTP; Fri, 17 Aug 2007 16:55:59 -0700 (PDT) Message-ID: Date: Sat, 18 Aug 2007 05:25:59 +0530 From: "Merlin Moncure" To: "Robert D Oden" Subject: Re: Raid Configurations Cc: "postgresql performance list" In-Reply-To: <46C47C18.7010707@dbasetek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <46C47C18.7010707@dbasetek.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/185 X-Sequence-Number: 26315 On 8/16/07, Robert D Oden wrote: > After reading many articles which indicate the more disk spindles the > better performance and separating indexes, WAL and data on different > sets of spindles, I've come up with a couple of questions. > > We am planning to buy an external raid sub-system utilizing raid 10. The > sub-system will consist of 12 73GB SAS drives total. > Based on our data requirements we can set this system up using two > different configurations. > > First, we could have two raid sets, one with two drives mirrored for > indexes and the other with four drives mirrored for data. Second, we > could configure as one raid set with six drives mirrored housing both > indexes and data. > > Our environment consists of up to 10-20 users doing a variety of > queries. We have data entry, batch processing, customer lookups and > ad-hoc queries happening concurrently through out the day. > > Almost all queries would be using indexes, so we were concerned about > performance of index lookups with only two spindles dedicated to indexes > (using the first configuration). We thought it may be better to put data > and indexes on one raid where index lookups and data retrieval would be > spread across all six spindles. > > Any comments would be appreciated! > > Second Question: > > Would there be any problems/concerns with putting WAL files on the > server in a raid 10 configuration separate from external raid sub-system? This question comes up a lot, and the answer is always 'it depends' :-). Separate WAL volume pays off the more writing is going on in your database...it's literally a rolling log of block level changes to the database files. If your database was 100% read, it would not help very much at all. WAL traffic is mostly sequential I/O, but heavy. As for splitting data and indexes, I am skeptical this is a good idea except in very specific cases and here's my reasoning...splitting the devices that way doesn't increase the number of random I/O of the data subsystem. Mostly I would be doing this if I was adding drives to the array but couldn't resize the array for some reason...so I look at this as more of a storage management feature. So, I'd be looking at a large raid 10 and 1-2 drives for the WAL...on a raid 1. If your system supports two controllers (in either active/active or active/passive), you should look at second controller as well. merlin