Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id D4FE31337BE9 for ; Tue, 3 May 2011 19:57:53 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 41701-01-5 for ; Tue, 3 May 2011 22:57:35 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.9]) by mail.postgresql.org (Postfix) with ESMTP id 92B1C1337C2B for ; Tue, 3 May 2011 19:44:25 -0300 (ADT) Received: from [192.168.1.3] (mail.highperformancepostgresql.com [71.179.240.8]) by mrelayeu.kundenserver.de (node=mreu1) with ESMTP (Nemesis) id 0MSVlI-1Q9n4o1CDM-00RYtQ; Wed, 04 May 2011 00:44:19 +0200 Message-ID: <4DC0853D.4070401@2ndquadrant.com> Date: Tue, 03 May 2011 18:44:13 -0400 From: Greg Smith User-Agent: Thunderbird 2.0.0.24 (X11/20100317) MIME-Version: 1.0 To: Greg Spiegelberg CC: Alan Hodgson , pgsql-performance@postgresql.org Subject: Re: amazon ec2 References: <201105031241.20348.ahodgson@simkin.ca> <201105031309.52154.ahodgson@simkin.ca> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:4dy/5mMf/IbAhFAFBUhkVm0vFn7KTftvtQguWCB761u xFpcjr1jmv9gxdcWMjc1avFVsoeuQu/DQOVSOTqc9BjWBc0y83 8TBTIfzpdbM+XMzOd4VUtmttAN3yxNaz5JsnvRPX8oYls62dVJ S6Dq9VIrTfxKvLpCAlNIiH8wjjWKyhuJbL4rbvdOnvUYnjmB8x L1/CgljA/B7beRfAFG3Yqsk7/56+utpaZhQQgPS29g= X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201105/37 X-Sequence-Number: 43546 Greg Spiegelberg wrote: > I ran pgbench tests late last year comparing EC2, GoGrid, a 5 year-old > lab server and a new server. Whether I used a stock postgresql.conf > or tweaked, the current 8.4 or 9.0, or varied the EC2 instance size > EC2 was always at the bottom ranging from 409.834 to 693.100 tps. > GoGrid's pgbench TPS numbers in similar tests were, on average, 3X > that of EC2 (1,399.550 to 1,631.887 tps). The tests I conducted were > small with 10 connections and total 5,000 transactions. The single > variable that helped pgbench tests in EC2 was to select an instance > size where the number of cores was equal to or greater than the number > of connections I used in the tests however this only improved things > slightly (715.931 tps). The standard pgbench test is extremely sensitive to how fast transactions can be committed to disk. That doesn't reflect what performance looks like on most real-world workloads, which tend toward more reads. The fact that GoGrid is much faster at doing commits than EC2 is interesting, but that's only one of many parameters that impact performance on more normal workloads. The one parameter that can change how the test runs is turning off synchronous_commit, which pulls the commit time out of the results to some extent. And if you'd switched pgbench to a more read-oriented test, you'd discover it becomes extremely sensitive to the size of the database, as set by pgbench's scale parameter during setup. -- Greg Smith 2ndQuadrant US greg@2ndQuadrant.com Baltimore, MD PostgreSQL Training, Services, and 24x7 Support www.2ndQuadrant.us "PostgreSQL 9.0 High Performance": http://www.2ndQuadrant.com/books