Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 045F9632C0A for ; Fri, 25 Jun 2010 10:48:57 -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 64587-03 for ; Fri, 25 Jun 2010 13:48:49 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pv0-f174.google.com (mail-pv0-f174.google.com [74.125.83.174]) by mail.postgresql.org (Postfix) with ESMTP id 8E3FB632B61 for ; Fri, 25 Jun 2010 10:48:49 -0300 (ADT) Received: by pvg2 with SMTP id 2so855244pvg.19 for ; Fri, 25 Jun 2010 06:48:47 -0700 (PDT) Received: by 10.114.18.7 with SMTP id 7mr834002war.127.1277473727011; Fri, 25 Jun 2010 06:48:47 -0700 (PDT) Received: from Craig-Jamess-MacBook-Pro.local (cpe-76-176-215-35.san.res.rr.com [76.176.215.35]) by mx.google.com with ESMTPS id n32sm3658685wag.7.2010.06.25.06.48.44 (version=SSLv3 cipher=RC4-MD5); Fri, 25 Jun 2010 06:48:44 -0700 (PDT) Message-ID: <4C24B3BB.3070901@emolecules.com> Date: Fri, 25 Jun 2010 06:48:43 -0700 From: Craig James User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.10) Gecko/20100512 Thunderbird/3.0.5 MIME-Version: 1.0 To: Tom Lane 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> <23596.1277438692@sss.pgh.pa.us> In-Reply-To: <23596.1277438692@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: 201006/462 X-Sequence-Number: 39318 On 6/24/10 9:04 PM, Tom Lane wrote: > Craig James writes: >> So what is it that will cause every single Postgres backend to come to life at the same moment, when there's no real load on the server? Maybe if a backend crashes? Some other problem? > > sinval queue overflow comes to mind ... although that really shouldn't > happen if there's "no real load" on the server. What PG version is > this? 8.3.10. Upgraded based on your advice when I first asked this question. > Also, the pg_stat_activity view contents when this happens would > probably be more useful to look at than "top" output. I'll try. It's hard to discover anything because the whole machine is overwhelmed when this happens. The only way I got the top(1) output was by running it high priority as root using nice(1). I can't do that with a Postgres backend, but I'll see what I can do. Craig