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 1iFnrT-00082p-JG for pgsql-general@arkaria.postgresql.org; Wed, 02 Oct 2019 23:16: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 1iFnrS-00077u-En for pgsql-general@arkaria.postgresql.org; Wed, 02 Oct 2019 23:16: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 1iFnrS-00077c-1f for pgsql-general@lists.postgresql.org; Wed, 02 Oct 2019 23:16:46 +0000 Received: from [64.147.123.21] (helo=wout5-smtp.messagingengine.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iFnrP-0007cx-5N for pgsql-general@lists.postgresql.org; Wed, 02 Oct 2019 23:16:44 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 975B656A; Wed, 2 Oct 2019 19:16:31 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Wed, 02 Oct 2019 19:16:31 -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=N VRf3ErQR+1goQ4hf6IJclNkLESY5ofa3cRFv2beCbE=; b=Ogiqj6PEWM+w72kDJ KN4goRwbBKVReeZN/t87h0XIXqNImjaf7siJRWkAm/Llpr7N2xeyvuLerJHrRgZw iTOLmyTWYWmOOi+BLqKwJzDSRh4tsfrbSCi1NS1Xv2t82lptBYf/Rd8rKsFamZkS Bhazh5TweY6Jtw38772pkn7czhWfccImX/VGRZO/FzHqOzgBFTWKwElZmXc3MWNS gWGnZonjRjg7aVYv9FQXnEmwsyPH1LMSztlPH0dxeMHjdkSLwhTlaQPXaGALusul YnG4ngXD25UVW5ePourwNbb/iVqHx57PA++BXe2ZiVzwoX752OoZcFr5W0iA2s0P t+law== 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=NVRf3ErQR+1goQ4hf6IJclNkLESY5ofa3cRFv2beC bE=; b=UbgIW3T8Fc4RVlJAX7v2S8U5mTmrACciF6Sl78rBCOm/hYz2DUR2+ubH3 85hgHQa6doeyaRuVEw47idL0xNhm8kDNavJJsSoF10zluSElKxasK594COQMlJyf 41ogILGDp1SJx2WD6Eb3MPPLwsMOPc5pef5o3ljSrmvU0bvbzIlUg5nttg+Pc747 6WqOnXkdq2R5U8P1q7S/xhHEzaO54WTDOPk3+NxdjDD6CvBi+ZqymMqSfZ6VurRs +Y+L48H1JHZv8GZZRiwmqs3O40jdkUJU+9RkyOYlZDhLweGjAlsSS/Ll22h0JX9+ s1Dpvk2LEYIAB/yKbowoSltzuPRWQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrgeejgddujecutefuodetggdotefrodftvf 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 6342180062; Wed, 2 Oct 2019 19:16:30 -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:16:29 -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. Adding to previous list: 4) Which pg_upgrade version did you use, 9.5 or 9.6? > > 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