Re: checkpointer continuous flushing - Mailing list pgsql-hackers

From Amit Kapila
Subject Re: checkpointer continuous flushing
Date
Msg-id CAA4eK1J__4RCgbPfTA9jOxW3Nq5GkuBu1jt_-1AhH4E8YM6XMQ@mail.gmail.com
Whole thread Raw
In response to Re: checkpointer continuous flushing  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
On Mon, Oct 19, 2015 at 4:06 AM, Andres Freund <andres@anarazel.de> wrote:
>
>
> I wonder if mmap() && msync(MS_ASYNC) isn't a better replacement for
> sync_file_range(SYNC_FILE_RANGE_WRITE) than posix_fadvise(DONTNEED). It
> might even be possible to later approximate that on windows using
> FlushViewOfFile().
>

I think this idea is worth exploring especially because we can have
Windows equivalent for this optimisation.  Will this option by any
chance can lead to increase in memory usage as mmap has to
map the file/'s?


With Regards,
Amit Kapila.

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: [RFC] overflow checks optimized away
Next
From: Amit Kapila
Date:
Subject: Re: Checkpoint throttling issues