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 1iIuNq-0003F1-Dq for pgsql-general@arkaria.postgresql.org; Fri, 11 Oct 2019 12:51:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iIuNo-0003zP-C7 for pgsql-general@arkaria.postgresql.org; Fri, 11 Oct 2019 12:51:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iIuNo-0003zG-2V for pgsql-general@lists.postgresql.org; Fri, 11 Oct 2019 12:51:00 +0000 Received: from tamriel.snowman.net ([2001:470:e38f::11]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iIuNk-0004Zj-KR for pgsql-general@postgresql.org; Fri, 11 Oct 2019 12:50:59 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 7B65A5F79F; Fri, 11 Oct 2019 08:50:53 -0400 (EDT) Date: Fri, 11 Oct 2019 08:50:53 -0400 From: Stephen Frost To: Ajay Pratap Cc: Postgres General Subject: Re: Pgbackrest backup is too slow Message-ID: <20191011125053.GF6962@tamriel.snowman.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="0BPeqGCvc7m/ZdmG" 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 --0BPeqGCvc7m/ZdmG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Greetings, * Ajay Pratap (ajaypratap@ameyo.com) wrote: > I have a Centos 7 server which runs Postgresql 10.7. I am using pgbackrest > to take db backup. > Problem is backup is too slow. Have you tried running 'top' to see what's going on? > My data dir size is 9.6G and full backup runtime is 22 mins > I also tried using process-max=3, full backup runtime = 21 mins Erm, those numbers don't make any sense to me- as an example, we regularly back up a 12GB database, from Dallas to San Fran, in 5 minutes. I see you're requesting a checkpoint to start immediately, but how long does the checkpoint actually take to complete? Have you looked at your PG logs..? Have you tried running 'top' and then running the backup and looked to see what's going on? Is the CPU at 100%? Are all the processes stuck in 'D' state all the time (meaning you don't have enough i/o resources), or...? > In production we have a database of size more than 500GB. It would not be > feasible for me to use it as it is.pgbackrest version is > 2.18-1.rhel7.x86_64. > installed from pgdg yum repo. Given sufficient resources, we've seen pgbackrest push over 1TB/hour, so there is definitely something strange going on here. Thanks, Stephen --0BPeqGCvc7m/ZdmG Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJdoHqtAAoJEO1sijiDR2RVLkIP/ix131VOS7cUBYEC0ihX/HNf G8GHkmAom2rTP6KKC4I7gmoougxmQm+8C6VDCkUnH+B7sdfwtGWcHWbqiFk8qkSL VP6HKSYRZvEoIZu632IVzcKnNXRfMhD4YCElTRNo9TgvriRLB9zhVGaqpxpmBTsb Dx6HSAymQR7FZooI3CELOV3NQF3b3bmNJZCxCmc44LCuDOfDJam36j7yW+56S9yM eayNeYKYqs6rzMepOj+ekYOk80JJ4ktpYVIorBKtBcO86PI8fuW6770OOA2yqhfO qLZ8FM0QpSTyJ7KDs6aLgpNcRynJVPTh3BpDdepEuMNPVO7dc1ItAq/OIG0dqKcD zlab1ON8GFnalj5SX1Y7dTrTcRpzHPIKCUE6HHRkpboK0/m/mJVR/vR16brLkpcG wKat3XVT6rAC+NQn130Z/r8qEzJlkjLzWYJiGGBKLCHc5LUuWBQ1oENhYfI4FcEG 8sj0+7mdlsdDDn2xqffVH2ajoKiuWvs2oWD+nG36GHfiV6oXaYxkIy0mW3D06uDK KN58qNEe+d9IWP/kE6bosSfyO8A9XW3XtZBS8++LYV/sSgdpJYHwjiLti5k1J9lc M4PEQggxcVSXcu1ceP57XAmiiI2CZ9z5AY3yGv5EPUOg1H8867DdjxD1yIjE5IsF rRdM8D5DYlqE6H+LHnth =CD/4 -----END PGP SIGNATURE----- --0BPeqGCvc7m/ZdmG--