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 1iFnmr-0007oE-SA for pgsql-general@arkaria.postgresql.org; Wed, 02 Oct 2019 23:12: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 1iFnmo-0001nD-IM for pgsql-general@arkaria.postgresql.org; Wed, 02 Oct 2019 23:11:58 +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 1iFnmm-0001me-Rx for pgsql-general@lists.postgresql.org; Wed, 02 Oct 2019 23:11:58 +0000 Received: from [64.147.123.21] (helo=wout5-smtp.messagingengine.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iFnmd-0006C2-OW for pgsql-general@lists.postgresql.org; Wed, 02 Oct 2019 23:11:55 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 073044ED; Wed, 2 Oct 2019 19:11:24 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Wed, 02 Oct 2019 19:11:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=Y a8/hHteqf1s9DplOcBnmyo6Qgt/PsO7TbpHD0qEgao=; b=Fh7/yp7Tq8lkkKVkd 7cuOIogxfsa7miG44p5I1/NR8RC+JBjPgWqMuUSYSBgd3vcwJvma/iCTgVsvOZRr KuBbC3vU8Kce720occlwPfhiIZbJl02GitbYUVKXSLzjQMMGK+oZsDCEVH9FL0Q1 tp6HSIY+qJBjbiYAfDMuEF3SCgwaek0GctZQ3ap9+OBm4ME/ImHc02lwDtBo9G/q FXav2YUau3HTdBhCtDha6MxvmIXQF7zXk+JDKlhHZJWTfAZy+jbPcS4MvqUblffP 4yJQ/xn0iEInwP5qHrMGXaXXxifhPSrAam/kfNCzHo95Sc4KZRpUXC4eHKjoalOG wjGHA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=Ya8/hHteqf1s9DplOcBnmyo6Qgt/PsO7TbpHD0qEg ao=; b=rw0wCtCRKyrAUsxsTRZ6d1bZ0547n4DbsIZeAqyyNj+NirQ2PjNU4JjdR 4h0L/lzBpA7S7Ii5R2W/+f26ZS8WzX7nt6Dk4/JKXx3jIjCHv099111fAZ136pXh /020t46VJ1qM8eqKvq2I79ciuQ299y+eyxmvmpmtBzR7frMX5gpxhAzXdSo3Ew7S 0qByK2e/SsQq1FAvfz3Jd56VRl1ZThxQuK2h4Hi3vFYeQn9Vaovt0rTnE/YzjlbP 9vh1FujK+FNXF1lLWo+9jLe4+R9I2+GisMNNSAOEWzMfpHKbqlL59+ZrPalvOdcU cAKsAtDoAyZeS8kh+YHwm8v9zo/SQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrgeejgdduiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhffkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecukfhppeehtddrudeljedrkedtrddvnecurfgrrhgrmhepmhgrihhlfhhrohhmpegr ughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmnecuvehluhhsthgvrhfuih iivgeptd X-ME-Proxy: Received: from ranger.suse (50-197-80-2-static.hfc.comcastbusiness.net [50.197.80.2]) by mail.messagingengine.com (Postfix) with ESMTPA id C853A8005B; Wed, 2 Oct 2019 19:11:23 -0400 (EDT) Subject: Re: performance of pg_upgrade "Copying user relation files" To: Glenn Pierce , pgsql-general@lists.postgresql.org References: From: Adrian Klaver Message-ID: Date: Wed, 2 Oct 2019 16:11:22 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 64.147.123.21 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 10/2/19 3:30 PM, Glenn Pierce wrote: > I have been trying to upgrade postgres 9.5 to 9.6 with pg_upgrade > > Everything seems to start fine but when pg_upgrade gets to "Copying > user relation files" > It takes ages to complete copying. This is going to need more information: 1) What is the pg_upgrade command you are using? 2) Where are you upgrading from/to? 3) What OS, version? > > ie > Each file like > > /var/lib/pgsql/9.5/data/base/24602/25140 > is 1G and taking ~5-10 minutes to copyand that directory is 223G of > about 990 files > > After a couple of hours running pg_upgrade I had to give up. > > looking a iotop I was seeing > > 99% IO load caused by [md0_raid1] > > and only seeing pg_upgrade go to 99% every 3-4 seconds > > I had no other processes using io or high cpu. > > Has anyone got any pointers of what could be the issue ? > > Ps running cp on /var/lib/pgsql/9.5/data/base/24602/25140 to my home > directory is instantaneous > > System is Centos 7 > > Thanks > > -- Adrian Klaver adrian.klaver@aklaver.com