pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@postgresql.org
To: Tom Lane <tgl@sss.pgh.pa.us>
Subject: Re: pgsql: Allow to trigger kernel writeback after a configurable number of
Date: Fri, 11 Mar 2016 22:08:32 -0800
Message-ID: <20160312060832.szkhp4srs7vmqgy7@alap3.anarazel.de> (raw)
In-Reply-To: <E1aeBt7-0005jO-Id@gemulon.postgresql.org>
References: <E1aeBt7-0005jO-Id@gemulon.postgresql.org>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Tom,

On 2016-03-11 01:29:09 +0000, Andres Freund wrote:
> Several operating systems allow some control over the kernel page
> cache. Linux has sync_file_range(2), several posix systems have msync(2)
> and posix_fadvise(2). sync_file_range(2) is preferable because it
> requires no special setup, whereas msync() requires the to-be-flushed
> range to be mmap'ed. For the purpose of flushing dirty data
> posix_fadvise(2) is the worst alternative, as flushing dirty data is
> just a side-effect of POSIX_FADV_DONTNEED, which also removes the pages
> from the page cache.  Thus the feature is enabled by default only on
> linux, but can be enabled on all systems that have any of the above
> APIs.

This broke gaur:
http://pgbuildfarm.org/cgi-bin/show_log.pl?nm=gaur&dt=2016-03-12%2005%3A44%3A25

I'm planning to add a #ifndef MAP_FAILED #define MAP_FAILED ((void*)
(-1)).

Unless HPPA simply has that defined elsewhere?

Greetings,

Andres Freund


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers



view thread (3+ messages)  latest in thread

Message-ID: <20160312060832.szkhp4srs7vmqgy7@alap3.anarazel.de>
Permalink:  ../20160312060832.szkhp4srs7vmqgy7@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20160312060832.szkhp4srs7vmqgy7@alap3.anarazel.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: andres@anarazel.de, tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Allow to trigger kernel writeback after a configurable number of
  In-Reply-To: <20160312060832.szkhp4srs7vmqgy7@alap3.anarazel.de>
  References: <E1aeBt7-0005jO-Id@gemulon.postgresql.org> <20160312060832.szkhp4srs7vmqgy7@alap3.anarazel.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox