Re: O_DIRECT use

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: O_DIRECT use
Дата
Msg-id 200201042131.g04LVes26851@candle.pha.pa.us
обсуждение исходный текст
Ответ на O_DIRECT use  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: O_DIRECT use
Re: O_DIRECT use
Список pgsql-hackers
Tom Lane wrote:
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > I have added this item to TODO:
> >     * Consider use of open/fctl(O_DIRECT) to minimize OS caching
> 
> Why exactly would we wish to minimize OS caching?
> 
> In my mind, Postgres has always relied heavily on the existence of a
> layer of kernel caching.  Disabling that will hurt far more than help.

Not sure. Someone on IRC brought it up.  If we are sequential scanning a
large table, caching may be bad because we are pushing out stuff already
in the cache that may be useful.  It is related to this TODO item:
* Add free-behind capability for large sequential scans (Bruce)

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: O_DIRECT use
Следующее
От: Tom Lane
Дата:
Сообщение: Re: O_DIRECT use