pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: LIANHE SHAO <lshao2@jhmi.edu>
To: pgsql-performance <pgsql-performance@postgresql.org>
Subject: Re: query using cpu nearly 100%, why?
Date: Sat, 6 Dec 2003 17:46:32 +0000
Message-ID: <200312061746.33037.dev@archonet.com> (raw)
In-Reply-To: <19be88196606.19660619be88@jhmimail.jhmi.edu>
References: <19be88196606.19660619be88@jhmimail.jhmi.edu>

On Friday 05 December 2003 21:03, LIANHE SHAO wrote:
> Hello,
> I use php as front-end to query our database. When I use System Monitor to
> check the usage of cpu and memory, I noticed that the cpu very easily gets
> up to 100%. Is that normal? if not, could someone points out possible
> reason?

The idea is that CPU should go to 100% when there's work to be done, and drop 
off when the system is idle. There's nothing to be gained with having the CPU 
at 50% and taking twice as long to perform a task.

-- 
  Richard Huxton
  Archonet Ltd



view thread (3+ messages)  latest in thread

Message-ID: <200312061746.33037.dev@archonet.com>
Permalink:  ../200312061746.33037.dev@archonet.com/
Also on:    postgresql.org/message-id/200312061746.33037.dev@archonet.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: dev@archonet.com, lshao2@jhmi.edu
  Subject: Re: query using cpu nearly 100%, why?
  In-Reply-To: <200312061746.33037.dev@archonet.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