Re: poor cpu utilization on dual cpu box - Mailing list pgsql-performance

From Tom Lane
Subject Re: poor cpu utilization on dual cpu box
Date
Msg-id 17145.1066842176@sss.pgh.pa.us
Whole thread Raw
In response to Re: poor cpu utilization on dual cpu box  (Josh Berkus <josh@agliodbs.com>)
List pgsql-performance
Josh Berkus <josh@agliodbs.com> writes:
>> We are running with shared buffers large enough to hold the
>> entire database

> Which is bad.   This is not what shared buffers are for.  See:
> http://www.varlena.com/varlena/GeneralBits/Tidbits/perf.html

In fact, that may be the cause of the performance issue.  The high
context-swap rate suggests heavy contention for shared-memory data
structures.  The first explanation that occurs to me is that too much
time is being spent managing the buffer hashtable, causing that to
become a serialization bottleneck.  Try setting shared_buffers to 10000
or so and see if it gets better.

            regards, tom lane

pgsql-performance by date:

Previous
From: Josh Berkus
Date:
Subject: Re: Low Insert/Update Performance
Next
From: Simon Sadedin
Date:
Subject: Re: poor cpu utilization on dual cpu box