O_DIRECT option used?

Поиск
Список
Период
Сортировка
От Ruslan A Dautkhanov
Тема O_DIRECT option used?
Дата
Msg-id 3DF35CB8.E87E3EBE@scn.ru
обсуждение исходный текст
Ответы Re: O_DIRECT option used?  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-bugs
Hello,

        In the FreeBSD 4.5 appear additional O_DIRECT option for open(2),
    which mean "eliminate or reduce cache effects". I think, that double
    buffering the same disk blocks is ineffective. I grepped all
    PostgreSQL sources for this options and didn't find this anywhere.
    PgSQL have it's own disk caches, which should be smart
    (DB can know what data should be cached first better than OS).
    Why wasting OS memory for double caches? OS can use this caches
    for other disk blocks, so total cached disk blocks in whole
    system will be much bigger. If you have no plans to implement this,
    please let us know what source files I should looking for patching.
    I think it's somewhere DB tables files are opened (and maybe
    WAL files too).   Thanks a lot on any comments.



    ---
     best regards,
    Ruslan A Dautkhanov   rusland@scn.ru

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

Предыдущее
От: Ruslan A Dautkhanov
Дата:
Сообщение: datatypes: text vs varchar
Следующее
От: "Gaetano Mendola"
Дата:
Сообщение: 7.3 RMPS bugs ( pgdb.py and postgresql launch script )