Re: Why we are going to have to go DirectIO - Mailing list pgsql-hackers

From Greg Stark
Subject Re: Why we are going to have to go DirectIO
Date
Msg-id CAM-w4HM++8QgNjjRZLTCPSKHBF1+awKxGJAd3csKR4Mj-+1uiQ@mail.gmail.com
Whole thread Raw
In response to Re: Why we are going to have to go DirectIO  (Claudio Freire <klaussfreire@gmail.com>)
Responses Re: Why we are going to have to go DirectIO
List pgsql-hackers
On Thu, Dec 5, 2013 at 2:54 PM, Claudio Freire <klaussfreire@gmail.com> wrote:
> That's a bad idea in the current state of affairs. MM files haven't
> been designed for that usage, and getting stable performance out of
> that will be way too difficult.

I'm talking about long-term goals here. Either of these two routes
would require whole new kernel interfaces to work effectively. Without
those new kernel interfaces our current approach is possibly the best
we can get.

I think the way to use mmap would be to mmap very large chunks,
possibly whole tables. We would need some way to control page flushes
that doesn't involve splitting mappings and can be efficiently
controlled without having the kernel storing arbitrarily large tags on
page tables or searching through all the page tables to mark pages
flushable.

-- 
greg



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Proposal: variant of regclass
Next
From: Peter Eisentraut
Date:
Subject: Re: [RFC] Shouldn't we remove annoying FATAL messages from server log?