Re: pl/pgsql performance

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: Mehdi Ravanbakhsh <babakco(at)gmail(dot)com>, "pgsql-performance(at)postgresql(dot)org" <pgsql-performance(at)postgresql(dot)org>
Subject: Re: pl/pgsql performance
Date: 2014-04-27 12:41:02
Message-ID: CAB7nPqSOPtUuE65roSXV9ZE8T0pTna8z5djZLWn27CK-Y6uswA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Fri, Apr 25, 2014 at 5:53 PM, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> wrote:
> 2014-04-25 10:48 GMT+02:00 Mehdi Ravanbakhsh <babakco(at)gmail(dot)com>:
>> 2- how i can chose max connection number for pgsql server based on cpu
>> core and RAM capacity that have maximum Efficiency?
> usually max performance is about 10 x CPU connections. But it highly depends
> on load.
As well as transaction model counts, are you for example using long or
short transactions?
As a starting point, you could as well use something like ((core_count
* 2) + effective_spindle_count). have a look here for more details:
http://wiki.postgresql.org/wiki/Number_Of_Database_Connections#How_to_Find_the_Optimal_Database_Connection_Pool_Size
--
Michael

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Elanchezhiyan Elango 2014-04-27 21:01:34 Checkpoints and slow queries
Previous Message Elanchezhiyan Elango 2014-04-27 12:08:07 Checkpoints and slow queries