Re: Occasional giant spikes in CPU load - Mailing list pgsql-performance

From Tom Lane
Subject Re: Occasional giant spikes in CPU load
Date
Msg-id 10446.1270685931@sss.pgh.pa.us
Whole thread Raw
In response to Re: Occasional giant spikes in CPU load  (Craig James <craig_james@emolecules.com>)
List pgsql-performance
Craig James <craig_james@emolecules.com> writes:
> On 4/7/10 3:36 PM, Joshua D. Drake wrote:
>> To have your CPUs so flooded that they are the cause of an inability to
>> log in is pretty suspect.

> I thought so too, except that I can't login during the flood.  If the CPUs were all doing iowaits, logging in should
beeasy. 

> Greg's suggestion that shared_buffers and work_mem are too big for an 8 GB system fits these symptoms -- if it's
havinga swap storm, login is effectively impossible. 

Yeah, but there is also the question of what's causing all the backends
to try to run at the same time.  Oversubscribed memory could well be the
direct cause of the machine getting driven into the ground, but there's
something else going on here too IMO.

Anyway I concur with the advice to lower shared_buffers, and run fewer
backends if possible, to see if that ameliorates the problem.

            regards, tom lane

pgsql-performance by date:

Previous
From: David Rees
Date:
Subject: Re: Occasional giant spikes in CPU load
Next
From: Robert Haas
Date:
Subject: Re: Occasional giant spikes in CPU load