Re: Bug: Buffer cache is not scan resistant

Поиск
Список
Период
Сортировка
От Luke Lonergan
Тема Re: Bug: Buffer cache is not scan resistant
Дата
Msg-id C3E62232E3BCF24CBA20D72BFDCB6BF802CFC0AF@MI8NYCMAIL08.Mi8.com
обсуждение исходный текст
Ответ на Re: Bug: Buffer cache is not scan resistant  (Gavin Sherry <swm@alcove.com.au>)
Список pgsql-hackers
Gavin, Mark,

> Could you demonstrate that point by showing us timings for
> shared_buffers sizes from 512K up to, say, 2 MB? The two
> numbers you give there might just have to do with managing a
> large buffer.

I suggest two experiments that we've already done:
1) increase shared buffers to double the L2 cache size, you should see
that the behavior reverts to the "slow" performance and is constant at
larger sizes

2) instrument the calls to BufferGetPage() (a macro) and note that the
buffer block numbers returned increase sequentially during scans of
tables larger than the buffer size

- Luke



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

Предыдущее
От: Gavin Sherry
Дата:
Сообщение: Re: Bug: Buffer cache is not scan resistant
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Bug: Buffer cache is not scan resistant