Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n2GYk-0001su-DD for pgsql-performance@arkaria.postgresql.org; Tue, 28 Dec 2021 17:46:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n2GYj-0008Mk-7S for pgsql-performance@arkaria.postgresql.org; Tue, 28 Dec 2021 17:46:49 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n2GYi-0008Mb-UM for pgsql-performance@lists.postgresql.org; Tue, 28 Dec 2021 17:46:48 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n2GYg-0000BG-W9 for pgsql-performance@postgresql.org; Tue, 28 Dec 2021 17:46:47 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 1BSHkisn1905391; Tue, 28 Dec 2021 12:46:44 -0500 From: Tom Lane To: Marc Millas cc: pgsql-performance@postgresql.org Subject: Re: 9.6 write time In-reply-to: References: Comments: In-reply-to Marc Millas message dated "Tue, 28 Dec 2021 17:52:25 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1905389.1640713604.1@sss.pgh.pa.us> Date: Tue, 28 Dec 2021 12:46:44 -0500 Message-ID: <1905390.1640713604@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Marc Millas writes: > I am looking at a postgres 9.6 on rh7 > I see that checkpoint_write_time is huge which looks quite strange as the > average amount of data written is not that big. checkpoint_write_time is not the amount of time spent doing I/O; it's the elapsed wall-clock time in the write phase. If the I/O is being throttled because of an un-aggressive checkpoint completion target, it could be a lot more than the actual I/O time. What have you got your checkpoint parameters set to? regards, tom lane