X-Original-To: pgsql-performance-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id B63AE9FB311 for ; Thu, 21 Sep 2006 12:10:26 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 62196-04 for ; Thu, 21 Sep 2006 15:09:39 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.234]) by postgresql.org (Postfix) with ESMTP id 0B5909FB22B for ; Thu, 21 Sep 2006 12:07:57 -0300 (ADT) Received: by wr-out-0506.google.com with SMTP id 55so375073wri for ; Thu, 21 Sep 2006 08:07:57 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=kKLbxpQmU3O+vyFzE5rdM+jsmrIIvYJEzL2eV7mS5wwzSqx9YT/KvaJFsT/jrQlTkU+b/ajIHPGuo1h4D4oMyxyj9+L1BzhwkIO1uf/9Xws94t2AHhdgLQGiGX9CuUof/1tDwtKl3twGofWPcJMlEZhLtlM8GZsGj+V98hvS8kI= Received: by 10.65.119.14 with SMTP id w14mr21430913qbm; Thu, 21 Sep 2006 08:07:56 -0700 (PDT) Received: by 10.64.96.15 with HTTP; Thu, 21 Sep 2006 08:07:56 -0700 (PDT) Message-ID: Date: Thu, 21 Sep 2006 17:07:56 +0200 From: "Guido Neitzer" To: "yoav x" Subject: Re: PostgreSQL and sql-bench Cc: pgsql-performance@postgresql.org In-Reply-To: <20060921145244.13005.qmail@web35813.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060921145244.13005.qmail@web35813.mail.mud.yahoo.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200609/280 X-Sequence-Number: 20966 Hi. Do you compare apples to apples? InnoDB tables to PostgreSQL? Are all needed indexes available? Are you sure about that? What about fsync? Does the benchmark insert a lot of rows? Have you tested placing the WAL on a separate disk? Is PostgreSQL logging more stuff? Another thing: have you analyzed the tables? Have you tested higher shared_buffers? And the last thing: there are lies, damn lies and benchmarks. What does a benchmark, which might be optimized for one DB, help you with your own db workload? There are soooo many things that can go wrong with a benchmark if you don't have real knowledge on how to optimize both DBMS that it is just worthless to use it anyway if you don't have the knowledge ... PostgreSQL outperforms MySQL in our environment in EVERY situation needed by the application. So, does the benchmark represent your work load? Does the benchmark result say anything for your own situation? Or is this all for the sake of running a benchmark? cug On 9/21/06, yoav x wrote: > Hi > > After upgrading DBI and DBD::Pg, this benchmark still picks MySQL as the winner (at least on Linux > RH3 on a Dell 1875 server with 2 hyperthreaded 3.6GHz CPUs and 4GB RAM). > I've applied the following parameters to postgres.conf: > > max_connections = 500 > shared_buffers = 3000 > work_mem = 100000 > effective_cache_size = 3000000000 > > Most queries still perform slower than with MySQL. > Is there anything else that can be tweaked or is this a limitation of PG or the benchmark? > > Thanks. -- PostgreSQL Bootcamp, Big Nerd Ranch Europe, Nov 2006 http://www.bignerdranch.com/news/2006-08-21.shtml