Re: O_DIRECT in freebsd

Curt Sampson <cjs@cynic.net>

From: Curt Sampson <cjs@cynic.net>
To: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
Cc: Hackers <pgsql-hackers@postgresql.org>
Date: 2003-06-17T10:34:50Z
Lists: pgsql-hackers
On Tue, 17 Jun 2003, Christopher Kings-Lynne wrote:

> "A new DIRECTIO kernel option enables support for read operations that
> bypass the buffer cache and put data directly into a userland buffer....
>
> Will PostgreSQL pick this up automatically, or do we need to add extra
> checks?

You don't want it to. It's more efficent just to use mmap, because then
all the paging and caching issues are taken care of for you.

cjs
-- 
Curt Sampson  <cjs@cynic.net>   +81 90 7737 2974   http://www.netbsd.org
    Don't you know, in this new Dark Age, we're all light.  --XTC