Skip site navigation (1) Skip section navigation (2)

Re: Occasional giant spikes in CPU load

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: Craig James <craig_james(at)emolecules(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Occasional giant spikes in CPU load
Date: 2010-06-25 01:01:40
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
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

-- Major Contributor
Command Prompt, Inc: - 509.416.6579
Consulting, Training, Support, Custom Development, Engineering

In response to

pgsql-performance by date

Next:From: Greg SmithDate: 2010-06-25 01:13:39
Subject: Re: Occasional giant spikes in CPU load
Previous:From: Craig JamesDate: 2010-06-25 00:50:26
Subject: Re: Occasional giant spikes in CPU load

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group