Re: Free WAL caches on switching segments

Поиск
Список
Период
Сортировка
От ITAGAKI Takahiro
Тема Re: Free WAL caches on switching segments
Дата
Msg-id 20050830162950.4A5E.ITAGAKI.TAKAHIRO@lab.ntt.co.jp
обсуждение исходный текст
Ответ на Re: Free WAL caches on switching segments  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Free WAL caches on switching segments  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-patches
Tom Lane <tgl@sss.pgh.pa.us> wrote:

> > Here is a small patch to prevent undesired WAL file caching by kernel.
> > posix_fadvise(POSIX_FADV_DONTNEED) attempts to free cached pages and
> > the kernel will discard them in preference to other data caches.
>
> On plenty of platforms, this won't even compile ...


Do you mean simply following code? or more pretty way?

#ifdef POSIX_FADV_DONTNEED
    posix_fadvise(openLogFile, 0, 0, POSIX_FADV_DONTNEED);
#endif


---
ITAGAKI Takahiro
NTT Cyber Space Laboratories



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Free WAL caches on switching segments
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: enable/disable trigger (Re: Fwd: [HACKERS] Open items)