Re: O_DIRECT use

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: O_DIRECT use
Дата
Msg-id 7161.1010180830@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: O_DIRECT use  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Tom Lane wrote:
>> Why exactly would we wish to minimize OS caching?

> 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.

Yeah, but people normally try to set things up to avoid doing large
sequential scans, at least in all the contexts where they need high
performance.  For index searches you definitely want all the caching
you can get.

For that matter, I would expect that O_DIRECT also defeats readahead,
so I'd fully expect it to be a loser for seqscans too.
        regards, tom lane


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

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