Re: CPU bound at 99%

From: "Harald Armin Massa" <haraldarminmassa(at)gmail(dot)com>
To: "Bryan Buecking" <buecking(at)gmail(dot)com>
Cc: "PostgreSQL Performance" <pgsql-performance(at)postgresql(dot)org>
Subject: Re: CPU bound at 99%
Date: 2008-04-22 16:15:38
Message-ID: 7be3f35d0804220915t5d1525d7u3e697079b09cc68c@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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!

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Bryan Buecking 2008-04-22 16:16:43 Re: CPU bound at 99%
Previous Message Bryan Buecking 2008-04-22 16:10:26 Re: CPU bound at 99%