Re: CPU bound at 99%

Поиск
Список
Период
Сортировка
От Harald Armin Massa
Тема Re: CPU bound at 99%
Дата
Msg-id 7be3f35d0804220915t5d1525d7u3e697079b09cc68c@mail.gmail.com
обсуждение исходный текст
Ответ на Re: CPU bound at 99%  (Bryan Buecking <buecking@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Bryan Buecking
Дата:
Сообщение: Re: CPU bound at 99%
Следующее
От: Bryan Buecking
Дата:
Сообщение: Re: CPU bound at 99%