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 1jWMvh-0004aU-87 for pgsql-general@arkaria.postgresql.org; Wed, 06 May 2020 16:29:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jWMvg-00015D-2I for pgsql-general@arkaria.postgresql.org; Wed, 06 May 2020 16:29:52 +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 1jWMvf-00013P-R1 for pgsql-general@lists.postgresql.org; Wed, 06 May 2020 16:29:51 +0000 Received: from tamriel.snowman.net ([2001:470:e38f::11]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jWMvb-0003us-DH for pgsql-general@lists.postgresql.org; Wed, 06 May 2020 16:29:50 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id EB5445F7A5; Wed, 6 May 2020 12:29:45 -0400 (EDT) Date: Wed, 6 May 2020 12:29:45 -0400 From: Stephen Frost To: Jasen Lentz Cc: Adrian Klaver , "pgsql-general@lists.postgresql.org" Subject: Re: pg_basebackup inconsistent performance Message-ID: <20200506162945.GT13712@tamriel.snowman.net> References: <71037e82-09ec-a1fa-550f-48e637d20ba9@aklaver.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="MZjPMzvsOPk3qtG6" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --MZjPMzvsOPk3qtG6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Greetings, * Jasen Lentz (jlentz@sescollc.com) wrote: > Where are the machines you are backing up from/to relative to each on the network? > Direct ethernet connection between 10G network interfaces Is the backup server shared among other systems..? > Is there increased activity on the database servers e.g. inserts, updates, etc during the extended backups? > Not according to sar reports And there's no increased activity on the backup server either? Have you looked at network traffic for the duration? And/or disk i/o on each system? If you ran a backup once and then immediately after and that's the 'fast' case then you may be seeing performance be better due to a lot of data being in the filesystem cache. pg_basebackup being single-threaded probably doesn't help here either, you might want to consider one of the parallel-backup options. Thanks, Stephen --MZjPMzvsOPk3qtG6 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJesuX5AAoJEO1sijiDR2RVoLoQALdm+J22YoLksQAoTJ+tlFaI 7E923PwNrAUo73PEUTbkHsfM+oqWf4Hlexm29Zr9jvQ8XJhJrD5+m+gL2+MeUnr3 h69EWrIhzmKgFGmgsTtSAb0fJsRTjA2wARLlNm5duiQxKJS3qCas9nJeirbf7ARj Zzcg4Qw/UILNcpUKZqz2nggnXC9SIpMS2hSu73Ft+EM4c+iEOlettimV93FG/wqM Fypyo/AlZOLwxw0X0AGnt6PQDa3mY2aZyrY663kjhEp1MJx3hKMUi6TGrAZnyu+H t1ldr1dAmC/+9qSWKyUw9/i5g18+DFtQHQnVEkOoetaRbydSB+T9shEMZqsdXds9 ZqO0e/Z8tBW6Q3+3jMFcfoWc8FgVMTb//WFcu5Lfv0iKPMER5c6PTQk3thMf16gp 3EnYGKqSz9et/Vd8slxo46YSUUcmuFZ5Yyz3BXYCGt605gZuwCJJ3DShD8D/nvYK 95Urv61yWCnD3VQVURP9f+0ABJoupmq/T22cPpW4ARn/p9mCZ4nRHmasyCXVgy8s 4JYPYCpCzhjqoftUdqa7qfOBcqyZF+vn41ZpH2yA7QPWOLzGcr3bwGo2FF6aSclO +VwStLQrdNBYJpG0wnML5P2OJ3+Y04bh3f0rrk8r7/jzH6BK/r0c4Hz6Pn0r9P9B MByFk5LYm4RyED6ugdh4 =1HmN -----END PGP SIGNATURE----- --MZjPMzvsOPk3qtG6--