X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id B3DE2D7827 for ; Wed, 24 Aug 2005 16:44:28 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 79718-01 for ; Wed, 24 Aug 2005 19:44:25 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id EF960D6F72 for ; Wed, 24 Aug 2005 16:44:24 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j7OJiOkJ008336; Wed, 24 Aug 2005 15:44:24 -0400 (EDT) To: Ivan Cc: pgsql-admin@postgresql.org Subject: Re: help me to explain database behaviour after vacuum. In-reply-to: <15110635069.20050824195044@mail.ru> References: <15110635069.20050824195044@mail.ru> Comments: In-reply-to Ivan message dated "Wed, 24 Aug 2005 19:50:44 +0400" Date: Wed, 24 Aug 2005 15:44:23 -0400 Message-ID: <8335.1124912663@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 required=5 tests=[AWL=0.006] X-Spam-Level: X-Archive-Number: 200508/307 X-Sequence-Number: 18626 Ivan writes: > As you can see, disk usage stop grows for several hours > (3-5) after vacuum, then start again. You don't have max_fsm_pages set large enough. Note the output at the end of the VACUUM printout: > INFO: free space map: 67 relations, 20713 pages stored; 29872 total pages needed > ондпнамн: Allocated FSM size: 1000 relations + 20000 pages = 186 kB shared memory. 30000 instead of 20000 would be enough at the moment, but I'd suggest going to 100000 to give yourself some breathing room. regards, tom lane