Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 5AB28633D52 for ; Fri, 9 Apr 2010 12:13:54 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 22446-07 for ; Fri, 9 Apr 2010 15:13:43 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from exprod7og103.obsmtp.com (exprod7og103.obsmtp.com [64.18.2.159]) by mail.postgresql.org (Postfix) with SMTP id D7798633CE9 for ; Fri, 9 Apr 2010 12:13:42 -0300 (ADT) Received: from source ([209.85.212.54]) by exprod7ob103.postini.com ([64.18.6.12]) with SMTP ID DSNKS79EJc1Hw08ajyEjv34xBHhbGZddvpvf@postini.com; Fri, 09 Apr 2010 08:13:42 PDT Received: by vws17 with SMTP id 17so1827262vws.13 for ; Fri, 09 Apr 2010 08:13:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.6.133 with HTTP; Fri, 9 Apr 2010 08:13:39 -0700 (PDT) In-Reply-To: References: <4BBEAA10.6060808@2ndquadrant.com> Date: Fri, 9 Apr 2010 11:13:39 -0400 Received: by 10.220.123.29 with SMTP id n29mr163675vcr.4.1270826021087; Fri, 09 Apr 2010 08:13:41 -0700 (PDT) Message-ID: Subject: Re: PostgreSQL with Zabbix - problem of newbe From: Scott Mead To: Merlin Moncure Cc: Greg Smith , =?ISO-8859-2?Q?Grzegorz_Ja=B6kiewicz?= , Krzysztof Kardas , pgsql-performance@postgresql.org Content-Type: multipart/alternative; boundary=001636d351368eea7d0483cf3d9c X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.298 tagged_above=-10 required=5 tests=AWL=-1.299, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 201004/115 X-Sequence-Number: 38365 --001636d351368eea7d0483cf3d9c Content-Type: text/plain; charset=ISO-8859-1 The OP is using: autovacuum_vacuum_threshold | 100000 That means that vacuum won't consider a table to be 'vacuum-able' until after 100k changes.... that's nowhere near aggressive enough. Probably what's happening is that when autovacuum finally DOES start on a table, it just takes forever. --Scott 2010/4/9 Merlin Moncure > 2010/4/9 Greg Smith : > > Merlin Moncure wrote: > >> > >> postgresql 8.2: autovacuum enabled by default > >> postgresql 8.3: HOT (reduces update penalty -- zabbix does a lot of > >> updates) > >> > > > > autovacuum wasn't enabled by default until 8.3. It didn't really work > all > > that well out of the box until the support for multiple workers was added > in > > that version, along with some tweaking to its default parameters. > There's > > also a lot more logging information available, both the server logs and > the > > statistics tables, to watch what it's doing that were added in 8.3. > > you're right! iirc it was changed at the last minute... > > merlin > > -- > Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-performance > --001636d351368eea7d0483cf3d9c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable The OP is using:=A0

autovacuum_vacuum_threshold =A0 =A0 | 1000= 00

That means that vacuum won't consider a= table to be 'vacuum-able' until after 100k changes.... that's = nowhere near aggressive enough. =A0Probably what's happening is that wh= en autovacuum finally DOES start on a table, it just takes forever.=A0

--Scott



2010/4/9 Merlin Moncure <mmoncure@gmail.com>
2010/4/9 Greg Smith <greg@2ndqua= drant.com>:
> Merlin Moncure wrote:
>>
>> postgresql 8.2: autovacuum enabled by default
>> postgresql 8.3: HOT (reduces update penalty -- zabbix does a lot o= f
>> updates)
>>
>
> autovacuum wasn't enabled by default until 8.3. =A0It didn't r= eally work all
> that well out of the box until the support for multiple workers was ad= ded in
> that version, along with some tweaking to its default parameters. =A0T= here's
> also a lot more logging information available, both the server logs an= d the
> statistics tables, to watch what it's doing that were added in 8.3= .

you're right! =A0iirc it was changed at the last minute...

merlin

--
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance

--001636d351368eea7d0483cf3d9c--