From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Ivan Voras <ivoras@freebsd.org>
To: pgsql-performance@postgresql.org
Subject: Re: Performance under contention
Date: Mon, 22 Nov 2010 09:26:21 -0600
Message-ID: <4CEA373D0200002500037CED@gw.wicourts.gov> (raw)
In-Reply-To: <iccjub$bn0$1@dough.gmane.org>
References: <4CE9773D0200002500037CA6@gw.wicourts.gov>
<iccjub$bn0$1@dough.gmane.org>
Ivan Voras <ivoras@freebsd.org> wrote:
> On 11/22/10 02:47, Kevin Grittner wrote:
>> Ivan Voras wrote:
>>
>>> After 16 clients (which is still good since there are only 12
>>> "real" cores in the system), the performance drops sharply
>>
>> Yet another data point to confirm the importance of connection
>> pooling. :-)
>
> I agree, connection pooling will get rid of the symptom. But not
> the underlying problem. I'm not saying that having 1000s of
> connections to the database is a particularly good design, only
> that there shouldn't be a sharp decline in performance when it
> does happen. Ideally, the performance should remain the same as it
> was at its peek.
Well, I suggested that we add an admission control[1] mechanism,
with at least part of the initial default policy being that there is
a limit on the number of active database transactions. Such a
policy would do what you are suggesting, but the idea was shot down
on the basis that in most of the cases where this would help, people
would be better served by using an external connection pool.
If interested, search the archives for details of the discussion.
-Kevin
[1] http://db.cs.berkeley.edu/papers/fntdb07-architecture.pdf
Joseph M. Hellerstein, Michael Stonebraker and James Hamilton. 2007.
Architecture of a Database System. Foundations and Trends(R) in
Databases Vol. 1, No. 2 (2007) 141*259
(see Section 2.4 - Admission Control)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: Kevin.Grittner@wicourts.gov, ivoras@freebsd.org
Subject: Re: Performance under contention
In-Reply-To: <4CEA373D0200002500037CED@gw.wicourts.gov>
References: <4CE9773D0200002500037CA6@gw.wicourts.gov> <iccjub$bn0$1@dough.gmane.org> <4CEA373D0200002500037CED@gw.wicourts.gov>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox