Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 163FF9FB3F3 for ; Fri, 23 Feb 2007 13:44:15 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 44627-04 for ; Fri, 23 Feb 2007 13:44:10 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from noel.decibel.org (noel.decibel.org [67.100.216.10]) by postgresql.org (Postfix) with ESMTP id A5A1C9FB3DA for ; Fri, 23 Feb 2007 13:44:08 -0400 (AST) Received: by noel.decibel.org (Postfix, from userid 1001) id 2A04756483; Fri, 23 Feb 2007 11:44:00 -0600 (CST) Received: (hashcash-sendmail, from uid 1001); Fri, 23 Feb 2007 11:43:56 -0600 Date: Fri, 23 Feb 2007 11:43:56 -0600 From: "Jim C. Nasby" To: Richard Huxton Cc: "Campbell, Lance" , pgsql-performance@postgresql.org Subject: Re: Recommended Initial Settings Message-ID: <20070223174356.GB19527@nasby.net> References: <45DF1660.101@archonet.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45DF1660.101@archonet.com> X-Operating-System: FreeBSD 6.1-RELEASE-p10 amd64 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.13 (2006-08-11) X-Hashcash: 1:20:070223:dev@archonet.com::YfwbO0O/dqLSR7RU:03Co3 X-Hashcash: 1:20:070223:lance@uiuc.edu::1z89fnFZQ/Xt2YzS:0007muX X-Hashcash: 1:20:070223:pgsql-performance@postgresql.org::OgmrfaSlBH3dY+kN:00000 00000000000000000000000027z3 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200702/248 X-Sequence-Number: 23302 If you're doing much updating at all you'll also want to bump up checkpoint_segments. I like setting checkpoint_warning just a bit under checkpoint_timeout as a way to monitor how often you're checkpointing due to running out of segments. With a large shared_buffers you'll likely need to make the bgwriter more aggressive as well (increase the max_pages numbers), though how important that is depends on how much updating you're doing. If you see periodic spikes in IO corresponding to checkpoints, that's an indication bgwriter isn't doing a good enough job. If everything ends up in memory, it might be good to decrease random_page_cost to 1 or something close to it; though the database should just rely on effective_cache to figure out that everything's in memory. If you're on pre-8.2, you'll want to cut all the autovacuum parameters in half, if you're using it. -- Jim Nasby jim@nasby.net EnterpriseDB http://enterprisedb.com 512.569.9461 (cell)