pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig James <craig_james@emolecules.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-performance@postgresql.org
Subject: Re: Occasional giant spikes in CPU load
Date: Fri, 25 Jun 2010 06:48:43 -0700
Message-ID: <4C24B3BB.3070901@emolecules.com> (raw)
In-Reply-To: <23596.1277438692@sss.pgh.pa.us>
References: <k2pda0294261004061437p9cd3810dqe9ce528b6ddb0873@mail.gmail.com>
	<m2m603c8f071004071413w1f2d2497hbbe07d9c6491848f@mail.gmail.com>
	<4BBCFB12.1010306@emolecules.com>
	<y2r72dbd3151004071556j22244233l8fa1db295b7f9cd3@mail.gmail.com>
	<r2q603c8f071004071747n3e56d12bo11c49885b8c2eb2e@mail.gmail.com>
	<4BBD3A17.90209@emolecules.com>
	<y2l72dbd3151004071950kfe09a98fqf0c9a136375260e2@mail.gmail.com>
	<v2u603c8f071004072007t323fe469lfdd8fa5f2a283890@mail.gmail.com>
	<4C23FD52.40508@emolecules.com>
	<23596.1277438692@sss.pgh.pa.us>

On 6/24/10 9:04 PM, Tom Lane wrote:
> Craig James<craig_james@emolecules.com>  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



view thread (31+ messages)  latest in thread

Message-ID: <4C24B3BB.3070901@emolecules.com>
Permalink:  ../4C24B3BB.3070901@emolecules.com/
Also on:    postgresql.org/message-id/4C24B3BB.3070901@emolecules.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: craig_james@emolecules.com, tgl@sss.pgh.pa.us
  Subject: Re: Occasional giant spikes in CPU load
  In-Reply-To: <4C24B3BB.3070901@emolecules.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox