From: | Michael Fuhr <mike(at)fuhr(dot)org> |
---|---|
To: | Marcus Engene <mengpg2(at)engene(dot)se> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: performance; disk bad or something? |
Date: | 2007-04-07 08:41:37 |
Message-ID: | 20070407084137.GA73067@winnie.fuhr.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Sat, Apr 07, 2007 at 09:28:58AM +0200, Marcus Engene wrote:
> INFO: "apa_item_common": removed 9028 row versions in 3651 pages
> DETAIL: CPU 0.24s/0.36u sec elapsed 30.69 sec.
> INFO: "apa_item_common": found 9028 removable, 12863 nonremovable row
> versions in 14489 pages
> DETAIL: 0 dead row versions cannot be removed yet.
> There were 76646 unused item pointers.
How often does this table receive updates and deletes and how often
are you vacuuming it? It averages less than one row per page (12863
nonremovable row versions in 14489 pages) and appears to have become
quite bloated with dead rows sometime in the past (76646 unused
item pointers). Use CLUSTER or VACUUM FULL + REINDEX to compact
the table and run ANALYZE afterwards to update the statistics, then
make sure you're vacuuming it often enough to keep it from becoming
bloated again.
Is your free space map sufficiently sized? If you do a database-wide
VACUUM VERBOSE, what are the last few lines of the output that
mention free space map settings?
--
Michael Fuhr
From | Date | Subject | |
---|---|---|---|
Next Message | Martijn van Oosterhout | 2007-04-07 11:13:41 | Re: New to concurrency |
Previous Message | filippo | 2007-04-07 08:13:52 | Re: perl DBI: problems searching text strings with ' symbol (es d'ambrose) |