pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bryan White <nicktook@gmail.com>
To: pgsql-admin@postgresql.org
Subject: Re: pg_restore error
Date: Sat, 17 Apr 2010 18:09:24 -0400
Message-ID: <l2w649cb4eb1004171509p1c20174eg9940313652c2bd07@mail.gmail.com> (raw)
In-Reply-To: <4BCA2DE0.5090602@pinpointresearch.com>
References: <g2z649cb4eb1004170931o39755d41k66e5be957fc89591@mail.gmail.com>
	<4BC9F464.20901@pinpointresearch.com>
	<v2m649cb4eb1004171308ve81536f2qf125a7722447c4ed@mail.gmail.com>
	<4BCA2DE0.5090602@pinpointresearch.com>

On Sat, Apr 17, 2010 at 5:53 PM, Steve Crawford
<scrawford@pinpointresearch.com> wrote:
> Bryan White wrote:
>>
>> ...
>> The new server is a dual socket Nahalem.  8 cores, 16 threads, 48 GB
>> ram, 2 WAL drives in RAID1 and 12 database drives in RAID10.
>>
>
> I would try setting -j higher - in your case try 8 for starters. Also turn
> off fsync and autovacuum (and turn them back on !!!). See these and more
> tips at:
> http://it.toolbox.com/blogs/database-soup/using-84-parallel-restore-with-your-83-or-82-database-3157...
>

Success. The -j6 run completed.  The time to restore went from 152
minutes to 45 minutes.  I was already doing some of the things on the
above page.  I plan on implementing others and than do a few test runs
to find the optimal number of jobs.

Thanks!

-- 
Bryan White



view thread (26+ messages)  latest in thread

Message-ID: <l2w649cb4eb1004171509p1c20174eg9940313652c2bd07@mail.gmail.com>
Permalink:  ../l2w649cb4eb1004171509p1c20174eg9940313652c2bd07@mail.gmail.com/
Also on:    postgresql.org/message-id/l2w649cb4eb1004171509p1c20174eg9940313652c2bd07@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: nicktook@gmail.com
  Subject: Re: pg_restore error
  In-Reply-To: <l2w649cb4eb1004171509p1c20174eg9940313652c2bd07@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox