From: | Chris Browne <cbbrowne(at)acm(dot)org> |
---|---|
To: | pgsql-performance(at)postgresql(dot)org |
Subject: | Re: Background writer underemphasized ... |
Date: | 2008-04-16 17:47:59 |
Message-ID: | 60abjtu1ww.fsf@dba2.int.libertyrms.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
mjy(at)geizhals(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Bill Moran | 2008-04-16 18:43:35 | Re: Background writer underemphasized ... |
Previous Message | Chris Browne | 2008-04-16 15:42:03 | Re: Oddly slow queries |