Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 685C5632886 for ; Thu, 8 Apr 2010 23:32:03 -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 62754-09 for ; Fri, 9 Apr 2010 02:31:36 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.10]) by mail.postgresql.org (Postfix) with ESMTP id 8D4A96323B4 for ; Thu, 8 Apr 2010 23:31:45 -0300 (ADT) Received: from [192.168.0.105] (pool-96-244-14-10.bltmmd.fios.verizon.net [96.244.14.10]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0M3u5q-1NhqdI03uc-00rMZt; Fri, 09 Apr 2010 04:31:42 +0200 Message-ID: <4BBE918C.7040105@2ndquadrant.com> Date: Thu, 08 Apr 2010 22:31:40 -0400 From: Greg Smith User-Agent: Thunderbird 2.0.0.24 (X11/20100317) MIME-Version: 1.0 To: Krzysztof Kardas CC: pgsql-performance@postgresql.org Subject: Re: PostgreSQL with Zabbix - problem of newbe References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX1/7NYwTwhzNtZETxbErBxO8zu1l/WoqO7Xl7jw 6yK/kSrM+3mBbHTRG6JYzKnkV61ntVbuB8B9bx6VmsrqAYdEWs QALcOLqYdJE/gZDA5bP/e1YI01SwN8u X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.355 tagged_above=-10 required=5 tests=AWL=0.244, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201004/109 X-Sequence-Number: 38359 Krzysztof Kardas wrote: > My current database variables: > That is way too much stuff to sort through. Try this instead, to only get the values you've set to something rather than every single one: select name,unit,current_setting(name) from pg_settings where source='configuration file' ; Also, a snapshot of output from "vmstat 1" during some period when the server is performing badly would be very helpful to narrow down what's going on. The easy answer to your question is simply that autovacuum is terrible on PG 8.1. You can tweak it to do better, but that topic isn't covered very well in the sort of tuning guides you'll find floating around. This is because most of the people who care about this sort of issue have simply upgraded to a later version where autovacuum is much better. -- Greg Smith 2ndQuadrant US Baltimore, MD PostgreSQL Training, Services and Support greg@2ndQuadrant.com www.2ndQuadrant.us