Received: from localhost (unknown [200.46.204.184]) by developer.postgresql.org (Postfix) with ESMTP id A804E2E0040 for ; Sun, 20 Apr 2008 12:53:30 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 20877-02 for ; Sun, 20 Apr 2008 12:53:26 -0300 (ADT) X-Greylist: delayed 00:06:39.532983 by SQLgrey-1.7.5 Received: from 27.mail-out.ovh.net (27.mail-out.ovh.net [91.121.30.210]) by developer.postgresql.org (Postfix) with SMTP id 395A02E0060 for ; Sun, 20 Apr 2008 12:53:26 -0300 (ADT) Received: (qmail 1942 invoked by uid 503); 20 Apr 2008 17:30:54 -0000 Received: from b6.ovh.net (HELO mail172.ha.ovh.net) (213.186.33.56) by 27.mail-out.ovh.net with SMTP; 20 Apr 2008 17:30:54 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 20 Apr 2008 15:46:46 -0000 Received: from ita73-2-82-246-12-243.fbx.proxad.net (HELO localhost.localdomain) (dforums@vieonet.com@82.246.12.243) by ns0.ovh.net with SMTP; 20 Apr 2008 15:46:46 -0000 Message-ID: <480B8205.8070209@vieonet.com> Date: Sun, 20 Apr 2008 19:48:53 +0200 From: dforums User-Agent: Thunderbird 2.0.0.12 (X11/20080226) MIME-Version: 1.0 CC: pgsql-performance@postgresql.org Subject: Vacuum settings References: <48032021.90704@gmail.com> <48047143.5000107@gmail.com> In-Reply-To: <48047143.5000107@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Ovh-Remote: 82.246.12.243 (ita73-2-82-246-12-243.fbx.proxad.net) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: DONE|H 0.500301/N X-Ovh-Tracer-Id: 9065183101466036016 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.054 tagged_above=0 required=5 tests=AWL=-0.527, MISSING_HEADERS=1.581 X-Spam-Level: * X-Archive-Number: 200804/293 X-Sequence-Number: 29786 Hello, I need wo advice on vacuum settings. I have a quad core X5355 @ 2.66GHz with 8 Go of memory 1Q) Why autovaccum does not work, I have set the value to on in postgresql.conf but when the server start it's still off !!!! 2Q) Here are my settings for vacuum, could you help me to optimise those settings, at the moment the vacuum analyse sent every night is taking around 18 h to run, which slow down the server performance. # - Cost-Based Vacuum Delay - vacuum_cost_delay = 5 # 0-1000 milliseconds vacuum_cost_page_hit = 1000 # 0-10000 credits vacuum_cost_page_miss = 1000 # 0-10000 credits vacuum_cost_page_dirty = 120 # 0-10000 credits vacuum_cost_limit = 20 # 0-10000 credits # - Background writer - bgwriter_delay = 50 # 10-10000 milliseconds between rounds bgwriter_lru_percent = 1.0 # 0-100% of LRU buffers scanned/round bgwriter_lru_maxpages = 25 # 0-1000 buffers max written/round bgwriter_all_percent = 0.333 # 0-100% of all buffers scanned/round bgwriter_all_maxpages = 50 # 0-1000 buffers max written/round Thanks in advance for your helps Regards David