Unix Technical Forum

full vacuum - resources - scaling

This is a discussion on full vacuum - resources - scaling within the pgsql Admins forums, part of the PostgreSQL category; --> Hi, I have noticed that my full vacuum and re-index script is taking a day and a half instead ...


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

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 06:14 AM
Mr. Dan
 
Posts: n/a
Default full vacuum - resources - scaling

Hi,

I have noticed that my full vacuum and re-index script is taking a day and a
half instead of 1/2 day.
Recently, the size of my database cluster has doubled to 130 GB. Would
anyone recommend increasing one or more of these to help get my full vacuums
to run a little faster?

Thanks,
~DjK



work memory 49152 KB
shared buffers 65536 (8 KB)
maxfsmpages 480001 (6 bytes each)
maxfsmrelations 30000 (70 bytes each)

effective cache 983040 (8 KB each)



---------------------------(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
  #2 (permalink)  
Old 04-10-2008, 06:14 AM
Alvaro Herrera
 
Posts: n/a
Default Re: full vacuum - resources - scaling

Mr. Dan wrote:
> Hi,
>
> I have noticed that my full vacuum and re-index script is taking a day and
> a half instead of 1/2 day.
> Recently, the size of my database cluster has doubled to 130 GB. Would
> anyone recommend increasing one or more of these to help get my full
> vacuums to run a little faster?


I guess the question is why are you running vacuum full at all. Plain
vacuum should suffice, provided the FSM settings are enough for your
database:

> maxfsmpages 480001 (6 bytes each)
> maxfsmrelations 30000 (70 bytes each)


max_fsm_pages at 480000 are enough to cover 3 GB, if my math is correct.
It may be enough or it may not, depending on the dynamics of your data.

Also with non-full vacuum you may be able to get away with vacuuming
some tables more often.

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

---------------------------(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
  #3 (permalink)  
Old 04-10-2008, 06:14 AM
Andrew Sullivan
 
Posts: n/a
Default Re: full vacuum - resources - scaling

On Tue, May 30, 2006 at 09:44:22AM -0400, Mr. Dan wrote:
> Hi,
>
> I have noticed that my full vacuum and re-index script is taking a day and
> a half instead of 1/2 day.
> Recently, the size of my database cluster has doubled to 130 GB. Would
> anyone recommend increasing one or more of these to help get my full
> vacuums to run a little faster?


What Alvaro said. I'll also point out, however, that in my
experience, VACUUM FULL time does not increase linearly with database
size. I suspect this is because of the cost of reorganising so much
more data, but I haven't done any real analysis of it.

The main thing is, "Don't do vacuum full."

A
--
Andrew Sullivan | ajs@crankycanuck.ca
The whole tendency of modern prose is away from concreteness.
--George Orwell

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

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 02:45 PM.


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