pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joshua D. Drake <jd@commandprompt.com>
To: Craig James <craig_james@emolecules.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Occasional giant spikes in CPU load
Date: Thu, 24 Jun 2010 18:01:40 -0700
Message-ID: <1277427700.2528.3.camel@jd-desktop.unknown.charter.com> (raw)
In-Reply-To: <4C23FD52.40508@emolecules.com>
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>

On Thu, 2010-06-24 at 17:50 -0700, Craig James wrote:
> I'm reviving this question because I never figured it out.  To summarize: At random intervals anywhere from a few times per hour to once or twice a day, we see a huge spike in CPU load that essentially brings the system to a halt for up to a minute or two.  Previous answers focused on "what is it doing", i.e. is it really Postgres or something else?
> 
> 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.

checkpoint causing IO Wait.

What does sar say about these times?

Joshua D. Drake


-- 
PostgreSQL.org Major Contributor
Command Prompt, Inc: http://www.commandprompt.com/ - 509.416.6579
Consulting, Training, Support, Custom Development, Engineering




view thread (31+ messages)  latest in thread

Message-ID: <1277427700.2528.3.camel@jd-desktop.unknown.charter.com>
Permalink:  ../1277427700.2528.3.camel@jd-desktop.unknown.charter.com/
Also on:    postgresql.org/message-id/1277427700.2528.3.camel@jd-desktop.unknown.charter.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: jd@commandprompt.com, craig_james@emolecules.com
  Subject: Re: Occasional giant spikes in CPU load
  In-Reply-To: <1277427700.2528.3.camel@jd-desktop.unknown.charter.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