Re: O_DIRECT in freebsd

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: O_DIRECT in freebsd
Дата
Msg-id 15406.1056335324@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: O_DIRECT in freebsd  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: O_DIRECT in freebsd  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> _That_ is an excellent point.  However, do we know at the time we open
> the file descriptor if we will be doing this?

We'd have to say on a per-read basis whether we want O_DIRECT or not,
and fd.c would need to provide a suitable file descriptor.

> What about cache
> coherency problems with other backends not opening with O_DIRECT?

If O_DIRECT introduces cache coherency problems against other processes
not using O_DIRECT then the whole idea is a nonstarter, but I can't
imagine any kernel hackers would have been stupid enough to allow that
to happen ...
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: O_DIRECT in freebsd
Следующее
От: Weiping He
Дата:
Сообщение: Re: a problem with index and user define type