Unix Technical Forum

tweak config file to increase pg_dump speed on pg 8.02

This is a discussion on tweak config file to increase pg_dump speed on pg 8.02 within the pgsql Admins forums, part of the PostgreSQL category; --> Hi, It's taken 4 hours so far to dump a 3.5 GB database on a local disk. How can ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Admins

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 05:05 AM
D Kavan
 
Posts: n/a
Default tweak config file to increase pg_dump speed on pg 8.02

Hi,

It's taken 4 hours so far to dump a 3.5 GB database on a local disk.
How can I increase performance?

We have the work memory & effective cach size are set to 16 MB. Our
maintenance_work_memory is set to 256 MB. Thanks for any help.
For the record we are running with dual 64-bit chips with 8 GB of memory. I
have noticed that the only 6.5 % of the memory is being used for this and
the load is only at just over 1.

~DjK



---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 05:05 AM
Scott Marlowe
 
Posts: n/a
Default Re: tweak config file to increase pg_dump speed on pg 8.02

On Fri, 2005-08-05 at 14:28, D Kavan wrote:
> Hi,
>
> It's taken 4 hours so far to dump a 3.5 GB database on a local disk.
> How can I increase performance?
>
> We have the work memory & effective cach size are set to 16 MB. Our
> maintenance_work_memory is set to 256 MB. Thanks for any help.
> For the record we are running with dual 64-bit chips with 8 GB of memory. I
> have noticed that the only 6.5 % of the memory is being used for this and
> the load is only at just over 1.


Sounds like your machine is I/O starved. What's your CPU utilization?

What's your shared_buffers set to? (not that it'll usually help a lot in
a backup usually, but if there's a lot of other access going on it
might)

How much memory is the KERNEL using as cache? PostgreSQL doesn't really
use a lot of memory by the way, relying on the kernel to cache for it.

You might wanna crank up effective_cache_size. That setting doesn't
allocate anything, it tells the planner about how much memory your OS is
using to cache the postgresql dataset. on a dedicated pgsql server with
8 gig ram, I'd expect it to be equal to about 7.5gig/8192.

Are you dumping to the same drive your database is on? Often dumping to
another drive helps a lot too.

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:48 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com