Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TpiQO-0006mQ-OT for pgsql-admin@arkaria.postgresql.org; Mon, 31 Dec 2012 16:41:16 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TpiQO-00053x-4o for pgsql-admin@arkaria.postgresql.org; Mon, 31 Dec 2012 16:41:16 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TpiQN-00053s-GJ for pgsql-admin@postgresql.org; Mon, 31 Dec 2012 16:41:15 +0000 Received: from mout.gmx.net ([74.208.4.200]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TpiQK-0001PK-N9 for pgsql-admin@postgresql.org; Mon, 31 Dec 2012 16:41:14 +0000 Received: from mailout-us.gmx.com ([172.19.198.45]) by mrigmx.server.lan (mrigmxus002) with ESMTP (Nemesis) id 0LnSzC-1TOf8r0Zw6-00hdaS for ; Mon, 31 Dec 2012 17:41:11 +0100 Received: (qmail 3758 invoked by uid 0); 31 Dec 2012 16:41:10 -0000 Received: from 76.255.19.161 by rms-us017 with HTTP Cc: pgsql-admin@postgresql.org,"Sylvain CAILLET" Content-Type: text/plain; charset="utf-8" Date: Mon, 31 Dec 2012 11:41:07 -0500 From: "Kevin Grittner" Message-ID: <20121231164107.223680@gmx.com> MIME-Version: 1.0 Subject: Re: Autovacuum issues with truncate and create index ... To: "Baptiste LHOSTE" X-Authenticated: #138763884 X-Flags: 0001 X-Mailer: GMX.com Web Mailer x-registered: 0 Content-Transfer-Encoding: 8bit X-GMX-UID: dKWTcAQ23zOlOQ09LnwhySZ+IGRvbwAh X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Baptiste LHOSTE wrote: > These queries are very simple : delete from table where > start_date < availableTimestamp. We performed an EXPLAIN to try > to understand what could be the problem. The query planner said > that the index on start_date could not be used because it was not > up-to-date. Could you show that output you base that on? > How a server (8 CPUs) which has a 0.56 load over the last 15 > minutes could not handle 3 autovacuum processes, for me it is > very confusing. When the bottleneck is disk I/O the CPUs count is not going to help. Threads which have not been context-switched out, but are sitting waiting for the electric motors to drag the disk arm to the right cylinder probably don't count against the load average. Note that while three autovacuum processes normally don't cause any grief, you seem to be near the tipping point anyway, so it may be a case of "the straw that broke the camel's back". Especially since you made autovacuum many times more resource-hungry than it is by default. -Kevin -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin