Checkpoints and buffers that are hint-bit-dirty

Поиск
Список
Период
Сортировка
От Gregory Stark
Тема Checkpoints and buffers that are hint-bit-dirty
Дата
Msg-id 87vecwsxg9.fsf@oxford.xeocode.com
обсуждение исходный текст
Ответы Re: Checkpoints and buffers that are hint-bit-dirty
Список pgsql-hackers
When we checkpoint we write out all dirty buffers. But ISTM we don't really
need to write out buffers which are dirty but which have an LSN older than the
previous checkpoint. Those represent buffers which were dirtied by a
non-wal-logged modification, ie, hint bit setting. The other non-wal-logged
operations will sync the buffer themselves when they're done.

I guess it doesn't really buy much, probably just a slight delay in writing
out the page until bgwriter gets around to it. Conceivably you could have a
hot buffer with many missing hint bits which will get written out on several
checkpoints but how many of those can you have? And extending the checkpoint
doesn't seem like much of a concern. On the other hand it wouldn't be hard to
check would it?

--  Gregory Stark EnterpriseDB          http://www.enterprisedb.com



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: usleep feature for pgbench
Следующее
От: Greg Smith
Дата:
Сообщение: Re: Bgwriter strategies