pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Peter J. Holzer <hjp-pgsql@hjp.at>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: checkpoints taking much longer than expected
Date: Sun, 16 Jun 2019 14:57:39 -0400
Message-ID: <20190616185738.GA30011@alvherre.pgsql> (raw)
In-Reply-To: <20190614162209.7ek4xt5uxcaw4jho@hjp.at>

On 2019-Jun-14, Peter J. Holzer wrote:

> There was a discussion about ZFS' COW behaviour and PostgreSQL reusing
> WAL files not being a good combination about a year ago:
> https://www.postgresql.org/message-id/flat/CACukRjO7DJvub8e2AijOayj8BfKK3XXBTwu3KKARiTr67M3E3w%40mai...
> 
> Maybe you have the same problem?

Note that Joyent ended up proposing patches to fix their performance
problem (and got them committed).  Maybe it would be useful for Tiemen
to try that code?  (That commit cherry-picks cleanly on REL_11_STABLE.)


commit 475861b2615dd63ae8431d811749a6f9a15bbfd6
Author:     Thomas Munro <tmunro@postgresql.org>
AuthorDate: Tue Apr 2 14:37:14 2019 +1300
CommitDate: Tue Apr 2 14:37:14 2019 +1300

    Add wal_recycle and wal_init_zero GUCs.
    
    On at least ZFS, it can be beneficial to create new WAL files every
    time and not to bother zero-filling them.  Since it's not clear which
    other filesystems might benefit from one or both of those things,
    add individual GUCs to control those two behaviors independently and
    make only very general statements in the docs.
    
    Author: Jerry Jelinek, with some adjustments by Thomas Munro
    Reviewed-by: Alvaro Herrera, Andres Freund, Tomas Vondra, Robert Haas and others
    Discussion: https://postgr.es/m/CACPQ5Fo00QR7LNAcd1ZjgoBi4y97%2BK760YABs0vQHH5dLdkkMA%40mail.gmail.com

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services





view thread (22+ messages)  latest in thread

Message-ID: <20190616185738.GA30011@alvherre.pgsql>
Permalink:  ../20190616185738.GA30011@alvherre.pgsql/
Also on:    postgresql.org/message-id/20190616185738.GA30011@alvherre.pgsql

 · 

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-general@postgresql.org
  Cc: alvherre@2ndquadrant.com, hjp-pgsql@hjp.at
  Subject: Re: checkpoints taking much longer than expected
  In-Reply-To: <20190616185738.GA30011@alvherre.pgsql>
  References: <20190614162209.7ek4xt5uxcaw4jho@hjp.at> <20190616185738.GA30011@alvherre.pgsql>

* 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