Received: from localhost (unknown [200.46.204.184]) by developer.postgresql.org (Postfix) with ESMTP id 64A1F2E0164 for ; Wed, 16 Apr 2008 15:34:52 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 26628-01 for ; Wed, 16 Apr 2008 15:34:42 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by developer.postgresql.org (Postfix) with ESMTP id 387B52E00BF for ; Wed, 16 Apr 2008 15:25:56 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.14.1/8.14.1) with ESMTP id m3GIPsLZ012898 for ; Wed, 16 Apr 2008 15:25:54 -0300 (ADT) (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.14.1/8.14.1/Submit) id m3GI429f004443 for pgsql-performance@postgresql.org; Wed, 16 Apr 2008 15:04:02 -0300 (ADT) (envelope-from news) From: Chris Browne X-Newsgroups: pgsql.performance Subject: Re: Background writer underemphasized ... Date: Wed, 16 Apr 2008 13:47:59 -0400 Organization: cbbrowne Computing Inc Lines: 21 Message-ID: <60abjtu1ww.fsf@dba2.int.libertyrms.com> References: <480619CA.2080904@geizhals.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@news.hub.org User-Agent: Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.4.21 (linux) Cancel-Lock: sha1:lwBgXLr2wEWBEfoWtyulmtY8TWA= To: pgsql-performance@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200804/205 X-Sequence-Number: 29698 mjy@geizhals.at (Marinos Yannikos) writes: > This helped with our configuration: > bgwriter_delay = 10000ms # 10-10000ms between rounds > bgwriter_lru_maxpages = 1000 # 0-1000 max buffers written/round FYI, I'd be inclined to reduce both of those numbers, as it should reduce the variability of behaviour. Rather than cleaning 1K pages every 10s, I would rather clean 100 pages every 1s, as that will have much the same effect, but spread the work more evenly. Or perhaps 10 pages every 100ms... Cut the delay *too* low and this might make the background writer, in effect, poll *too* often, and start chewing resources, but there's doubtless some "sweet spot" in between... -- "cbbrowne","@","cbbrowne.com" http://linuxdatabases.info/info/oses.html "For systems, the analogue of a face-lift is to add to the control graph an edge that creates a cycle, not just an additional node." -- Alan J. Perlis