Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UCe9U-0003ex-Sf for pgsql-performance@arkaria.postgresql.org; Mon, 04 Mar 2013 22:46:36 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UCe9U-0003lf-8Y for pgsql-performance@arkaria.postgresql.org; Mon, 04 Mar 2013 22:46:36 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UCe9T-0003lZ-6L for pgsql-performance@postgresql.org; Mon, 04 Mar 2013 22:46:35 +0000 Received: from moutng.kundenserver.de ([212.227.126.186]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UCe9R-0008M8-OU for pgsql-performance@postgresql.org; Mon, 04 Mar 2013 22:46:34 +0000 Received: from [192.168.1.110] (mail.highperformancepostgresql.com [71.179.240.8]) by mrelayeu.kundenserver.de (node=mrbap1) with ESMTP (Nemesis) id 0MDF9A-1U0XDH1uYe-00Glho; Mon, 04 Mar 2013 23:46:31 +0100 Message-ID: <51352445.4050305@2ndQuadrant.com> Date: Mon, 04 Mar 2013 17:46:29 -0500 From: Greg Smith User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: Costin Oproiu CC: pgsql-performance@postgresql.org Subject: Re: pgbench intriguing results: better tps figures for larger scale factor References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:ldTMX/fkXrh2usT2ierXhT13tSttKj70q3abfI/zWIP QYhXyUjU41jS3K+b6wrYmA2dGtWm4sJJ4s2sqvOYVjkl5pG4oA Y+tkYM8oA5lBfzGRtjKoX/PymC37xnWJysr9eRTZyYvcM9qJFx cAY8MMM+1prjt2I7TlbRU/6CelZQxqEbN9U5pm4owBiZ4HBkyx DpuWNO6LT2zmCD//PAvJrXtK+Jj9ZBHfqPAXnqeZB5FlO8N3RH LcL8Ap0kQM3kLRPSk4poiqJcDFYdfkaunvY0/mpKkSdpg9+sur qPPQqdejKhCFpWAAb61kDqPz6Nisfp1rOE0xA0xGVQNNoXgEqh zAbpprsJa8N+f13wUZzE= X-Pg-Spam-Score: -1.9 (-) 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 2/26/13 4:45 PM, Costin Oproiu wrote: > First, I've got no good explanation for this and it would be nice to > have one. As far as I can understand this issue, the heaviest update > traffic should be on the branches table and should affect all tests. From http://www.postgresql.org/docs/current/static/pgbench.html : "For the default TPC-B-like test scenario, the initialization scale factor (-s) should be at least as large as the largest number of clients you intend to test (-c); else you'll mostly be measuring update contention. There are only -s rows in the pgbench_branches table, and every transaction wants to update one of them, so -c values in excess of -s will undoubtedly result in lots of transactions blocked waiting for other transactions." I normally see peak TPS at a scale of around 100 on current generation hardware, stuff in the 4 to 24 core range. Nowadays there really is no reason to consider running pgbench on a system with a smaller scale than that. I normally get a rough idea of things by running with scales 100, 250, 500, 1000, 2000. -- Greg Smith 2ndQuadrant US greg@2ndQuadrant.com Baltimore, MD PostgreSQL Training, Services, and 24x7 Support www.2ndQuadrant.com -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance