From: | "Max Zorloff" <zorloff(at)gmail(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | CPU load high |
Date: | 2007-08-23 00:10:24 |
Message-ID: | op.txhj3m0kll0p5y@1-rtt202dnf3uds.mshome.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hello.
I have a web-server with php 5.2 connected to postgres 8.0 backend. Most
of the queries the users are doing are SELECTs (100-150 in a second for
100 concurrent users), with a 5-10 INSERTs/UPDATEs at the same time. There
is also a demon running in the background doing some work once every
100ms. The problem is that after the number of concurrent users rises to
100, CPU becomes almost 100% loaded. How do I find out what's hogging the
CPU?
'top' shows demon using 8% cpu on top, and some amount of postgres
processes each using 2% cpu with some apache processes occassionally
rising with 2% cpu also. Often the writer process is at the top using 10%
cpu.
And the second question is that over time demon and writer processes use
more and more shared memory - is it normal?
Thanks in advance.
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2007-08-23 00:35:19 | Re: PG Seg Faults Performing a Query |
Previous Message | Scott Marlowe | 2007-08-22 23:49:04 | Re: Postgres, fsync and RAID controller with 100M of internal cache & dedicated battery |