Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 862626332F2 for ; Sat, 1 May 2010 20:21:58 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 21127-02 for ; Sat, 1 May 2010 23:21:50 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.illumen.com (unknown [64.207.29.137]) by mail.postgresql.org (Postfix) with ESMTP id 972306332E7 for ; Sat, 1 May 2010 20:21:51 -0300 (ADT) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: Re: Autovacuum stopped running Date: Sat, 1 May 2010 17:21:49 -0600 Message-ID: In-Reply-To: <11024.1272755375@sss.pgh.pa.us> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [ADMIN] Autovacuum stopped running Thread-Index: Acrpg18KZqAQO+awQqS0CKgBMLu+pQAASY5w References: <4BDBF3C90200002500031147@gw.wicourts.gov> <11024.1272755375@sss.pgh.pa.us> From: "Benjamin Krajmalnik" To: "Tom Lane" Cc: "Kevin Grittner" , X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.107 tagged_above=-10 required=5 tests=AWL=0.000, BAYES_00=-1.9, RDNS_NONE=0.793 X-Spam-Level: X-Archive-Number: 201005/7 X-Sequence-Number: 34480 # - Cost-Based Vacuum Delay - #vacuum_cost_delay =3D 0ms # 0-100 milliseconds #vacuum_cost_page_hit =3D 1 # 0-10000 credits #vacuum_cost_page_miss =3D 10 # 0-10000 credits #vacuum_cost_page_dirty =3D 20 # 0-10000 credits vacuum_cost_limit =3D 10000 # 1-10000 credits #----------------------------------------------------------------------- ------- # AUTOVACUUM PARAMETERS #----------------------------------------------------------------------- ------- #autovacuum =3D on # Enable autovacuum subprocess? 'on'=20 # requires track_counts to also be on. #log_autovacuum_min_duration =3D -1 # -1 disables, 0 logs all actions and # their durations, > 0 logs only # actions running at least this number # of milliseconds. autovacuum_max_workers =3D 10 # max number of autovacuum subprocesses #autovacuum_naptime =3D 1min # time between autovacuum runs #autovacuum_vacuum_threshold =3D 50 # min number of row updates before # vacuum #autovacuum_analyze_threshold =3D 50 # min number of row updates before=20 # analyze #autovacuum_vacuum_scale_factor =3D 0.2 # fraction of table size before vacuum #autovacuum_analyze_scale_factor =3D 0.1 # fraction of table size before analyze #autovacuum_freeze_max_age =3D 200000000 # maximum XID age before forced vacuum # (change requires restart) #autovacuum_vacuum_cost_delay =3D 20ms # default vacuum cost delay for # autovacuum, in milliseconds; # -1 means use vacuum_cost_delay #autovacuum_vacuum_cost_limit =3D -1 # default vacuum cost limit for # autovacuum, -1 means use # vacuum_cost_limit > -----Original Message----- > From: Tom Lane [mailto:tgl@sss.pgh.pa.us] > Sent: Saturday, May 01, 2010 5:10 PM > To: Benjamin Krajmalnik > Cc: Kevin Grittner; pgsql-admin@postgresql.org > Subject: Re: [ADMIN] Autovacuum stopped running >=20 > "Benjamin Krajmalnik" writes: > > TO be truthful, I did not check that. > > I arrived at the conclusion because although I have 10 autovacuum > > threads, none of the tables had been autoanalyzed or autovacuumed in > > hours (and due to the nature of the activity they do so every > minute). > > If I ever see this behavior now I know what to check for :) Thx. >=20 > We've seen one or two previous reports that suggested that the autovac > launcher might have stopped launching workers, but it hasn't been > reproducible. Are you using any nonstandard parameters for autovacuum? >=20 > regards, tom lane