X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 6D9A8D1E104 for ; Wed, 24 Mar 2004 11:34:12 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 36326-06 for ; Wed, 24 Mar 2004 07:34:11 -0400 (AST) Received: from mail.unisoftbg.com (mail.unisoftbg.com [194.12.229.207]) by svr1.postgresql.org (Postfix) with ESMTP id 032E4D1EC0F for ; Wed, 24 Mar 2004 07:34:05 -0400 (AST) Received: (qmail 24794 invoked by uid 507); 24 Mar 2004 12:38:48 -0000 Received: from unknown (HELO t1.unisoftbg.com) (pginfo%t1.unisoftbg.com@194.12.229.193) by 0 with SMTP; 24 Mar 2004 12:38:48 -0000 Message-ID: <406160DF.44D0988C@t1.unisoftbg.com> Date: Wed, 24 Mar 2004 11:20:15 +0100 From: pginfo X-Mailer: Mozilla 4.03 [en] (Win95; I) MIME-Version: 1.0 To: "pgsql-performance@postgresql.org" Subject: slow vacuum performance Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=BAYES_20, RCVD_IN_DSBL, TO_ADDRESS_EQ_REAL X-Spam-Level: X-Archive-Number: 200403/345 X-Sequence-Number: 6201 Hi, I am running pg 7.4.1 on linux box. I have a midle size DB with many updates and after it I try to run vacuum full analyze. It takes about 2 h. If I try to dump and reload the DB it take 20 min. How can I improve the vacuum full analyze time? My configuration: shared_buffers = 15000 # min 16, at least max_connections*2, 8KB each sort_mem = 10000 # min 64, size in KB vacuum_mem = 32000 # min 1024, size in KB effective_cache_size = 40000 # typically 8KB each #max_fsm_pages = 20000 # min max_fsm_relations*16, 6 bytes each #max_fsm_relations = 1000 # min 100, ~50 bytes each regards, ivan.