Re: Configuring PostgreSQL to minimize impact of checkpoints

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Configuring PostgreSQL to minimize impact of checkpoints
Дата
Msg-id 24638.1084245829@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Configuring PostgreSQL to minimize impact of checkpoints  (Jack Orenstein <jao@geophile.com>)
Ответы Re: Configuring PostgreSQL to minimize impact of checkpoints
Список pgsql-performance
Jack Orenstein <jao@geophile.com> writes:
> I'm looking at one case in which two successive transactions, each
> updating a handful of records, take 26 and 18 *seconds* (not msec) to
> complete. These transactions normally complete in under 30 msec.

I've seen installations in which it seemed that the "normal" query load
was close to saturating the available disk bandwidth, and the extra load
imposed by a background VACUUM just pushed the entire system's response
time over a cliff.  In an installation that has I/O capacity to spare,
a VACUUM doesn't really hurt foreground query response at all.

I suspect that the same observations hold true for checkpoints, though
I haven't specifically seen an installation suffering from that effect.

Already-committed changes for 7.5 include a background writer, which
basically will "trickle" out dirty pages between checkpoints, thereby
hopefully reducing the volume of I/O forced at a checkpoint.  We have
also got code in place that throttles the rate of I/O requests during
VACUUM.  It seems like it might be useful to similarly throttle the I/O
request rate during a CHECKPOINT, though I'm not sure if there'd be any
bad side effects from lengthening the elapsed time for a checkpoint.
(Jan, any thoughts here?)

None of this is necessarily going to fix matters for an installation
that has no spare I/O capacity, though.  And from the numbers you're
quoting I fear you may be in that category.  "Buy faster disks" may
be the only answer ...

            regards, tom lane

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Configuring PostgreSQL to minimize impact of checkpoints
Следующее
От: "Matthew Nuzum"
Дата:
Сообщение: Re: Configuring PostgreSQL to minimize impact of checkpoints