From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Greg Smith <gsmith(at)gregsmith(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Bgwriter LRU cleaning: we've been going at this all wrong |
Date: | 2007-06-27 14:38:54 |
Message-ID: | 17390.1182955134@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Greg Smith <gsmith(at)gregsmith(dot)com> writes:
> What may need to happen here is to add Tom's approach, but perhaps
> restrain it using the current auto-tuning LRU patch's method of estimating
> how many clean buffers are needed in the near future. Particularly on
> large buffer caches, the idea of getting so far ahead of the sweep that
> you're looping all the away around and following right behind the clock
> sweep point may be overkill, but I think it will help enormously on
> smaller caches that are often very dirty.
I don't really see why it's "overkill". My assumption is that it won't
really be hard to lap the clock sweep during startup --- most likely,
on its first iteration the bgwriter will see all of the cache as not a
candidate for writing (invalid, or at worst just touched) and will be
caught up before any real load materializes. So the question is not can
it get into that state, it's whether it can stay there under load.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Gregory Stark | 2007-06-27 15:04:50 | Re: Bgwriter LRU cleaning: we've been going at this all wrong |
Previous Message | Tom Lane | 2007-06-27 14:14:33 | Re: tsearch in core patch |