Re: O_DIRECT use - Mailing list pgsql-hackers

From Tom Lane
Subject Re: O_DIRECT use
Date
Msg-id 7244.1010181426@sss.pgh.pa.us
Whole thread Raw
In response to Re: O_DIRECT use  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: O_DIRECT use  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
>> 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.

> I am told on FreeBSD it does not disable read-ahead, just caching;
> something that needs more research.

Hmm.  I always thought of read-ahead as preloading buffer cache entries.

It'd be interesting to get a description of *exactly* what this flag
does, rather than handwavy approximations.  Time to start reading the
kernel code, I suppose.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: O_DIRECT use
Next
From: Brent Verner
Date:
Subject: Re: More problem with scripts