X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id C1FB1D1C516 for ; Mon, 17 May 2004 14:07:31 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 77435-07 for ; Mon, 17 May 2004 14:07:09 -0300 (ADT) Received: from anchor-post-31.mail.demon.net (anchor-post-31.mail.demon.net [194.217.242.89]) by svr1.postgresql.org (Postfix) with ESMTP id 5CC3DD1B25D for ; Mon, 17 May 2004 14:04:57 -0300 (ADT) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-31.mail.demon.net with esmtp (Exim 3.35 #1) id 1BPlXr-000CUY-0V; Mon, 17 May 2004 18:04:55 +0100 Received: from [192.168.1.17] (client17.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id 0635415987; Mon, 17 May 2004 18:04:54 +0100 (BST) Message-ID: <40A8F0B6.6060703@archonet.com> Date: Mon, 17 May 2004 18:04:54 +0100 From: Richard Huxton User-Agent: Mozilla Thunderbird 0.6 (X11/20040502) X-Accept-Language: en-us, en MIME-Version: 1.0 To: share-postgres@think42.com Cc: pgsql-general@postgresql.org Subject: Re: filesystem option tuning References: <20040515125227.A29574@p15097255.pureserver.info> In-Reply-To: <20040515125227.A29574@p15097255.pureserver.info> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200405/523 X-Sequence-Number: 60957 share-postgres@think42.com wrote: > Hi All, > > I have recently started evaluating Postgresql 7.4.2 to replace some *cough* > more proprietary database systems... Thanks to the _excellent_ documentation > (a point I cannot overemphasize) I was up and running in no time, and got a > first test application running on the native C interface. In no official capacity whatsoever, welcome aboard. > There is just one point where I found the documentation lacking any > description and practical hints (as opposed to all other topics), namely > that of how to tune a setup for maximum performance regarding the layout of > partitions on hard-disks and their mount options. I'm not a Sun user, so I can't give any OS-specific notes, but in general: - Don't bypass the filesystem, but feel free to tinker with mount options if you think it will help - If you can put WAL on separate disk(s), all the better. - The general opinion seems to be RAID5 is slower than RAID10 unless you have a lot of disks - Battery-backed write-cache for your SCSI controller can be a big performance win - Tablespaces _should_ be available in the next release of PG, we'll know for sure soon. That might make life simpler for you if you do want to spread your database around by hand, > What I should add is that reliability is a premium for us, we do not want to > sacrifice integrity for speed, and that we are tuning for a high commit rate > of small, simple transactions... Make sure the WAL is on fast disks I'd suggest. At a guess that'll be your bottleneck. For more info, your best bet is to check the archives on the plpgsql-performance list, and then post there. People will probably want to know more about your database size/number of concurrent transactions/disk systems etc. HTH -- Richard Huxton Archonet Ltd