Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UCWeF-0003Wj-CO for pgsql-performance@arkaria.postgresql.org; Mon, 04 Mar 2013 14:45:51 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UCWeD-0006Kj-R7 for pgsql-performance@arkaria.postgresql.org; Mon, 04 Mar 2013 14:45:49 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UCWeC-0006Ke-RD for pgsql-performance@postgresql.org; Mon, 04 Mar 2013 14:45:49 +0000 Received: from qmta02.westchester.pa.mail.comcast.net ([2001:558:fe14:43:76:96:62:24]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UCWeB-0008CG-4P for pgsql-performance@postgresql.org; Mon, 04 Mar 2013 14:45:47 +0000 Received: from omta17.westchester.pa.mail.comcast.net ([76.96.62.89]) by qmta02.westchester.pa.mail.comcast.net with comcast id 7R3F1l0081vXlb851SlmUz; Mon, 04 Mar 2013 14:45:46 +0000 Received: from [192.168.1.176] ([69.142.185.164]) by omta17.westchester.pa.mail.comcast.net with comcast id 7Sll1l00M3ZEZL53dSllVg; Mon, 04 Mar 2013 14:45:46 +0000 Message-ID: <5134B327.9030207@comcast.net> Date: Mon, 04 Mar 2013 09:43:51 -0500 From: AJ Weber User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: Scott Marlowe CC: pgsql-performance@postgresql.org Subject: Re: What setup would you choose for postgresql 9.2 installation? References: <31E8EC2A-72E9-419A-9CDD-5B646A534272@autouncle.com> <5134AA00.6080800@comcast.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1362408346; bh=r61d+hBEv/qKvfSCIkhJJ/ZyuHbjyIgH0qNVsaP8qvs=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=RD7su13fovve3Hd7NrZxWFP/HfWKsb0oY4jjTec79TscYDmKioS1i9FLCz4VSXnWN zH4AtfOUHLaOtqyOMYcFHiHXI2YfzSCziAWqnV04lLlGqLTclizdPaoCMsM4B+NF8u cubEoHYLZHj9AZkZGFhO1rZ0Cg9K73jP5PLmm4PdbLqgXmoMtc8/9a3uCRUAoyeexw 9WHORpdC6Ljygh4IOtV1pEJ3bQuiwP4aMbIXznAGceaLSQi8KQLcUpVVXXWrTUywep IcYsJ0/gU5oHn0PDJ/1ve6fuVqCYBe13Q/YGK1AyzC48S6tUmCdYX+kU7pxBqlJfBy xdHG5qxahqGag== X-Pg-Spam-Score: -2.5 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org 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 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