Re: Built-in connection pooling - Mailing list pgsql-hackers

From Claudio Freire
Subject Re: Built-in connection pooling
Date
Msg-id CAGTBQpZvnUt8j4R1LSdvJcHy17PxNS=FEb3xN_Gg1wM_+VKvZQ@mail.gmail.com
Whole thread Raw
In response to Re: Built-in connection pooling  (Konstantin Knizhnik <k.knizhnik@postgrespro.ru>)
Responses Re: Built-in connection pooling
List pgsql-hackers


On Thu, Jan 18, 2018 at 11:48 AM, Konstantin Knizhnik <k.knizhnik@postgrespro.ru> wrote:

Attached please find new version of the patch with few fixes.
And more results at NUMA system with 144 cores and 3Tb of RAM.

Read-only pgbench (-S):


#Connections\kTPS
Vanilla Postgres
Session pool size 256
1k
1300 1505
10k
633
1519
100k
-1425



Read-write contention test: access to small number of records with 1% of updates.

#Clients\TPSVanilla PostgresSession pool size 256
100557232573319
200520395551670
300511423533773
400468562523091
500442268514056
600401860526704
700363912530317
800325148512238
900301310512844
1000278829554516

So, as you can see, there is no degrade of performance with increased number of connections in case of using session pooling.

TBH, the tests you should be running are comparisons with a similar pool size managed by pgbouncer, not just vanilla unlimited postgres.

Of course a limited pool size will beat thousands of concurrent queries by a large margin. The real question is whether a pthread-based approach beats the pgbouncer approach.

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: master make check fails on Solaris 10
Next
From: Emre Hasegeli
Date:
Subject: Re: [HACKERS] [PATCH] Improve geometric types