Re: Checkpoint and Background Writer Statistics

Поиск
Список
Период
Сортировка
От Greg Smith
Тема Re: Checkpoint and Background Writer Statistics
Дата
Msg-id 4D645702.40203@2ndquadrant.com
обсуждение исходный текст
Ответ на Checkpoint and Background Writer Statistics  (Sam Nelson <samn@consistentstate.com>)
Список pgsql-admin
Sam Nelson wrote:
> One of our clients has an lru_max_dirty setting of 1000 and a
> bgwriter_delay of 200, but we're still seeing much higher growth in
> the buffers_checkpoint than buffers_clean, with buffers_checkpoint
> increasing at about 20 times the rate that buffers_clean is.  We don't
> see very much growth in the maxwritten_clean, though - something like
> one every couple of days.

The background writer can only clean data pages that haven't been used
in a while.  In your case, it sounds like most of the things that are
getting dirty are being touched enough that they never meet its
criteria.  There's nothing wrong with that.  Writing out dirty buffers
only once per checkpoint is in theory the most efficient way to handle
regularly changed data.

--
Greg Smith   2ndQuadrant US    greg@2ndQuadrant.com   Baltimore, MD
PostgreSQL Training, Services, and 24x7 Support  www.2ndQuadrant.us
"PostgreSQL 9.0 High Performance": http://www.2ndQuadrant.com/books


В списке pgsql-admin по дате отправления:

Предыдущее
От: "Prabhjot S. Sheena"
Дата:
Сообщение: Intallation of postgres 9.0.3 gives an error on already installed postgres 8.4 on the same machine
Следующее
От: Bernhard Rohrer
Дата:
Сообщение: Re: PG_update to 9.0.4 in ubuntu lucid 64