Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id B95581337B4E for ; Wed, 16 Feb 2011 16:36:25 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 34014-01 for ; Wed, 16 Feb 2011 20:36:18 +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 11BC61337B6E for ; Wed, 16 Feb 2011 16:36:18 -0400 (AST) Received: from [192.168.1.6] (mail.highperformancepostgresql.com [71.179.240.8]) by mrelayeu.kundenserver.de (node=mrbap2) with ESMTP (Nemesis) id 0MNvNj-1Pk1bk0nHv-006scL; Wed, 16 Feb 2011 21:36:03 +0100 Message-ID: <4D5C3531.3070308@2ndquadrant.com> Date: Wed, 16 Feb 2011 15:36:01 -0500 From: Greg Smith User-Agent: Thunderbird 2.0.0.24 (X11/20100317) MIME-Version: 1.0 To: =?ISO-8859-1?Q?Thomas_P=F6hler?= CC: pgsql-performance@postgresql.org Subject: Re: high user cpu, massive SELECTs, no io waiting problem References: <4D5A6C60020000250003AA98@gw.wicourts.gov> <4D5B7DC2.6030807@2ndquadrant.com> <4D5B8CCC020000250003AAFD@gw.wicourts.gov> <4D5BE56B.4030307@2ndquadrant.com> <4D5BA236020000250003AB0E@gw.wicourts.gov> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Provags-ID: V02:K0:lYq2cKyg/K4Hs8GbjYCAC6A3zduwuM5h74jVvX2YVaS tdh5dNcThkxVPdnLgp9JhvAg87/Q4EOZ28FxyeUFONnFrPPLMR M1MWhuwFJriXxyeajsXjGULEIFAfY8q31c+zNoXQmD0I7Hmula 1f/uVztgkPdAJolscBguCaiNMVsMemMwq0+LskLHtvfiqtWvdH vkdW0LF/WAHy7e5OV25PF4J7yxoVssnvN2L6zcCdOc= X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201102/417 X-Sequence-Number: 42555 Thomas Pöhler wrote: > We are running a biweekly downtime where we do a complete reindex and vaccum full. We cannot identify certain queries causing this. If you feel that you need VACUUM FULL, either something terribly wrong has happened, or someone has gotten confused. In both cases it's unlikely you want to keep doing that. See http://wiki.postgresql.org/wiki/VACUUM_FULL for a nice document leading through figuring what to do instead. Note that if you have a database that fits in RAM, but is filled with the sort of index bloat garbage that using VACUUM FULL will leave behind, it will cause excessive CPU use when running queries. If you already have planned downtime, you really should try to use use CLUSTER instead, to remove that from the list of possible causes for your issue. -- Greg Smith 2ndQuadrant US greg@2ndQuadrant.com Baltimore, MD PostgreSQL Training, Services, and 24x7 Support www.2ndQuadrant.us "PostgreSQL 9.0 High Performance": http://www.2ndQuadrant.com/books