Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 7014B9FB978 for ; Tue, 15 May 2007 21:08:14 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 32438-03 for ; Tue, 15 May 2007 21:08:11 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from noel.decibel.org (noel.decibel.org [67.100.216.10]) by postgresql.org (Postfix) with ESMTP id 60C499FB765 for ; Tue, 15 May 2007 21:08:11 -0300 (ADT) Received: by noel.decibel.org (Postfix, from userid 1001) id 162BC564C4; Tue, 15 May 2007 19:08:10 -0500 (CDT) Received: (hashcash-sendmail, from uid 1001); Tue, 15 May 2007 19:08:07 -0500 Date: Tue, 15 May 2007 19:08:07 -0500 From: "Jim C. Nasby" To: daveg Cc: Greg Smith , pgsql-patches@postgresql.org Subject: Re: Automatic adjustment of bgwriter_lru_maxpages Message-ID: <20070516000807.GF20707@nasby.net> References: <461E108D.6080709@enterprisedb.com> <20070514174531.71E0.ITAGAKI.TAKAHIRO@oss.ntt.co.jp> <9814.1179150750@sss.pgh.pa.us> <20070515045516.GE2359@sonic.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070515045516.GE2359@sonic.net> 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:070516:daveg@sonic.net::7LZ3OQZDSNZcJyqs:000mh2 X-Hashcash: 1:20:070516:gsmith@gregsmith.com::J41lKrrHb05m6Zg1:00000000000000000 0000000000000000000000006Veu X-Hashcash: 1:20:070516:pgsql-patches@postgresql.org::kim4gPXguADg0mir:000000000 00000000000000000000000018A6 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/222 X-Sequence-Number: 2322 Moving to -performance. On Mon, May 14, 2007 at 09:55:16PM -0700, daveg wrote: > Apologies for asking this on the wrong list, but it is at least the right > thread. > > What is the current thinking on bg_writer setttings for systems such as > 4 core Opteron with 16GB or 32GB of memory and heavy batch workloads? It depends greatly on how much of your data tends to stay 'pinned' in shared_buffers between checkpoints. In a case where the same data tends to stay resident you're going to need to depend on the 'all' scan to decrease the impact of checkpoints (though the load distributed checkpoint patch will change that greatly). Other than that tuning bgwriter boils down to your IO capability as well as how often you're checkpointing. -- Jim Nasby decibel@decibel.org EnterpriseDB http://enterprisedb.com 512.569.9461 (cell)