Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UXZrx-0000W2-I3 for pgsql-performance@arkaria.postgresql.org; Wed, 01 May 2013 16:27:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UXZrw-0007fy-Tn for pgsql-performance@arkaria.postgresql.org; Wed, 01 May 2013 16:27:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UXZrv-0007fk-U2 for pgsql-performance@postgresql.org; Wed, 01 May 2013 16:26:59 +0000 Received: from proofpoint1.mail.rice.edu ([128.42.201.100] helo=pp1.rice.edu) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UXZrp-0006iZ-S1 for pgsql-performance@postgresql.org; Wed, 01 May 2013 16:26:59 +0000 Received: from pps.filterd (pp1.rice.edu [127.0.0.1]) by pp1.rice.edu (8.14.5/8.14.5) with SMTP id r41BQoQ3011348; Wed, 1 May 2013 11:26:50 -0500 Received: from mh3.mail.rice.edu (mh3.mail.rice.edu [128.42.199.10]) by pp1.rice.edu with ESMTP id 1brr7sxs57-1; Wed, 01 May 2013 11:26:50 -0500 X-Virus-Scanned: by amavis-2.7.0 at mh3.mail.rice.edu, auth channel X-SMTP-Auth: no X-SMTP-Auth: no Received: from aart.rice.edu (aart.rice.edu [168.7.56.48]) by mh3.mail.rice.edu (Postfix) with ESMTP id 3A671401D4; Wed, 1 May 2013 11:26:50 -0500 (CDT) Received: by aart.rice.edu (Postfix, from userid 18612) id 3183A1006FC; Wed, 1 May 2013 11:26:50 -0500 (CDT) Date: Wed, 1 May 2013 11:26:50 -0500 From: "ktm@rice.edu" To: Anne Rosset Cc: "pgsql-performance@postgresql.org" Subject: Re: Deterioration in performance when query executed in multi threads Message-ID: <20130501162650.GI27807@aart.rice.edu> References: <9A6B86D66BD3C2438AFACFA09354890F20A2DF6D@EXCH01.sp.corp.collab.net> <20130501141236.GG27807@aart.rice.edu> <9A6B86D66BD3C2438AFACFA09354890F20A2E06C@EXCH01.sp.corp.collab.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9A6B86D66BD3C2438AFACFA09354890F20A2E06C@EXCH01.sp.corp.collab.net> User-Agent: Mutt/1.5.20 (2009-12-10) X-Pg-Spam-Score: -4.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 On Wed, May 01, 2013 at 04:07:55PM +0000, Anne Rosset wrote: > Hi Ken, > Thanks for your answer. My test is actually running with jboss 7/jdbc and the connection pool is defined with min-pool-size =10 and max-pool-size=400. > > Why would you think it is an issue with the connection pool? > > Thanks, > Anne > Hi Anne, You want to be able to run as many jobs productively at once as your hardware is capable of supporting. Usually something starting a 2 x number of CPUs is best. If you make several runs increasing the size of the pool each time, you will see a maximum throughput somewhere near there and then the performance will decrease as you add more and more connections. You can then use that sweet spot. Your test harness should make that pretty easy to find. Regards, Ken -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance