Re: Optimize kernel readahead using buffer access strategy

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: Optimize kernel readahead using buffer access strategy
Дата
Msg-id CA+U5nMJjw+edsXszT8ZymFPepW67-Pcx16e-BDLG-v4uX_Noyw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Optimize kernel readahead using buffer access strategy  (KONDO Mitsumasa <kondo.mitsumasa@lab.ntt.co.jp>)
Ответы Re: Optimize kernel readahead using buffer access strategy
Список pgsql-hackers
On 17 December 2013 11:50, KONDO Mitsumasa
<kondo.mitsumasa@lab.ntt.co.jp> wrote:

> Unpatched PG is faster than patched in A and B query. It was about 1.3 times
> faster. Result of A query as expected, because patched PG cannot execute
> readahead at all. So cache cold situation is bad for patched PG. However, it
> might good for cache hot situation, because it doesn't read disk IO at all
> and can calculate file cache usage and know which cache is important.
>
> However, result of B query as unexpected, because my patch select
> POSIX_FADV_SEQUNENTIAL collectry, but it slow. I cannot understand that,
> nevertheless I read kernel source code... Next, I change
> POSIX_FADV_SEQUNENTIAL to POISX_FADV_NORMAL in my patch. B query was faster
> as unpatched PG.
>
> In heavily random access benchmark tests which are pgbench and DBT-2, my
> patched PG is about 1.1 - 1.3 times faster than unpatched PG. But postgres
> buffer hint strategy algorithm have not optimized for readahead strategy
> yet, and I don't fix it. It is still only for ring buffer algorithm in
> shared_buffer.

These are interesting results. Good research.

They also show that the benefit of this is very specific to the exact
task being performed. I can't see any future for a setting that
applies to everything or nothing. We must be more selective.

We also need much better benchmark results, clearly laid out, so they
can be reproduced and discussed.

Please keep working on this.

-- Simon Riggs                   http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services



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

Предыдущее
От: "MauMau"
Дата:
Сообщение: [bug fix] connection service file doesn't take effect with ECPG apps
Следующее
От: Andres Freund
Дата:
Сообщение: Re: logical changeset generation v6.8