Re: poor VACUUM performance on large tables

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: jan(dot)l(dot)peterson(at)gmail(dot)com
Cc: pgsql-performance(at)postgresql(dot)org, "Thomas F(dot) O'Connell" <tfo(at)sitening(dot)com>
Subject: Re: poor VACUUM performance on large tables
Date: 2005-09-07 01:07:27
Message-ID: 22356.1126055247@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Jan Peterson <jan(dot)l(dot)peterson(at)gmail(dot)com> writes:
> Based on this, it looks like we could stand to bump up our FSM another
> couple hundred thousand. Does it buy us anything to reduce the number
> of FSM relations from the default of 1000?

Not a lot; as the comment says, those slots are only about 50 bytes
each. (I think the true figure is closer to 70, according to some
measurements I did recently on CVS tip, but in any case it's less than
100 bytes apiece.) Still, a byte saved is a byte earned ...

> It looks like we are using the defaults for work_mem (1024) and
> maintenance_work_mem (16384). We could certainly bump these up. Is
> there a good way to determine what settings would be reasonable?

I'd bump up maintenance_work_mem by a factor of 10 and see if it makes a
difference. It should reduce the number of passes over the indexes when
vacuuming up lots of deleted rows. If you have lots of RAM you might be
able to increase it more, but try that for starters.

regards, tom lane

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Christopher Kings-Lynne 2005-09-07 03:07:04 Re: Poor performance of delete by primary key
Previous Message Jan Peterson 2005-09-07 00:54:24 Re: poor VACUUM performance on large tables