Re: Vacuum ALL FULL

Lists: pgsql-performance
From: S Arvind <arvindwill(at)gmail(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Vacuum ALL FULL
Date: 2009-06-06 22:36:13
Message-ID: abf9211d0906061536w695c9813ybd21838f485135bf@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-performance

Found a notice after completing the
vacuumdb -p 5433 -- all --analyze --full -v
max_fsm_relation = 1400 in postgresql.conf
Thou all our 50 db individually have less then 1400 relation , when it
completes , there was NOTICE that increase the max_fsm_relation.
INFO: free space map contains 10344 pages in 1400 relations
DETAIL: A total of 25000 page slots are in use (including overhead).
54304 page slots are required to track all free space.
Current limits are: 25000 page slots, 1400 relations, using 299 KB.
NOTICE: max_fsm_relations(1400) equals the number of relations checked
HINT: You have at least 1400 relations. Consider increasing the
configuration parameter "max_fsm_relations".
VACUUM

But there nearly only 300 tables in that db. Is the free space map is per
DB or for all DB. Can i know the reason of this problem?

-Arvind S

*

"Many of lifes failure are people who did not realize how close they were to
success when they gave up."
-Thomas Edison*


From: S Arvind <arvindwill(at)gmail(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: Vacuum ALL FULL
Date: 2009-06-06 22:40:03
Message-ID: abf9211d0906061540u3ebdf884w2572f47a5f989890@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-performance

should i have to increase max_fsm_relations more. If yes why i have to ?
Since number of relation is less only.

--Arvind S

On Sun, Jun 7, 2009 at 4:06 AM, S Arvind <arvindwill(at)gmail(dot)com> wrote:

> Found a notice after completing the
> vacuumdb -p 5433 -- all --analyze --full -v
> max_fsm_relation = 1400 in postgresql.conf
> Thou all our 50 db individually have less then 1400 relation , when it
> completes , there was NOTICE that increase the max_fsm_relation.
> INFO: free space map contains 10344 pages in 1400 relations
> DETAIL: A total of 25000 page slots are in use (including overhead).
> 54304 page slots are required to track all free space.
> Current limits are: 25000 page slots, 1400 relations, using 299 KB.
> NOTICE: max_fsm_relations(1400) equals the number of relations checked
> HINT: You have at least 1400 relations. Consider increasing the
> configuration parameter "max_fsm_relations".
> VACUUM
>
> But there nearly only 300 tables in that db. Is the free space map is per
> DB or for all DB. Can i know the reason of this problem?
>
>
> -Arvind S
>
> *
>
> "Many of lifes failure are people who did not realize how close they were
> to success when they gave up."
> -Thomas Edison*
>


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: S Arvind <arvindwill(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Vacuum ALL FULL
Date: 2009-06-06 22:45:08
Message-ID: 29846.1244328308@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-performance

S Arvind <arvindwill(at)gmail(dot)com> writes:
> But there nearly only 300 tables in that db. Is the free space map is per
> DB or for all DB. Can i know the reason of this problem?

It's across all DBs in the installation.

regards, tom lane


From: S Arvind <arvindwill(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Vacuum ALL FULL
Date: 2009-06-06 22:54:29
Message-ID: abf9211d0906061554o1fd1f644t54c677bab21035d3@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-performance

Thanks Tom,
So do i have to increase the max_fsm_relation based on (Average_no_relation
per db * number of db)? if so it will be very high since in our one db
server we have 200 db with average 800 tables in each db. What is the value
we have to give for this kind of server?

-Arvind S

On Sun, Jun 7, 2009 at 4:15 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> S Arvind <arvindwill(at)gmail(dot)com> writes:
> > But there nearly only 300 tables in that db. Is the free space map is
> per
> > DB or for all DB. Can i know the reason of this problem?
>
> It's across all DBs in the installation.
>
> regards, tom lane
>


From: S Arvind <arvindwill(at)gmail(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: Vacuum ALL FULL
Date: 2009-06-06 22:59:53
Message-ID: abf9211d0906061559l4e77783cy1d18f5f3f0e087d0@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-performance

So is it no use running
vacuumdb --all --analyze --full
as fsm map is full?

-Arvind S

On Sun, Jun 7, 2009 at 4:24 AM, S Arvind <arvindwill(at)gmail(dot)com> wrote:

> Thanks Tom,
> So do i have to increase the max_fsm_relation based on (Average_no_relation
> per db * number of db)? if so it will be very high since in our one db
> server we have 200 db with average 800 tables in each db. What is the value
> we have to give for this kind of server?
>
> -Arvind S
>
>
>
>
> On Sun, Jun 7, 2009 at 4:15 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>
>> S Arvind <arvindwill(at)gmail(dot)com> writes:
>> > But there nearly only 300 tables in that db. Is the free space map is
>> per
>> > DB or for all DB. Can i know the reason of this problem?
>>
>> It's across all DBs in the installation.
>>
>> regards, tom lane
>>
>
>


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: S Arvind <arvindwill(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Vacuum ALL FULL
Date: 2009-06-06 23:02:33
Message-ID: 236.1244329353@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-performance

S Arvind <arvindwill(at)gmail(dot)com> writes:
> So is it no use running
> vacuumdb --all --analyze --full
> as fsm map is full?

Well, it's not of *no* use. But you'd be well advised to crank up the
FSM size.

regards, tom lane


From: S Arvind <arvindwill(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Vacuum ALL FULL
Date: 2009-06-06 23:09:40
Message-ID: abf9211d0906061609q2551ed66n975b243eaa108a38@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-performance

Sorry Tom, i cant able to understand. Should i have to increse the
max_fsm_rel based on formula and re-run the vacuum command? The main reason
for vacuum for us is to increase performance of our db. Please tell value
for our kind of server(as provided in previous mail) ?

-- Arvind S

On Sun, Jun 7, 2009 at 4:32 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> S Arvind <arvindwill(at)gmail(dot)com> writes:
> > So is it no use running
> > vacuumdb --all --analyze --full
> > as fsm map is full?
>
> Well, it's not of *no* use. But you'd be well advised to crank up the
> FSM size.
>
> regards, tom lane
>
> --
> Sent via pgsql-performance mailing list (pgsql-performance(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-performance
>


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: S Arvind <arvindwill(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Vacuum ALL FULL
Date: 2009-06-06 23:12:31
Message-ID: 411.1244329951@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-performance

S Arvind <arvindwill(at)gmail(dot)com> writes:
> So do i have to increase the max_fsm_relation based on (Average_no_relation
> per db * number of db)? if so it will be very high since in our one db
> server we have 200 db with average 800 tables in each db. What is the value
> we have to give for this kind of server?

About 160000.

One wonders whether you shouldn't rethink your schema design. Large
numbers of small tables usually are not a good use of SQL. (I assume
they're small, else you'd have had serious bloat problems already from
your undersized max_fsm_pages setting ...)

regards, tom lane


From: S Arvind <arvindwill(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Vacuum ALL FULL
Date: 2009-06-06 23:28:49
Message-ID: abf9211d0906061628gb79947eg2a200f83b86a8055@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-performance

Thanks Tom Lane,
I think we must have to consider about your last mail words. But now
reducing the table is mearly impossible, but very thanks for advice , we
will try it in future.

-Arvind S

On Sun, Jun 7, 2009 at 4:42 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> S Arvind <arvindwill(at)gmail(dot)com> writes:
> > So do i have to increase the max_fsm_relation based on
> (Average_no_relation
> > per db * number of db)? if so it will be very high since in our one db
> > server we have 200 db with average 800 tables in each db. What is the
> value
> > we have to give for this kind of server?
>
> About 160000.
>
> One wonders whether you shouldn't rethink your schema design. Large
> numbers of small tables usually are not a good use of SQL. (I assume
> they're small, else you'd have had serious bloat problems already from
> your undersized max_fsm_pages setting ...)
>
> regards, tom lane
>
> --
> Sent via pgsql-performance mailing list (pgsql-performance(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-performance
>