Re: PATCH: regular logging of checkpoint progress

Поиск
Список
Период
Сортировка
От Tomas Vondra
Тема Re: PATCH: regular logging of checkpoint progress
Дата
Msg-id 240e9c7a3e0deb664908c4bd07a4a01e.squirrel@sq.gransy.com
обсуждение исходный текст
Ответ на Re: PATCH: regular logging of checkpoint progress  (Noah Misch <noah@2ndQuadrant.com>)
Ответы Re: PATCH: regular logging of checkpoint progress  (Noah Misch <noah@2ndQuadrant.com>)
Список pgsql-hackers
On 27 Srpen 2011, 6:01, Noah Misch wrote:
> On Fri, Aug 26, 2011 at 10:46:33AM +0200, Tomas Vondra wrote:
>> 1. collect pg_stat_bgwriter stats
>> 2. run pgbench for 10 minutes
>> 3. collect pg_stat_bgwriter stats (to compute difference with (1))
>> 4. kill the postmaster
>>
>> The problem is that when checkpoint stats are collected, there might be
>> a
>> checkpoint in progress and in that case the stats are incomplete. In
>> some
>> cases (especially with very small db blocks) this has significant impact
>> because the checkpoints are less frequent.
>
> Could you remove this hazard by adding a step "2a. psql -c CHECKPOINT"?

I already do that, but it really does not solve the issue. It just aligns
the first expected 'timed' checkpoint, it does not solve the problem with
in-progress checkpoints unless the runs behave exactly the same (and
that's the boring case).

Tomas



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

Предыдущее
От: Jeff MacDonald
Дата:
Сообщение: Re: Inputting relative datetimes
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: [COMMITTERS] pgsql: Avoid locale dependency in expected output.