Re: What *_mem to increase when running CLUSTER - Mailing list pgsql-performance

From Steve Poe
Subject Re: What *_mem to increase when running CLUSTER
Date
Msg-id 1124978171.11102.12.camel@amd64-laptop-spoe
Whole thread Raw
In response to What *_mem to increase when running CLUSTER  (Andrew Lazarus <andrew@pillette.com>)
List pgsql-performance
Andrew,

On Thu, 2005-08-25 at 12:24 -0700, Andrew Lazarus wrote:
> Should I temporarily increase sort_mem, vacuum_mem, neither, or both
> when doing a CLUSTER on a large (100 million row) table where as many as
> half of the tuples are deadwood from UPDATEs or DELETEs? I have large
> batch (10 million row) inserts, updates, and deletes so I'm not sure
> frequent vacuuming would help.

You may need to experiment with both. What version of Postgres? What is
the size of your database? How many concurrent users? If you're seeing
half of the tuples are dead, I look at checking your max_fsm_pages and
max_fsm_relations after a full vacuum analyze before doing too much with
sort mem.

Your mileage may vary.

Best of luck.

Steve Poe


>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings


pgsql-performance by date:

Previous
From: Andrew Lazarus
Date:
Subject: What *_mem to increase when running CLUSTER
Next
From: Josh Berkus
Date:
Subject: Re: Read/Write block sizes