Re: CPU bound at 99% - Mailing list pgsql-performance

From Harald Armin Massa
Subject Re: CPU bound at 99%
Date
Msg-id 7be3f35d0804220915t5d1525d7u3e697079b09cc68c@mail.gmail.com
Whole thread Raw
In response to Re: CPU bound at 99%  (Bryan Buecking <buecking@gmail.com>)
List pgsql-performance
Bryan,

 > > about 2300 connections in idle
>  > > (ps auxwww | grep postgres | idle)

that is about 2300 processes being task scheduled by your kernel, each
of them using > 1 MB of RAM and some other ressources, are you sure
that this is what you want?

Usual recommended design for a web application:

start request, rent a connection from connection pool, do query, put
connection back, finish request, wait for next request

so to get 500 connections in parallel, you would have the outside
situaion of 500 browsers submitting requests within the time needed to
fullfill one request.

Harald
--
GHUM Harald Massa
persuadere et programmare
Harald Armin Massa
Spielberger Straße 49
70435 Stuttgart
0173/9409607
fx 01212-5-13695179
-
EuroPython 2008 will take place in Vilnius, Lithuania - Stay tuned!

pgsql-performance by date:

Previous
From: Bryan Buecking
Date:
Subject: Re: CPU bound at 99%
Next
From: Bryan Buecking
Date:
Subject: Re: CPU bound at 99%