Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 18C1C9FB30A for ; Mon, 14 May 2007 10:57:32 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 01764-05-4 for ; Mon, 14 May 2007 10:57:22 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from westnet.com (westnet.com [216.187.52.2]) by postgresql.org (Postfix) with ESMTP id BF8839FBAD7 for ; Mon, 14 May 2007 10:57:27 -0300 (ADT) Received: from westnet.com (localhost [127.0.0.1]) by westnet.com (8.14.0/8.14.0) with ESMTP id l4EDvSKt019457 for ; Mon, 14 May 2007 09:57:28 -0400 (EDT) Received: from localhost (gsmith@localhost) by westnet.com (8.14.0/8.13.2/Submit) with ESMTP id l4EDvS3o019454 for ; Mon, 14 May 2007 09:57:28 -0400 (EDT) X-Authentication-Warning: westnet.com: gsmith owned process doing -bs Date: Mon, 14 May 2007 09:57:28 -0400 (EDT) From: Greg Smith X-X-Sender: gsmith@westnet.com To: pgsql-patches@postgresql.org Subject: Re: Automatic adjustment of bgwriter_lru_maxpages In-Reply-To: <46486705.3000507@enterprisedb.com> Message-ID: References: <461E108D.6080709@enterprisedb.com> <20070514174531.71E0.ITAGAKI.TAKAHIRO@oss.ntt.co.jp> <46486705.3000507@enterprisedb.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/186 X-Sequence-Number: 2286 On Mon, 14 May 2007, Heikki Linnakangas wrote: > If it's safe to set it high, let's default it to infinity. The maximum right now is 1000, and that would be a reasonable new default. You really don't to write more than 1000 per interval anyway without taking a break for checkpoints; the more writes you do at once, the higher the chances are you'll have the whole thing stall because the OS makes you wait for a write (this is not a theoretical comment; I've watched it happen when I try to get the BGW doing too much). If someone has so much activity that they're allocating more than that during a period, they should shrink the delay instead. The kinds of systems where 1000 isn't high enough for bgwriter_lru_maxpages are going to be compelled to adjust these parameters anyway for good performance. -- * Greg Smith gsmith@gregsmith.com http://www.gregsmith.com Baltimore, MD