X-Original-To: pgsql-performance-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 0270A9FB2F4 for ; Thu, 21 Sep 2006 18:49:42 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 60843-02 for ; Thu, 21 Sep 2006 18:49:32 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from noel.decibel.org (noel.decibel.org [67.100.216.10]) by postgresql.org (Postfix) with ESMTP id EA97D9FB2F0 for ; Thu, 21 Sep 2006 18:49:31 -0300 (ADT) Received: by noel.decibel.org (Postfix, from userid 1001) id 5A5E356442; Thu, 21 Sep 2006 16:49:15 -0500 (CDT) Received: (hashcash-sendmail, from uid 1001); Thu, 21 Sep 2006 16:49:14 -0500 Date: Thu, 21 Sep 2006 16:49:14 -0500 From: "Jim C. Nasby" To: Tom Lane Cc: yoav x , pgsql-performance@postgresql.org Subject: Re: PostgreSQL and sql-bench Message-ID: <20060921214913.GV28987@nasby.net> References: <20060921145244.13005.qmail@web35813.mail.mud.yahoo.com> <829.1158851565@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <829.1158851565@sss.pgh.pa.us> X-Operating-System: FreeBSD 6.0-RELEASE-p4 amd64 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.11 X-Hashcash: 1:20:060921:tgl@sss.pgh.pa.us::Z4aIw1QnN3ppcNeZ:00000000000000000000 0000000000000000000000001kGI X-Hashcash: 1:20:060921:yoav112003@yahoo.com::PkvgkTmkEDgQHWSK:00000000000000000 0000000000000000000000005ou2 X-Hashcash: 1:20:060921:pgsql-performance@postgresql.org::2sFJp7oH+tHrZVGa:00000 0000000000000000000000006sL0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.038 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200609/288 X-Sequence-Number: 20974 On Thu, Sep 21, 2006 at 11:12:45AM -0400, Tom Lane wrote: > yoav x writes: > > I've applied the following parameters to postgres.conf: > > > max_connections = 500 > > shared_buffers = 3000 > > work_mem = 100000 > > effective_cache_size = 3000000000 You just told the database that you have 23G of storage. effective_cache_size is measured in blocks, which are normally 8K. > Please see my earlier reply --- you ignored at least > checkpoint_segments, which is critical, and perhaps other things. > > Don't forget also that testing mysql/myisam against fsync = on > is inherently unfair. Even with fsync = off, there's still a non-trivial amount of overhead brought on by MVCC that's missing in myisam. If you don't care about concurrency or ACIDity, but performance is critical (the case that the MySQL benchmark favors), then PostgreSQL probably isn't for you. -- Jim Nasby jim@nasby.net EnterpriseDB http://enterprisedb.com 512.569.9461 (cell)