Re: BBU Cache vs. spindles - Mailing list pgsql-performance

From Tom Lane
Subject Re: BBU Cache vs. spindles
Date
Msg-id 2777.1288367826@sss.pgh.pa.us
Whole thread Raw
In response to Re: BBU Cache vs. spindles  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-performance
Robert Haas <robertmhaas@gmail.com> writes:
> On Thu, Oct 28, 2010 at 5:26 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> It's true that we don't know whether write() causes an immediate or
>> delayed disk write, but we generally don't care that much. �What we do
>> care about is being able to ensure that a WAL write happens before the
>> data write, and with mmap we don't have control over that.

> Well, we COULD keep the data in shared buffers, and then copy it into
> an mmap()'d region rather than calling write(), but I'm not sure
> there's any advantage to it.  Managing address space mappings is a
> pain in the butt.

In principle that ought to be right about the same speed as using
write() to copy the data from shared buffers to kernel disk buffers,
anyway.

            regards, tom lane

pgsql-performance by date:

Previous
From: Aidan Van Dyk
Date:
Subject: Re: BBU Cache vs. spindles
Next
From: Ben
Date:
Subject: Re: partitioning question 1