Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 6B9EB632E18 for ; Mon, 28 Jun 2010 14:37:34 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 28199-08 for ; Mon, 28 Jun 2010 17:37:27 +0000 (UTC) X-Greylist: delayed 00:24:40.775449 by SQLgrey-1.7.6 Received: from mail-px0-f174.google.com (mail-px0-f174.google.com [209.85.212.174]) by mail.postgresql.org (Postfix) with ESMTP id 5B3F3633787 for ; Mon, 28 Jun 2010 14:37:27 -0300 (ADT) Received: by pxi8 with SMTP id 8so1906563pxi.19 for ; Mon, 28 Jun 2010 10:37:26 -0700 (PDT) Received: by 10.142.209.15 with SMTP id h15mr6112518wfg.150.1277745162301; Mon, 28 Jun 2010 10:12:42 -0700 (PDT) Received: from Craig-Jamess-MacBook-Pro.local (wsip-70-167-124-126.sd.sd.cox.net [70.167.124.126]) by mx.google.com with ESMTPS id b2sm6229007rvn.7.2010.06.28.10.12.40 (version=SSLv3 cipher=RC4-MD5); Mon, 28 Jun 2010 10:12:41 -0700 (PDT) Message-ID: <4C28D809.7070707@emolecules.com> Date: Mon, 28 Jun 2010 10:12:41 -0700 From: Craig James User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.10) Gecko/20100512 Thunderbird/3.0.5 MIME-Version: 1.0 To: Greg Smith CC: pgsql-performance@postgresql.org Subject: Re: pgbench results on a new server References: <4BBCFB12.1010306@emolecules.com> <4BBD3A17.90209@emolecules.com> <4C23FD52.40508@emolecules.com> <23596.1277438692@sss.pgh.pa.us> <4C24B3BB.3070901@emolecules.com> <2286.1277477230@sss.pgh.pa.us> <4C24D679.7030701@emolecules.com> <6203.1277485291@sss.pgh.pa.us> <4C24FB0D.4020701@emolecules.com> <4C24FD82.4070100@2ndquadrant.com> In-Reply-To: <4C24FD82.4070100@2ndquadrant.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.001 tagged_above=-10 required=5 tests=BAYES_40=-0.001, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201006/502 X-Sequence-Number: 39358 On 6/25/10 12:03 PM, Greg Smith wrote: > Craig James wrote: >> I've got a new server and want to make sure it's running well. > > Any changes to the postgresql.conf file? Generally you need at least a > moderate shared_buffers (1GB or so at a minimum) and checkpoint_segments > (32 or higher) in order for the standard pgbench test to give good results. max_connections = 500 shared_buffers = 1000MB work_mem = 128MB synchronous_commit = off full_page_writes = off wal_buffers = 256kB checkpoint_segments = 30 effective_cache_size = 4GB For fun I ran it with the installation defaults, and it never got above 1475 TPS. >> pgbench -c20 -t 5000 -U test >> tps = 5789 >> pgbench -c30 -t 3333 -U test >> tps = 6961 >> pgbench -c40 -t 2500 -U test >> tps = 2945 > > General numbers are OK, the major drop going from 30 to 40 clients is > larger than it should be. I'd suggest running the 40 client count one > again to see if that's consistent. It is consistent. When I run pgbench from a different server, I get this: pgbench -c40 -t 2500 -U test tps = 7999 pgbench -c100 -t 1000 -U test tps = 6693 Craig