Re: posix_fadvise missing in the walsender

Поиск
Список
Период
Сортировка
От Joachim Wieland
Тема Re: posix_fadvise missing in the walsender
Дата
Msg-id CACw0+11vpW9PAnZ1ZDN8O5D3KeKN8Bj9TGSqem4KA1nriAewaA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: posix_fadvise missing in the walsender  (Simon Riggs <simon@2ndQuadrant.com>)
Список pgsql-hackers
On Tue, Feb 19, 2013 at 5:48 PM, Simon Riggs <simon@2ndquadrant.com> wrote:
>>>> In access/transam/xlog.c we give the OS buffer caching a hint that we
>>>> won't need a WAL file any time soon with
>>>>
>>>>      posix_fadvise(openLogFile, 0, 0, POSIX_FADV_DONTNEED);
>>>>
>
> I agree with Merlin and Joachim - if we have the call in one place, we
> should have it in both.

You could argue that if it's considered beneficial in the case with no
walsender, then you should definitely have it if there are walsenders
around:
The walsenders reopen and read those files which gives the OS reason
to believe that other processes might do the same in the near future
and hence that it should not evict those pages too early.


Joachim



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

Предыдущее
От: Josh Kupershmidt
Дата:
Сообщение: Re: bugfix: --echo-hidden is not supported by \sf statements
Следующее
От: Noah Misch
Дата:
Сообщение: Re: [PATCH 2/5] Make relpathbackend return a statically result instead of palloc()'ing it