Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hcaLb-0002DR-B9 for pgsql-general@arkaria.postgresql.org; Sun, 16 Jun 2019 18:57:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hcaLa-0002sU-4p for pgsql-general@arkaria.postgresql.org; Sun, 16 Jun 2019 18:57:46 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hcaLZ-0002sN-OQ for pgsql-general@lists.postgresql.org; Sun, 16 Jun 2019 18:57:45 +0000 Received: from mail-qk1-x741.google.com ([2607:f8b0:4864:20::741]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hcaLW-0000XT-ER for pgsql-general@lists.postgresql.org; Sun, 16 Jun 2019 18:57:44 +0000 Received: by mail-qk1-x741.google.com with SMTP id l128so4944640qke.2 for ; Sun, 16 Jun 2019 11:57:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=xT+yC1lyrow93RgGBlPd5znrJJWq2X42zMCXIURTZFU=; b=uvlEz4DixCaunhMTSE9+KTF9k8C6RuXX2W/IH5Ps+/XXOp2AKb9ZxixTDEkJGVh0oM 8V3ZJ388kJtcQSshO3ICAGVVZIl2Kz+UXA25A365bKUO6tc+bxNp0XDahbnGoceUh9a8 TEVcmXhrztUyP8zZzQnbIeudJRGVDyohbJLiv29MTWBWdYZP99h5YQQdPjBh32uYeuXB cu5vPGAutWfIRfG8RvYsM1Aj03a3jcjY0edz3BrICoqyzBkhjym5CWopBdH0sfpSevwV kX73bz3bMGs1VOjA1KY4tvxQ67Aza38QqQ6qosyPtoFKQKo1Saz/qKuHZsV/MwgbjHfo WHvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=xT+yC1lyrow93RgGBlPd5znrJJWq2X42zMCXIURTZFU=; b=JbhzE9672AP8EW3Re6pt+gnJ2TVjRmqgC3Bo2TD00lq918iqMZV+jK9Di7PVBXggs1 Z3HIYSXWzclJ344odRZfbGAaBRCIGbUbSdCL0HKpfBz8PZcbb5FtuT4tyqsIHqWa8QQi cNiYi9FDEJsKeT7NvqH4ttsR5Hf5NL2tJ7/IQ0FV8uynjm9V+ju49DvlLuVuKZ6b2JCV Mn5ty8lRc56j9vOet76Fr3cM0NJqF/k8vxA+F6+pBU+iiLe0h8TCLswwlEMClNlOMFep rzjOXeXb+Oj3R5ic7/7i6mYCUnmOEot0SXbHapf9c7LET3CoBju+O1mP2lkqBPnoz8IF CQsg== X-Gm-Message-State: APjAAAUmxTV1CB/wv13+/rrqkdaWVg3D1V0/rARerG0q7JVu2qFDJw/P o8BhscVC7ui69UH5KEo+eJxzHRrzzr8Fvw== X-Google-Smtp-Source: APXvYqxFJ8b4I+ZNcJhmOj9VTOz+6pf2kW1szuhXrpYG3ogv9CVNn4n+w8KjIWBCF5EbNNcBlPXdMg== X-Received: by 2002:a37:7bc3:: with SMTP id w186mr85758283qkc.225.1560711461535; Sun, 16 Jun 2019 11:57:41 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([179.56.48.227]) by smtp.gmail.com with ESMTPSA id i48sm3686237qte.93.2019.06.16.11.57.41 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 16 Jun 2019 11:57:41 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 0B241120870; Sun, 16 Jun 2019 14:57:39 -0400 (-04) Date: Sun, 16 Jun 2019 14:57:39 -0400 From: Alvaro Herrera To: "Peter J. Holzer" Cc: pgsql-general@lists.postgresql.org Subject: Re: checkpoints taking much longer than expected Message-ID: <20190616185738.GA30011@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190614162209.7ek4xt5uxcaw4jho@hjp.at> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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%40mail.gmail.com > > 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 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