pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
query using cpu nearly 100%, why?
3+ messages / 3 participants
[nested] [flat]

* query using cpu nearly 100%, why?
@ 2003-12-05 21:03 LIANHE SHAO <lshao2@jhmi.edu>
  2003-12-06 17:46 ` Re: query using cpu nearly 100%, why? Richard Huxton <dev@archonet.com>
  2003-12-06 19:41 ` Re: query using cpu nearly 100%, why? Neil Conway <neilc@samurai.com>
  0 siblings, 2 replies; 3+ messages in thread

From: LIANHE SHAO @ 2003-12-05 21:03 UTC (permalink / raw)
  To: pgsql-performance

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? 

 
I am using linux7.3, pgsql 7.3.4, 1G Memory and 2GHz CPU. 

Regards,
William




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: query using cpu nearly 100%, why?
  2003-12-05 21:03 query using cpu nearly 100%, why? LIANHE SHAO <lshao2@jhmi.edu>
@ 2003-12-06 17:46 ` Richard Huxton <dev@archonet.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Richard Huxton @ 2003-12-06 17:46 UTC (permalink / raw)
  To: LIANHE SHAO <lshao2@jhmi.edu>; pgsql-performance

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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: query using cpu nearly 100%, why?
  2003-12-05 21:03 query using cpu nearly 100%, why? LIANHE SHAO <lshao2@jhmi.edu>
@ 2003-12-06 19:41 ` Neil Conway <neilc@samurai.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Neil Conway @ 2003-12-06 19:41 UTC (permalink / raw)
  To: LIANHE SHAO <lshao2@jhmi.edu>; +Cc: pgsql-performance

LIANHE SHAO <lshao2@jhmi.edu> writes:
> 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?

You haven't given us nearly enough information about the problem to
allow us to provide any meaningful advice.

-Neil




^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2003-12-06 19:41 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-12-05 21:03 query using cpu nearly 100%, why? LIANHE SHAO <lshao2@jhmi.edu>
2003-12-06 17:46 ` Richard Huxton <dev@archonet.com>
2003-12-06 19:41 ` Neil Conway <neilc@samurai.com>

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