pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: Simon Sadedin <pg_sicko@yahoo.com>
To: pgsql-performance@postgresql.org
Subject: Re: poor cpu utilization on dual cpu box
Date: Wed, 22 Oct 2003 09:11:14 -0700
Message-ID: <200310220911.14853.josh@agliodbs.com> (raw)
In-Reply-To: <20031022145757.80993.qmail@web12603.mail.yahoo.com>
References: <20031022145757.80993.qmail@web12603.mail.yahoo.com>

Simon,

> The issue is that no matter how much query load we throw at our server it
> seems almost impossible to get it to utilize more than 50% cpu on a
> dual-cpu box.  For a single connection we can use all of one CPU, but
> multiple connections fail to increase the overall utilization (although
> they do cause it to spread across CPUs).

This is perfectly normal.   It's a rare x86 machine (read fiber channel) where 
you don't saturate the I/O or the RAM *long* before you saturate the CPU.  
Transactional databases are an I/O intensive operation, not a CPU-intensive 
one.

>  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

-- 
Josh Berkus
Aglio Database Solutions
San Francisco



view thread (4+ messages)  latest in thread

Message-ID: <200310220911.14853.josh@agliodbs.com>
Permalink:  ../200310220911.14853.josh@agliodbs.com/
Also on:    postgresql.org/message-id/200310220911.14853.josh@agliodbs.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: josh@agliodbs.com, pg_sicko@yahoo.com
  Subject: Re: poor cpu utilization on dual cpu box
  In-Reply-To: <200310220911.14853.josh@agliodbs.com>
  References: <20031022145757.80993.qmail@web12603.mail.yahoo.com> <200310220911.14853.josh@agliodbs.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