| От | Tom Lane |
|---|---|
| Тема | Re: Do checkpoints flush all data from shared buffers ? |
| Дата | |
| Msg-id | 22060.1152830191@sss.pgh.pa.us обсуждение |
| Ответ на | Do checkpoints flush all data from shared buffers ? (Fabrice Franquenk <Fabrice.Franquenk@bull.net>) |
| Список | pgsql-novice |
Fabrice Franquenk <Fabrice.Franquenk@bull.net> writes:
> Because i was trying to lower I/Os of the disks, i got the checkpoint
> timeout lowered to 150 seconds so i get twice the number the checkpoint.
> I was hoping it would reduce the number of I/Os on the disks because
> there would be less data to write in datafiles...
No, that's going to *increase* the amount of I/O: pages will be forced
to disk more often, and what's worse you'll be increasing the volume of
WAL data because of extra post-checkpoint page images written to WAL.
As a rule of thumb, you want checkpoints to occur as far apart as you
can stand, remembering that a longer distance back to the last
checkpoint means longer recovery time after a crash.
regards, tom lane
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера