From MGoldner@agmednet.com Tue Feb 13 15:55:43 2007 Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id D36349FB5FD for ; Tue, 13 Feb 2007 11:55:43 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 10658-07 for ; Tue, 13 Feb 2007 11:55:21 -0400 (AST) X-Greylist: delayed 00:12:06.086035 by SQLgrey-1.7.4 Received: from boston.agmednet.com (boston.agmednet.com [74.92.47.82]) by postgresql.org (Postfix) with ESMTP id 07CFA9FB80C for ; Tue, 13 Feb 2007 11:55:20 -0400 (AST) X-MimeOLE: Produced By Microsoft Exchange V6.5 Received: from 71.233.123.244 ([71.233.123.244]) by agmednet-dc.boston.agmednet.local ([192.168.67.2]) with Microsoft Exchange Server HTTP-DAV ; Tue, 13 Feb 2007 15:34:32 +0000 User-Agent: Microsoft-Entourage/11.3.3.061214 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C74F84.758B45CC" Content-class: urn:content-classes:message Subject: Is it normal for Autovacuum running continuously? Date: Tue, 13 Feb 2007 10:34:32 -0500 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Is it normal for Autovacuum running continuously? Thread-Index: AcdPhYclxf5jnrt4EducdwAX8gFv1g== From: "Michael Goldner" To: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=2.011 tagged_above=0 required=5 tests=BAYES_50, FORGED_RCVD_HELO, HTML_30_40, HTML_MESSAGE, RCVD_NUMERIC_HELO X-Spam-Level: ** X-Archive-Number: 200702/176 X-Sequence-Number: 24641 This is a multi-part message in MIME format. ------_=_NextPart_001_01C74F84.758B45CC Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I notice in my postgres logfile that autovacuum is running every minute. The server had no overnight activity, yet this has been going on for = days. Overall performance of the database seems to be slow, and I assume that = it is related. I'm running 8.1.4 on Redhat EL4.3. Is this normal for autovacuum? Here is the tail of the log (even though it doesn't say much): [4836---2007-02-13 08:28:28.194 EST]LOG: autovacuum: processing = database "xx" [4859---2007-02-13 08:29:28.200 EST]LOG: autovacuum: processing = database "xx" [4863---2007-02-13 08:30:28.196 EST]LOG: autovacuum: processing = database "xx" [4865---2007-02-13 08:31:28.191 EST]LOG: autovacuum: processing = database "xx" [4870---2007-02-13 08:32:28.201 EST]LOG: autovacuum: processing = database "xx" [4916---2007-02-13 08:34:23.555 EST]LOG: autovacuum: processing = database "xx" [4921---2007-02-13 08:35:23.550 EST]LOG: autovacuum: processing = database "xx" [4923---2007-02-13 08:36:23.555 EST]LOG: autovacuum: processing = database "xx" [4959---2007-02-13 08:37:27.169 EST]LOG: autovacuum: processing = database "xx" [4965---2007-02-13 08:38:27.165 EST]LOG: autovacuum: processing = database "xx" [5057---2007-02-13 08:39:27.178 EST]LOG: autovacuum: processing = database "xx" Thanks, Mike ------_=_NextPart_001_01C74F84.758B45CC Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Is it normal for Autovacuum running continuously?

I notice in my postgres logfile that autovacuum is = running every minute.
The server had no overnight activity, yet this has been going on for = days.
Overall performance of the database seems to be slow, and I assume that = it
is related.

I'm running 8.1.4 on Redhat EL4.3.

Is this normal for autovacuum?

Here is the tail of the log (even though it doesn't say much):

[4836---2007-02-13 08:28:28.194 EST]LOG:  autovacuum: processing = database
"xx"
[4859---2007-02-13 08:29:28.200 EST]LOG:  autovacuum: processing = database
"xx"
[4863---2007-02-13 08:30:28.196 EST]LOG:  autovacuum: processing = database
"xx"
[4865---2007-02-13 08:31:28.191 EST]LOG:  autovacuum: processing = database
"xx"
[4870---2007-02-13 08:32:28.201 EST]LOG:  autovacuum: processing = database
"xx"
[4916---2007-02-13 08:34:23.555 EST]LOG:  autovacuum: processing = database
"xx"
[4921---2007-02-13 08:35:23.550 EST]LOG:  autovacuum: processing = database
"xx"
[4923---2007-02-13 08:36:23.555 EST]LOG:  autovacuum: processing = database
"xx"
[4959---2007-02-13 08:37:27.169 EST]LOG:  autovacuum: processing = database
"xx"
[4965---2007-02-13 08:38:27.165 EST]LOG:  autovacuum: processing = database
"xx"
[5057---2007-02-13 08:39:27.178 EST]LOG:  autovacuum: processing = database
"xx"

Thanks,

Mike

------_=_NextPart_001_01C74F84.758B45CC-- From matthew@tocr.com Tue Feb 13 16:34:41 2007 Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id A8F8A9FB92C for ; Tue, 13 Feb 2007 12:34:41 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 29637-01 for ; Tue, 13 Feb 2007 12:34:23 -0400 (AST) X-Greylist: delayed 00:25:55.921277 by SQLgrey-1.7.4 Received: from out4.smtp.messagingengine.com (out4.smtp.messagingengine.com [66.111.4.28]) by postgresql.org (Postfix) with ESMTP id 17D1E9FB8FE for ; Tue, 13 Feb 2007 12:34:23 -0400 (AST) Received: from out1.internal (unknown [10.202.2.149]) by out1.messagingengine.com (Postfix) with ESMTP id 092791AF347; Tue, 13 Feb 2007 11:08:24 -0500 (EST) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by out1.internal (MEProxy); Tue, 13 Feb 2007 11:08:24 -0500 X-Sasl-enc: /Lo5oyabErRQyBiY7EU+HJ0pWgB4aqr9Pn6EC1vU92FU 1171382902 Received: from [192.168.0.96] (ool-435121e8.dyn.optonline.net [67.81.33.232]) by mail.messagingengine.com (Postfix) with ESMTP id 283ACE512; Tue, 13 Feb 2007 11:08:21 -0500 (EST) Message-ID: <45D1E278.4030602@tocr.com> Date: Tue, 13 Feb 2007 11:08:24 -0500 From: "Matthew T. O'Connor" Organization: Terrie O'Connor Realtors User-Agent: Thunderbird 2.0b2 (Windows/20070116) MIME-Version: 1.0 To: Michael Goldner CC: pgsql-admin@postgresql.org Subject: Re: Is it normal for Autovacuum running continuously? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=BAYES_50 X-Spam-Level: X-Archive-Number: 200702/178 X-Sequence-Number: 24643 Yes, because all these messages really mean is that autovacuum woke up, and looked at database xx, it may or may not have decided to do anything (analyze or vacuum) and judging by the fact that these messages are almost exactly 1 minute apart, I would say that autovacuum never felt the need to take action during this log segment. One of the deficiencies in autovacuum in 8.1 is that it's not easy to know when autovacuum actually did take action. This is somewhat improved in 8.2. Michael Goldner wrote: > I notice in my postgres logfile that autovacuum is running every minute. > The server had no overnight activity, yet this has been going on for days. > Overall performance of the database seems to be slow, and I assume that it > is related. > > I'm running 8.1.4 on Redhat EL4.3. > > Is this normal for autovacuum? > > Here is the tail of the log (even though it doesn't say much): > > [4836---2007-02-13 08:28:28.194 EST]LOG: autovacuum: processing database > "xx" > [4859---2007-02-13 08:29:28.200 EST]LOG: autovacuum: processing database > "xx" > [4863---2007-02-13 08:30:28.196 EST]LOG: autovacuum: processing database > "xx" > [4865---2007-02-13 08:31:28.191 EST]LOG: autovacuum: processing database > "xx" > [4870---2007-02-13 08:32:28.201 EST]LOG: autovacuum: processing database > "xx" > [4916---2007-02-13 08:34:23.555 EST]LOG: autovacuum: processing database > "xx" > [4921---2007-02-13 08:35:23.550 EST]LOG: autovacuum: processing database > "xx" > [4923---2007-02-13 08:36:23.555 EST]LOG: autovacuum: processing database > "xx" > [4959---2007-02-13 08:37:27.169 EST]LOG: autovacuum: processing database > "xx" > [4965---2007-02-13 08:38:27.165 EST]LOG: autovacuum: processing database > "xx" > [5057---2007-02-13 08:39:27.178 EST]LOG: autovacuum: processing database > "xx" > > Thanks, > > Mike > From alvherre@commandprompt.com Tue Feb 13 16:28:03 2007 Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 97F819FB993 for ; Tue, 13 Feb 2007 12:28:03 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-new, port 10024) with ESMTP id 27849-02 for ; Tue, 13 Feb 2007 12:27:53 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from lists.commandprompt.com (host-254.commandprompt.net [207.173.203.254]) by postgresql.org (Postfix) with ESMTP id 635F29FB966 for ; Tue, 13 Feb 2007 12:27:53 -0400 (AST) Received: from perhan.alvh.no-ip.org (216-155-79-222.bk1-dsl.surnet.cl [216.155.79.222]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id l1DGRqA0014538; Tue, 13 Feb 2007 08:27:53 -0800 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id E20D232A1B; Tue, 13 Feb 2007 13:27:49 -0300 (CLST) Date: Tue, 13 Feb 2007 13:27:49 -0300 From: Alvaro Herrera To: Michael Goldner Cc: pgsql-admin@postgresql.org Subject: Re: Is it normal for Autovacuum running continuously? Message-ID: <20070213162749.GC11987@alvh.no-ip.org> Mail-Followup-To: Michael Goldner , pgsql-admin@postgresql.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: ClamAV version 0.88.5, clamav-milter version 0.88.5 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Tue, 13 Feb 2007 08:27:53 -0800 (PST) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.099 tagged_above=0 required=5 tests=AWL, BAYES_40, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200702/177 X-Sequence-Number: 24642 Michael Goldner wrote: > I notice in my postgres logfile that autovacuum is running every minute. > The server had no overnight activity, yet this has been going on for days. > Overall performance of the database seems to be slow, and I assume that it > is related. It is normal. I doubt your performance problem is related to autovacuum. When you say "overall performance seems to be slow", it means you haven't actually measured individual queries and found that they are actually slow, no? > I'm running 8.1.4 on Redhat EL4.3. > > Is this normal for autovacuum? Yes. -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support