Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Performance > Re: CPU bound a...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 7 of 13 Topic 4010 of 4424
Post > Topic >>

Re: CPU bound at 99%

by tgl@[EMAIL PROTECTED] (Tom Lane) Apr 22, 2008 at 12:25 PM

Bryan Buecking <buecking@[EMAIL PROTECTED]
> writes:
> On Tue, Apr 22, 2008 at 10:55:19AM -0500, Erik Jones wrote:
>> That is WAY too high.  Get a real pooler, such as pgpool, and drop  
>> that down to 1000 and test from there.

> I agree, but the number of idle connections dont' seem to affect
> performace only memory usage.

I doubt that's true (and your CPU load suggests the contrary as well).
There are common operations that have to scan the whole PGPROC array,
which has one entry per open connection.  What's worse, some of them
require exclusive lock on the array.

8.3 has some improvements in this area that will probably let it scale
to more connections than previous releases, but in any case connection
pooling is a good thing.

> I'm trying to lessen the load of
> connection setup. But sounds like this tax is minimal?

Not really.  You're better off reusing a connection over a large number
of queries.

			regards, tom lane

-- 
Sent via pgsql-performance mailing list (pgsql-performance@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance
 




 13 Posts in Topic:
CPU bound at 99%
buecking@[EMAIL PROTECTED  2008-04-23 00:31:01 
Re: CPU bound at 99%
jd@[EMAIL PROTECTED] (&q  2008-04-22 08:41:09 
Re: CPU bound at 99%
buecking@[EMAIL PROTECTED  2008-04-23 00:56:46 
Re: CPU bound at 99%
erik@[EMAIL PROTECTED] (  2008-04-22 10:55:19 
Re: CPU bound at 99%
buecking@[EMAIL PROTECTED  2008-04-23 01:10:26 
Re: CPU bound at 99%
buecking@[EMAIL PROTECTED  2008-04-23 01:22:37 
Re: CPU bound at 99%
tgl@[EMAIL PROTECTED] (T  2008-04-22 12:25:36 
Re: CPU bound at 99%
buecking@[EMAIL PROTECTED  2008-04-23 01:16:43 
Re: CPU bound at 99%
ivoras@[EMAIL PROTECTED]   2008-04-23 01:58:47 
Re: CPU bound at 99%
craig@[EMAIL PROTECTED]   2008-04-23 00:36:35 
Re: CPU bound at 99%
haraldarminmassa@[EMAIL P  2008-04-22 18:15:38 
Re: CPU bound at 99%
scott.marlowe@[EMAIL PROT  2008-04-22 10:23:55 
Re: CPU bound at 99%
lists@[EMAIL PROTECTED]   2008-04-22 18:45:24 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 7:40:45 CST 2008.