Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 260DC4767A2 for ; Wed, 12 Jun 2002 18:37:55 -0400 (EDT) Received: from oblivion.martins.home (12-252-146-123.client.attbi.com [12.252.146.123]) by postgresql.org (Postfix) with ESMTP id 553E84766FF for ; Wed, 12 Jun 2002 18:37:08 -0400 (EDT) Received: from vpmonline.com (IDENT:JUY1SrIoQe0oFANTvJ7CmS1Vf+HMmoBr@localhost.localdomain [127.0.0.1]) by oblivion.martins.home (8.11.6/8.11.6) with ESMTP id g5CMbBS22309 for ; Wed, 12 Jun 2002 16:37:11 -0600 Message-ID: <3D07CD17.5060903@vpmonline.com> Date: Wed, 12 Jun 2002 16:37:11 -0600 From: "Michael G. Martin" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1a) Gecko/20020610 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: UnUsed Tuple Space Huge References: <3D07C958.5090908@vpmonline.com> <13163.1023921146@sss.pgh.pa.us> Content-Type: multipart/alternative; boundary="------------030603020003040407070408" X-Archive-Number: 200206/75 X-Sequence-Number: 4510 --------------030603020003040407070408 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Thanks Tom, That's what I was beginning to think from reading. I just wasn't sure of the correlation between MAX_FSM_PAGES and the actual pages occupied by the table after a full vacuum. 1:1 ?? Any general rules? Thanks, Michael Tom Lane wrote: >"Michael G. Martin" writes: > > >>VACUUM verbose symbol_Data; >>NOTICE: --Relation symbol_data-- >>NOTICE: Pages 767990: Changed 0, Empty 0; Tup 21595176: Vac 0, Keep 0, >> >> > ^^^^^^ > > >>UnUsed 16560877. >> Total CPU 61.94s/6.94u sec elapsed 179.25 sec. >> >> > >That seems to be a couple orders of magnitude above the default size of >the free space map (10000 pages IIRC). How big is your database in >total? You definitely need to increase MAX_FSM_PAGES in >postgresql.conf, but I can't tell how far on the basis of this one >datapoint. > >You will probably want to do a VACUUM FULL to clean out some of the free >space and then see where you really stand on number of pages. > > regards, tom lane > > --------------030603020003040407070408 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Thanks Tom,

That's what I was beginning to think from reading.  I just wasn't sure of the correlation between MAX_FSM_PAGES and the actual pages occupied by the table after a full vacuum.  1:1 ?? Any general rules?

Thanks,
Michael

Tom Lane wrote:
"Michael G. Martin" <michael@vpmonline.com> writes:
  
VACUUM verbose symbol_Data;
NOTICE:  --Relation symbol_data--
NOTICE:  Pages 767990: Changed 0, Empty 0; Tup 21595176: Vac 0, Keep 0, 
    
                 ^^^^^^
  
UnUsed 16560877.
    Total CPU 61.94s/6.94u sec elapsed 179.25 sec.
    

That seems to be a couple orders of magnitude above the default size of
the free space map (10000 pages IIRC).  How big is your database in
total?  You definitely need to increase MAX_FSM_PAGES in
postgresql.conf, but I can't tell how far on the basis of this one
datapoint.

You will probably want to do a VACUUM FULL to clean out some of the free
space and then see where you really stand on number of pages.

			regards, tom lane
  
--------------030603020003040407070408--