Re: SAN performance mystery - Mailing list pgsql-performance

From Markus Schaber
Subject Re: SAN performance mystery
Date
Msg-id 449BD6E0.10305@logix-tt.com
Whole thread Raw
In response to SAN performance mystery  (Tim Allen <tim@proximity.com.au>)
Responses Re: SAN performance mystery
List pgsql-performance
Hi, Tim,

Tim Allen wrote:
> One thing that has been
> apparent is that autovacuum has not been able to keep the database
> sufficiently tamed. A pg_dump/pg_restore cycle reduced the total
> database size from 81G to 36G.

Two first shots:

- Increase your free_space_map settings, until (auto)vacuum does not
warn about a too small FSM setting any more

- Tune autovacuum to run more often, possibly with a higher delay
setting to lower the load.

If you still have the original database around,

> Performing the restore took about 23 hours.

Try to put the WAL on another spindle, and increase the WAL size /
checkpoint segments.

When most of the restore time was spent in index creation, increase the
sort mem / maintainance work mem settings.


HTH,
Markus

--
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf.     | Software Development GIS

Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org

pgsql-performance by date:

Previous
From: luchot
Date:
Subject: Occupation bloc in pages of table
Next
From: Markus Schaber
Date:
Subject: Re: SAN performance mystery