Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 160182E3C09 for ; Thu, 24 Jan 2008 11:54:38 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 05793-01-10 for ; Thu, 24 Jan 2008 11:54:31 -0400 (AST) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.226]) by postgresql.org (Postfix) with ESMTP id 196FA2E3B73 for ; Thu, 24 Jan 2008 11:48:06 -0400 (AST) Received: by wx-out-0506.google.com with SMTP id r21so159334wxc.28 for ; Thu, 24 Jan 2008 07:48:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=e7IBXa0ke0z3LvA1xvZMH6lCfxuiu47Ni+k8rRFI1Y4=; b=SZAfEiYgcd6xccg7TOLhs92wWKp71n2epv2oxSau7HSGT0+ZOmPeYus7xBl9ZN7Q8IkB25VXQcS214Ko5sVdh40gELYo89qQkL8RK1YR0pBaceFU5KeZREYL8DGZVyXE9pmvHAcB4nUILvA1lOKsQ0OmJXu4mIlnUE1l9qVg+Tc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=m8/So11sQd06FCd83ayKcMX8RQBGgbuZRg+wZFu0ee0ls4G2fRwuRBVNw/jxIr2Ir7T3TCXI0+grb6GAPER+funAs4H8e/6KvL9hiDjEm+nKXCR8x8AbYr0jhErohZvfRUiyr/aZ0aNDF/hbESH45eY+q6pVn+xiDmsdojHXecI= Received: by 10.114.111.1 with SMTP id j1mr899663wac.138.1201189684196; Thu, 24 Jan 2008 07:48:04 -0800 (PST) Received: by 10.114.133.5 with HTTP; Thu, 24 Jan 2008 07:48:04 -0800 (PST) Message-ID: Date: Thu, 24 Jan 2008 09:48:04 -0600 From: "Scott Marlowe" To: "Thomas Lozza" Subject: Re: Vacuum and FSM page size Cc: pgsql-performance@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200801/214 X-Sequence-Number: 28453 On Jan 23, 2008 12:29 PM, Thomas Lozza wrote: > Auto vacuum is enabled. Here are the settings: > > autovacuum = true > autovacuum_naptime = 900 > autovacuum_vacuum_threshold = 2000 > autovacuum_analyze_threshold = 1000 > autovacuum_vacuum_scale_factor = 0.25 > autovacuum_analyze_scale_factor = 0.18 > autovacuum_vacuum_cost_delay = 150 > autovacuum_vacuum_cost_limit = 120 > > A manual vacuum takes very long (around 4 days), so maybe the cost delay > and limit or too high. Your autovacuum_vacuum_cost_delay is REALLY high. Try setting it to 10 or 20 and see if that helps. What is your plain old vacuum_cost_delay set to?