Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YpFGN-0008DR-3X for pgsql-admin@arkaria.postgresql.org; Mon, 04 May 2015 12:14:19 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YpFGM-0006EE-Cl for pgsql-admin@arkaria.postgresql.org; Mon, 04 May 2015 12:14:18 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YpFGL-0006E7-AT for pgsql-admin@postgresql.org; Mon, 04 May 2015 12:14:17 +0000 Received: from mout.web.de ([212.227.17.11]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.84) (envelope-from ) id 1YpFGE-0004zr-Cc for pgsql-admin@postgresql.org; Mon, 04 May 2015 12:14:16 +0000 Received: from vm-mailsrv.lan.net ([87.155.100.102]) by smtp.web.de (mrweb103) with ESMTPSA (Nemesis) id 0MIN2h-1YpX2O1wHH-004CvY for ; Mon, 04 May 2015 14:14:07 +0200 Received: from localhost (localhost [127.0.0.1]) by vm-mailsrv.lan.net (Postfix) with ESMTP id 5DA31DF15 for ; Mon, 4 May 2015 14:14:06 +0200 (CEST) X-Spam-Flag: NO X-Spam-Score: -2.898 X-Spam-Level: X-Spam-Status: No, score=-2.898 tagged_above=-99.9 required=6.31 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9, FREEMAIL_FROM=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no Received: from vm-mailsrv.lan.net ([127.0.0.1]) by localhost (vm-mailsrv.lan.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KVKF28whJ6rS for ; Mon, 4 May 2015 14:14:01 +0200 (CEST) Received: from neslonek.homeunix.org (vm-webapp-ext.dmz-lan.net [192.168.0.100]) by vm-mailsrv.lan.net (Postfix) with ESMTP id 885A1DF00 for ; Mon, 4 May 2015 14:14:01 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Date: Mon, 04 May 2015 14:14:01 +0200 From: Jan Lentfer To: Subject: Re: =?UTF-8?Q?pg=5Fdump=20and=20pg=5Frestore=20with=20mul?= =?UTF-8?Q?tiple=20streams=20does=20Not=20seem=20to=20improve=20overall=20?= =?UTF-8?Q?times?= In-Reply-To: References: Message-ID: X-Sender: Jan.Lentfer@web.de User-Agent: Roundcube Webmail/0.7.2 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K0:kuFjTxOOQzYSvGOdlqSkOX9M7gwtujer+J0auRUbvaw89d9X4Ts DtoGuQmFRYrukAmm8d6lnbG+JcZu0lx8RWE9Cdw2HJfwl04VwDnjCLhEoHqBchbNuLHUUnr HbsngMDAUR0JnsMtas6DxHpHSkr4HilZsG3ibjfAi2LSRegfycqyDtdohcr58X2uk2eL+ZY /Z4nrFpzr+G0qQ17xVD4Q== X-UI-Out-Filterresults: notjunk:1; X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Am 2015-05-01 17:49, schrieb Scott Marlowe: > On Fri, May 1, 2015 at 9:16 AM, Susan K. McClure [1]> wrote: > >> Running postgresql 9-4 on REHL 7 system. I am trying to speed up >> pg_dump and pg_restore by >> using a postgresql.conf with various performance options set, and >> the --jobs option to force multiple >> streams.=C2=A0 But various tests, with various "--jobs=3D" =C2=A0numbers= only >> achieve at most a 1 minute improvement >> in elapsed time versus doing pg_dump or pg_restore with no "--jobs" >> option and no postgresql.conf with performance >> options.=C2=A0 Am I missing some key option(s) to improve things??=C2=A0 >> =C2=A0 >> The DB in question is ~25GB.=C2=A0 The processor has 24 Cpus, 12 cores >> =C2=A0 >> I have tried with "--jobs =3D 8, 12, and 20"=C2=A0 with little or no >> discernible improvements. > > So have you tried 2 jobs first? Id see how 1, 2, 3, 4 etc work. See=20 > if > 2 is faster than 1, then 3 faster than 2 etc. > > Most of the time, unless youve got a really fast IO subsystem > increasing the --jobs doesnt make a big difference as a lot of the > work is sequential. Also on restores I think the extra jobs part only > kicks in for index builds. It does parallel COPY, too. Jan --=20 Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin