Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id E027E633E9F for ; Wed, 3 Mar 2010 10:24:38 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 27490-09 for ; Wed, 3 Mar 2010 14:24:25 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-bw0-f216.google.com (mail-bw0-f216.google.com [209.85.218.216]) by mail.postgresql.org (Postfix) with ESMTP id 223E5633DF8 for ; Wed, 3 Mar 2010 10:24:25 -0400 (AST) Received: by bwz8 with SMTP id 8so1199438bwz.3 for ; Wed, 03 Mar 2010 06:24:23 -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 :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=WeMb2MncvS4MijNwOJ01dI6G9y3dDAo9+SHhyhigLwo=; b=DfYTvUe21VQF4InCDmyih01k6RqUc6Xizjh9MJCeMD9rKzsaUfT4USA2+lwKO882k2 swEzs/lPmq82KCIxlSoRqbWVSi8LpbSOW4zFwSXm5bwW1e6j0YGWC3g4UhdisWKXimly 590RnjHGC6CxR697WTJMF3Gj90nwhInof+lrY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=evE/lOuOVDYjZDS99kZCoKWjBPgUtwwqhstAZ1x1954NvTLzyvz26g3gX6Z8iTvTU6 OaEa7yHaokltarS68v+q6r4WbFalVxnHpB5hJXvY+AmZ/I8wAhPOVT/qTFF3tYnMUUV+ eY1obhEGYAYl9inFXuW4wjSPwO/nTkSqWplcg= Received: by 10.204.32.206 with SMTP id e14mr6173694bkd.45.1267626263711; Wed, 03 Mar 2010 06:24:23 -0800 (PST) Received: from ?0.0.0.0? (5357DA75.cable.casema.nl [83.87.218.117]) by mx.google.com with ESMTPS id g18sm2030909bkw.19.2010.03.03.06.24.22 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 03 Mar 2010 06:24:23 -0800 (PST) Message-ID: <4B8E711C.8050106@gmail.com> Date: Wed, 03 Mar 2010 15:24:28 +0100 From: Yeb Havinga User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Francisco Reyes CC: Pgsql performance Subject: Re: 10K vs 15k rpm for analytics References: <4B8D7A6C.3010304@gmail.com> <4B8E2FA9.4010109@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201003/59 X-Sequence-Number: 37884 Francisco Reyes wrote: > Yeb Havinga writes: > >> controllers. Also, I am not sure if it is wise to put the WAL on the >> same logical disk as the indexes, > > If I only have two controllers would it then be better to put WAL on > the first along with all the data and the indexes on the external? > Specially since the external enclosure will have 15K rpm vs 10K rpm in > the internal. It sounds like you're going to create a single logical unit / raid array on each of the controllers. Depending on the number of disks, this is a bad idea because if you'd read/write data sequentially, all drive heads will be aligned to roughly the same place ont the disks. If another process wants to read/write as well, this will interfere and bring down both iops and mbps. However, with three concurrent users.. hmm but then again, queries will scan multiple tables/indexes so there will be mixed io to several locations. What would be interesting it so see what the mbps maximum of a single controller is. Then calculate how much disks are needed to feed that, which would give a figure for number of disks per logical unit. The challenge with having a few logical units / raid arrays available, is how to divide the data over it (with tablespaces) What is good for your physical data depends on the schema and queries that are most important. For 2 relations and 2 indexes and 4 arrays, it would be clear. There's not much to say anything general here, except: do not mix table or index data with the wal. In other words: if you could make a separate raid array for the wal (2 disk raid1 probably good enough), that would be ok and doesn't matter on which controller or enclosure it happens, because io to disk is not mixed with the data io. > > Thanks for pointing that out. > With any luck I will actually be able to do some tests for the new > hardware. The curernt one I literaly did a few hours stress test and > had to put in production right away. I've heard that before ;-) If you do get around to do some tests, I'm interested in the results / hard numbers. regards, Yeb Havinga