Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 305C4632B63 for ; Sun, 18 Jul 2010 15:36:34 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 94974-04 for ; Sun, 18 Jul 2010 18:36:26 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qy0-f174.google.com (mail-qy0-f174.google.com [209.85.216.174]) by mail.postgresql.org (Postfix) with ESMTP id E74AD632A8A for ; Sun, 18 Jul 2010 15:36:25 -0300 (ADT) Received: by qyk35 with SMTP id 35so1305233qyk.19 for ; Sun, 18 Jul 2010 11:36:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=1mhlhj6LSYlB5CwzHETSSFmme1v6nUDDBqKVbzrLE+o=; b=EVS9sZFrSzx2N7FrmL/vLjS4idjNZ8z4iVbKP0pI0S5LOYUBhR1Tstd3cp56F9sazC 2Wuh5WWLd7u84zOKhP7Ary4AzvZkp/hTzXLeZsQ96xnT+d/ZTAbEFOgwMfvlshdxmjFe OMy2hBe6+LZJWbzhkelziJ236n9J9p9CMN9uI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=EXOCAoE4+NU1HLnDV4z9xLpa0ZyyqxtnuhwHBYTA8vj1ogwA20IQipusa7zlTLWWQq w6ADQxgsW8fUxz/S5KCWzBfWcFOduZz4GmqZaGNHqwpCW/QeyDOghEh7pm3cNGNSp7Da pOnOCpvRYYHAbR/mZSR8iPnPMVUdk1pBnvZP4= MIME-Version: 1.0 Received: by 10.224.79.28 with SMTP id n28mr3653961qak.175.1279478184815; Sun, 18 Jul 2010 11:36:24 -0700 (PDT) Received: by 10.229.42.15 with HTTP; Sun, 18 Jul 2010 11:36:24 -0700 (PDT) In-Reply-To: References: <4C369346.6010501@postnewspapers.com.au> <8760.1278650566@sss.pgh.pa.us> <1278680186.1914.36.camel@bnicholson-desktop> <4C36F57102000025000332F6@gw.wicourts.gov> <4C36FEAD02000025000332FC@gw.wicourts.gov> <4C37A9C1.1060405@2ndquadrant.com> <4C37791C0200002500033379@gw.wicourts.gov> <4C37CBFB.1000800@agliodbs.com> <4C37EA1D.6000008@postnewspapers.com.au> <4C38BF03.6060503@agliodbs.com> <19244.1278787866@sss.pgh.pa.us> <4C3AF564.5030204@postnewspapers.com.au> <4C3AC73002000025000333ED@gw.wicourts.gov> <4C43391B.1040600@2ndquadrant.com> Date: Mon, 19 Jul 2010 00:06:24 +0530 Message-ID: Subject: Re: Pooling in Core WAS: Need help in performance tuning. From: Rajesh Kumar Mallah To: Greg Smith Cc: Kevin Grittner , Matthew Wakeling , Craig Ringer , pgsql-performance@postgresql.org Content-Type: multipart/alternative; boundary=00c09f972a7db42e53048badba23 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-10 required=5 tests=BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201007/274 X-Sequence-Number: 39663 --00c09f972a7db42e53048badba23 Content-Type: text/plain; charset=ISO-8859-1 Looks like , pgbench cannot be used for testing with pgbouncer if number of pgbench clients exceeds pool_size + reserve_pool_size of pgbouncer. pgbench keeps waiting doing nothing. I am using pgbench of postgresql 8.1. Are there changes to pgbench in this aspect ? regds Rajesh Kumar Mallah. On Sun, Jul 18, 2010 at 11:38 PM, Rajesh Kumar Mallah < mallah.rajesh@gmail.com> wrote: > > > On Sun, Jul 18, 2010 at 10:55 PM, Greg Smith wrote: > >> Rajesh Kumar Mallah wrote: >> >>> the no of clients was 10 ( -c 10) carrying out 10000 transactions each >>> (-t 10000) . >>> pgbench db was initilised with scaling factor -s 100. >>> >>> since client count was less there was no queuing of requests in pgbouncer >>> i would prefer to say it was in 'passthrough' mode. >>> >> >> Of course pgbouncer is going decrease performance in this situation. >> You've added a whole layer to things that all traffic has to pass through, >> without a setup that gains any benefit from the connection pooling. Try >> making the client count 1000 instead if you want a useful test. >> > > Dear Greg, > > my max_client is 300 shall i test with client count 250 ? > if so what should be the scaling factor while initializing > the pgbench db? > > >> -- >> Greg Smith 2ndQuadrant US Baltimore, MD >> PostgreSQL Training, Services and Support >> greg@2ndQuadrant.com www.2ndQuadrant.us >> >> > --00c09f972a7db42e53048badba23 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Looks like ,

pgbench cannot be used for testing with pgbouncer if n= umber of
pgbench clients exceeds pool_size + reserve_pool_size of pgboun= cer.
pgbench keeps waiting doing nothing. I am using pgbench=A0 of postg= resql 8.1.
Are there changes to pgbench in this aspect ?

regds
Rajesh Kumar = Mallah.

On Sun, Jul 18, 2010 at 11:38 PM,= Rajesh Kumar Mallah <mallah.rajesh@gmail.com> wrote:


On Sun, Jul 18, 2010 at 10:55 PM, Greg = Smith <greg@2ndquadrant.com> wrote:
Rajesh Kumar Mallah wrote:
the no of clients was 10 ( -c 10) =A0carrying out 10000 transactions each (= -t 10000) .
pgbench db was initilised with scaling =A0factor -s 100.

since client count was less there was no queuing of requests in pgbouncer i would prefer to say =A0it was in 'passthrough' mode.

Of course pgbouncer is going decrease performance in this situation. =A0You= 've added a whole layer to things that all traffic has to pass through,= without a setup that gains any benefit from the connection pooling. =A0Try= making the client count 1000 instead if you want a useful test.

Dear Greg,

my=A0 max_client is 300 shall= i test=A0 with client count 250 ?
if so what should be the scaling fact= or while initializing
the pgbench db?


--
Greg Smith =A02ndQuadrant US =A0Baltimore, MD
PostgreSQL Training, Services and Support
greg@2ndQuadrant.com =A0 www.2ndQuadrant.us



--00c09f972a7db42e53048badba23--