[GENERAL] Calculation for Max_FSM_pages : Any rules of thumb?

2007-11-01 Thread Ow Mun Heng
I just ran a vacuum verbose on the entire DB and this came out. number of page slots needed (274144) exceeds max_fsm_pages (153600) Hence, I've changed the max to 400,000 (pulled it straight out of the air). How does one calculate what's the number needed anyway? Another question is, based on w

Re: [GENERAL] Calculation for Max_FSM_pages : Any rules of thumb?

2007-11-01 Thread Tom Lane
Ow Mun Heng <[EMAIL PROTECTED]> writes: > OK.. Vacuum verbose took 2 hours.. Vacuum full will likely take 2x that > I presume. Probably a lot more, and it'll bloat your indexes while it's at it. Do you have a *reason* to run a vacuum full? I'd suggest using contrib/pgstattuple to get a fix on how

Re: [GENERAL] Calculation for Max_FSM_pages : Any rules of thumb?

2007-11-01 Thread Ow Mun Heng
On Thu, 2007-11-01 at 20:56 -0400, Bill Moran wrote: > Ow Mun Heng <[EMAIL PROTECTED]> wrote: > > > > I just ran a vacuum verbose on the entire DB and this came out. > > > > number of page slots needed (274144) exceeds max_fsm_pages (153600) > > > > Hence, I've changed the max to 400,000 (pulle

Re: [GENERAL] Calculation for Max_FSM_pages : Any rules of thumb?

2007-11-01 Thread Bill Moran
Ow Mun Heng <[EMAIL PROTECTED]> wrote: > > I just ran a vacuum verbose on the entire DB and this came out. > > number of page slots needed (274144) exceeds max_fsm_pages (153600) > > Hence, I've changed the max to 400,000 (pulled it straight out of the > air). How does one calculate what's the n

Re: [GENERAL] Calculation for Max_FSM_pages : Any rules of thumb?

2007-11-01 Thread Ow Mun Heng
On Thu, 2007-11-01 at 21:22 -0400, Tom Lane wrote: > Ow Mun Heng <[EMAIL PROTECTED]> writes: > > OK.. Vacuum verbose took 2 hours.. Vacuum full will likely take 2x that > > I presume. > > Probably a lot more, and it'll bloat your indexes while it's at it. > Do you have a *reason* to run a vacuum

Re: [GENERAL] Calculation for Max_FSM_pages : Any rules of thumb?

2007-11-02 Thread Filip RembiaƂkowski
2007/11/2, Ow Mun Heng <[EMAIL PROTECTED]>: > pgstattuple.. Okay.. anyone have a centos rpm for it? Don't really have > access to a compiler on the (server) machine. don't you have postgresql-contrib package for centos? -- Filip RembiaƂkowski ---(end of broadcast)--

Re: [GENERAL] Calculation for Max_FSM_pages : Any rules of thumb?

2007-11-08 Thread Bill Moran
In response to Vivek Khera <[EMAIL PROTECTED]>: > > On Nov 1, 2007, at 8:51 PM, Ow Mun Heng wrote: > > > Another question is, based on what I've read in the archives (in my > > laptop.. No-Inet conn @ work) Since I've overran my max_FSM, I'm > > basically screwed and will have to do a vacuum ver

Re: [GENERAL] Calculation for Max_FSM_pages : Any rules of thumb?

2007-11-08 Thread Vivek Khera
On Nov 1, 2007, at 8:51 PM, Ow Mun Heng wrote: Another question is, based on what I've read in the archives (in my laptop.. No-Inet conn @ work) Since I've overran my max_FSM, I'm basically screwed and will have to do a vacuum verbose FULL on the entire DB. Crap.. I've seen this repeated many

Re: [GENERAL] Calculation for Max_FSM_pages : Any rules of thumb?

2007-11-12 Thread Ow Mun Heng
On Thu, 2007-11-08 at 12:02 -0500, Bill Moran wrote: > Frequently, when people ask for help because they've exceed max_fsm*, > it's because they're not paying attention to their systems, and therefore > the problem has been occurring for a while before it got so bad that > they couldn't ignore it.

Re: [GENERAL] Calculation for Max_FSM_pages : Any rules of thumb?

2007-11-13 Thread Bill Moran
In response to Ow Mun Heng <[EMAIL PROTECTED]>: > > On Thu, 2007-11-08 at 12:02 -0500, Bill Moran wrote: > > Frequently, when people ask for help because they've exceed max_fsm*, > > it's because they're not paying attention to their systems, and therefore > > the problem has been occurring for a

Re: [GENERAL] Calculation for Max_FSM_pages : Any rules of thumb?

2007-11-18 Thread Ow Mun Heng
On Tue, 2007-11-13 at 09:49 -0500, Bill Moran wrote: > In response to Ow Mun Heng <[EMAIL PROTECTED]>: > > How does one monitor it closely anyway? the warning comes when one does > > a vacuum verbose and with autovacuum turned on, I don't even see it > > anywhere. > > 1) Run vacuum verbose from c

Re: [GENERAL] Calculation for Max_FSM_pages : Any rules of thumb?

2007-11-19 Thread Bill Moran
In response to Ow Mun Heng <[EMAIL PROTECTED]>: > > Even with the regular vacuuming and even a vacuum full ( on my test DB) > I still see that perhaps something is wrong (from the below) > > (I got this gem from the mailling list archives) > hmxmms=> SELECT > c.relname, > c.reltuples::big

Re: [GENERAL] Calculation for Max_FSM_pages : Any rules of thumb?

2007-11-20 Thread Ow Mun Heng
On Mon, 2007-11-19 at 08:24 -0500, Bill Moran wrote: > In response to Ow Mun Heng <[EMAIL PROTECTED]>: > > > > Even with the regular vacuuming and even a vacuum full ( on my test DB) > > I still see that perhaps something is wrong (from the below) > > > > (I got this gem from the mailling list a

Re: [GENERAL] Calculation for Max_FSM_pages : Any rules of thumb?

2007-12-06 Thread Decibel!
On Nov 20, 2007, at 6:14 PM, Ow Mun Heng wrote: On Mon, 2007-11-19 at 08:24 -0500, Bill Moran wrote: In response to Ow Mun Heng <[EMAIL PROTECTED]>: Even with the regular vacuuming and even a vacuum full ( on my test DB) I still see that perhaps something is wrong (from the below) (I got t