Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 4F366635D04 for ; Thu, 24 Jun 2010 22:14:01 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 02460-05-3 for ; Fri, 25 Jun 2010 01:13:53 +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 83AD5634408 for ; Thu, 24 Jun 2010 22:13:46 -0300 (ADT) Received: from [69.97.198.58] (58.sub-69-97-198.myvzw.com [69.97.198.58]) by mrelayeu.kundenserver.de (node=mreu0) with ESMTP (Nemesis) id 0LmPUU-1P1qCa0mJe-00a3JF; Fri, 25 Jun 2010 03:13:43 +0200 Message-ID: <4C2402C3.6080209@2ndquadrant.com> Date: Thu, 24 Jun 2010 21:13:39 -0400 From: Greg Smith User-Agent: Thunderbird 2.0.0.24 (X11/20100317) MIME-Version: 1.0 To: Craig James CC: pgsql-performance@postgresql.org Subject: Re: Occasional giant spikes in CPU load References: <4BBCFB12.1010306@emolecules.com> <4BBD3A17.90209@emolecules.com> <4C23FD52.40508@emolecules.com> In-Reply-To: <4C23FD52.40508@emolecules.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V01U2FsdGVkX1/pifrEyZJT2/q9I6UaW/1wgd/LAgUEGTrEMr5 Othrzl5luytFZT+9cTSs88YdQX5PpeL8EbxpkN4QzF6aShO13a qaOgBHwhFaaILIh1FdoyPWNNha+4pp+ X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.001 tagged_above=-10 required=5 tests=BAYES_40=-0.001, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201006/455 X-Sequence-Number: 39311 Craig James wrote: > Now the question has narrowed down to this: what could trigger EVERY > postgres backend to do something at the same time? See the attached > output from "top -b", which shows what is happening during one of the > CPU spikes. By the way: you probably want "top -b -c", which will actually show you what each client is doing via inspecting what it's set its command line to. -- Greg Smith 2ndQuadrant US Baltimore, MD PostgreSQL Training, Services and Support greg@2ndQuadrant.com www.2ndQuadrant.us