Re: O_DIRECT in freebsd - Mailing list pgsql-hackers

From Curt Sampson
Subject Re: O_DIRECT in freebsd
Date
Msg-id Pine.NEB.4.51.0306171933200.408@angelic-vtfw.cvpn.cynic.net
Whole thread Raw
In response to O_DIRECT in freebsd  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
List 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
alllight.  --XTC
 


pgsql-hackers by date:

Previous
From: Oleg Bartunov
Date:
Subject: Re: confused with encodings
Next
From: Peter Eisentraut
Date:
Subject: Re: confused with encodings