Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id A40649FBAC8 for ; Mon, 14 May 2007 10:41:42 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 43379-09 for ; Mon, 14 May 2007 10:41:36 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by postgresql.org (Postfix) with ESMTP id C91E39FBABC for ; Mon, 14 May 2007 10:41:35 -0300 (ADT) Received: by ug-out-1314.google.com with SMTP id k3so968340ugf for ; Mon, 14 May 2007 06:41:34 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; 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:sender; b=ExiGHgz6AWPPAcRQYsXE4wGBv3uyOS6c2Ut8B/RmgEqspUU7OVuFHerfsjbWA55qiAdB6/z4Zri7pnT3uuY1eeb8EChGTo13jY9MmUgGiMCfscjsimJj/Q82Q3dW9TPDI2Dp6YHq/i7Zyhk8CdOkK0+IZQaTNyBmIQoRtldfqGE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=XaDvSokQ50X9lD/0wYg93bbpTrLk4xFX84O9UF7THQZuWVWLpNLKOa1FLepZZB+4hOEXPtgjJvy2nNJ1xHNIXGFWaacSHGTO42zhnmSeBPcJ8ONMC1U6CRkFFobptBWYNyqzuHsHx3cXkdWk8Ch5LM96A4kFbnztRr3t/ik/2Ik= Received: by 10.67.90.19 with SMTP id s19mr5186387ugl.1179150094026; Mon, 14 May 2007 06:41:34 -0700 (PDT) Received: from ?172.24.32.105? ( [62.232.55.118]) by mx.google.com with ESMTP id j34sm772013ugc.2007.05.14.06.41.30; Mon, 14 May 2007 06:41:30 -0700 (PDT) Message-ID: <46486705.3000507@enterprisedb.com> Date: Mon, 14 May 2007 14:41:25 +0100 From: Heikki Linnakangas User-Agent: Icedove 1.5.0.10 (X11/20070329) MIME-Version: 1.0 To: Greg Smith CC: pgsql-patches@postgresql.org Subject: Re: Automatic adjustment of bgwriter_lru_maxpages References: <461E108D.6080709@enterprisedb.com> <20070514174531.71E0.ITAGAKI.TAKAHIRO@oss.ntt.co.jp> 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-Archive-Number: 200705/183 X-Sequence-Number: 2283 Greg Smith wrote: > On Mon, 14 May 2007, ITAGAKI Takahiro wrote: > >> BTW, your patch will cut LRU writes short, but will not encourage to >> do more works. So should set more aggressive values to >> bgwriter_lru_percent >> and bgwriter_lru_maxpages as defaults? > > Setting a bigger default maximum is one possibility I was thinking > about. Since the whole background writer setup is kind of complicated, > the other thing I was working on is writing a guide on how to use the > new pg_stat_bgwriter information to figure out if you need to increase > bgwriter_[all|lru]_pages (and the other parameters too). It makes it > much easier to write that if you can say "You can safely set > bgwriter_lru_maxpages high because it only writes what it needs to based > on your usage". If it's safe to set it high, let's default it to infinity. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com