pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: AJ Weber <aweber@comcast.net>
To: Scott Marlowe <scott.marlowe@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: What setup would you choose for postgresql 9.2 installation?
Date: Mon, 04 Mar 2013 09:43:51 -0500
Message-ID: <5134B327.9030207@comcast.net> (raw)
In-Reply-To: <CAOR=d=1ObuuSJJpxfvJRRjdiOvPTTJiDkq-QN3Ycw3yWXcYUxg@mail.gmail.com>
References: <31E8EC2A-72E9-419A-9CDD-5B646A534272@autouncle.com>
	<5134AA00.6080800@comcast.net>
	<CAOR=d=1ObuuSJJpxfvJRRjdiOvPTTJiDkq-QN3Ycw3yWXcYUxg@mail.gmail.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>

Great info, I really appreciate the insight.  Is there a FAQ/recommended 
setup for running pgbench to determine where this might be?  (Is there a 
reason to setup pgbench differently based on the server's cores/memory/etc?)

Sorry if this detracts from the OP's original question.

-AJ

On 3/4/2013 9:36 AM, Scott Marlowe wrote:
> On Mon, Mar 4, 2013 at 7:04 AM, AJ Weber<aweber@comcast.net>  wrote:
>> Apologies for the tangential question, but how would pgpool2 "increase
>> throughput"?  Wouldn't the same number of statements be issued by your
>> application?  It would likely reduce the number of concurrent connections,
>> but that doesn't necessarily equate to "increased throughput".
> This is a pretty common subject.  Most servers have a "peak
> throughput" that occurs at some fixed number of connections.  for
> instance a common throughput graph of pgbench on a server might look
> like this:
>
> conns : tps
> 1 : 200
> 2 : 250
> 4 : 400
> 8 : 750
> 12 : 1200
> 16 : 2000
> 24 : 2200
> 28 : 2100
> 32 : 2000
> 40 : 1800
> 64 : 1200
> 80 : 800
> 100 : 400
>
> So by concentrating your connections to be ~24 you would get maximum
> throughput.  Such a graph is typical for most db servers, just a
> different "sweet spot" where the max throughput for a given number of
> connections. Some servers fall off fast past this number, some just
> slowly drop off.


-- 
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance



view thread (7+ messages)  latest in thread

Message-ID: <5134B327.9030207@comcast.net>
Permalink:  ../5134B327.9030207@comcast.net/
Also on:    postgresql.org/message-id/5134B327.9030207@comcast.net

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: aweber@comcast.net, scott.marlowe@gmail.com
  Subject: Re: What setup would you choose for postgresql 9.2 installation?
  In-Reply-To: <5134B327.9030207@comcast.net>

* 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