Re: Odd off-by-one dirty buffers and checkpoint buffers written

Поиск
Список
Период
Сортировка
От Nathan Bossart
Тема Re: Odd off-by-one dirty buffers and checkpoint buffers written
Дата
Msg-id 20220419233651.GA2578385@nathanxps13
обсуждение исходный текст
Ответ на Odd off-by-one dirty buffers and checkpoint buffers written  ("David G. Johnston" <david.g.johnston@gmail.com>)
Ответы Re: Odd off-by-one dirty buffers and checkpoint buffers written  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-hackers
On Tue, Apr 19, 2022 at 04:21:21PM -0700, David G. Johnston wrote:
> I've done this four times in a row and while the number of dirty buffers
> shown each time vary (see below) I see that "wrote N buffers" is always
> exactly one more than the total count of dirty buffers.  I'm just curious
> if anyone has a quick answer for this unusual correspondence.

I see that SlruInternalWritePage() increments ckpt_bufs_written, so my
first guess would be that it's due to something like CheckPointCLOG().

-- 
Nathan Bossart
Amazon Web Services: https://aws.amazon.com



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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: Postgres perl module namespace
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: DBT-5 Stored Procedure Development (2022)