Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1foCgV-0006ub-6D for pgsql-admin@arkaria.postgresql.org; Fri, 10 Aug 2018 19:02:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1foCgT-0005YK-Jm for pgsql-admin@arkaria.postgresql.org; Fri, 10 Aug 2018 19:02:49 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1foCgT-0005YD-8v for pgsql-admin@lists.postgresql.org; Fri, 10 Aug 2018 19:02:49 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1foCgQ-0007qE-F0 for pgsql-admin@lists.postgresql.org; Fri, 10 Aug 2018 19:02:47 +0000 Received: from bruce by momjian.us with local (Exim 4.84_2) (envelope-from ) id 1foCgP-0007jM-Q6; Fri, 10 Aug 2018 15:02:45 -0400 Date: Fri, 10 Aug 2018 15:02:45 -0400 From: Bruce Momjian To: Sohel Tamboli Cc: Ron , pgsql-admin@lists.postgresql.org Subject: Re: Upgrade postgresql from 9.1 to 9.6 Message-ID: <20180810190245.GB7840@momjian.us> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Tue, Jul 24, 2018 at 10:36:34AM +0530, Sohel Tamboli wrote: > Hi Ron,  > > Thanks!!  > I tried to grep all the process owned by postgres as well, but got same > results.  No other process are active other than two threads of pg_upgrade.  pg_upgrade can only parallelize a few things --- from the docs: The option allows multiple CPU cores to be used for copying/linking of files and to dump and reload database schemas in parallel; My guess is that there were not more than two things that could be parallelized. --------------------------------------------------------------------------- > > Thanks,  > Sohel > > On 23-Jul-2018 10:53 pm, "Ron" wrote: > > I'd grep for all processes owned by postgres, since the pg_upgrade > processes probably spawn children. > > > On 07/23/2018 12:14 PM, Sohel Tamboli wrote: > > Hi, > > I am trying to upgrade my postgresql database from version 9.1 to 9.6 > using pg_upgrade utility. > I have started this activity with 6 threads and running with no issues > but I can see only 2 active threads of pg_upgrade  when checked on OS > using "ps -ef| grep pg_upgrade" which might slow down my upgrade > process. > Is there any limit of adding jobs in "-j" parameter in pg_upgrade > utility? > Or is there any settings that I need to configure in postgresql.conf > file? > > Below are the configuration of my server: > OS : Amazon Linux > RAM: 64GB > CPU: 16 > DB size : 5 TB > Upgrade utility : pg_upgrade > Jobs: 6 > Issue : only 2 threads of pg_upgrade are active > > Appreciate your help!! > > Thanks, > Sohel > > > -- > Angular momentum makes the world go 'round. > > > -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Ancient Roman grave inscription +