X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id C3EB311F66C1 for ; Wed, 5 Apr 2006 18:48:28 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 39862-09 for ; Wed, 5 Apr 2006 18:48:28 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mx3.surnet.cl (mx3.surnet.cl [216.155.73.182]) by postgresql.org (Postfix) with ESMTP id 7D1D611F66CA for ; Wed, 5 Apr 2006 18:48:26 -0300 (ADT) Received: from unknown (HELO cluster.surnet.cl) ([216.155.73.165]) by mx3.surnet.cl with ESMTP; 05 Apr 2006 17:48:24 -0400 X-IronPort-AV: i="4.03,167,1141614000"; d="scan'208"; a="2525055:sNHT206504616" Received: from alvh.no-ip.org (201.220.123.5) by cluster.surnet.cl (7.0.043) (authenticated as alvherre@surnet.cl) id 43A978FD00D8F31C; Wed, 5 Apr 2006 17:48:25 -0400 Received: by alvh.no-ip.org (Postfix, from userid 1000) id AD108C2DC22; Wed, 5 Apr 2006 17:48:24 -0400 (CLT) Date: Wed, 5 Apr 2006 17:48:24 -0400 From: Alvaro Herrera To: Luke Lonergan Cc: Chris Mair , pgsql-performance@postgresql.org, markir@paradise.net.nz, Josh Berkus Subject: Re: bad performance on Solaris 10 Message-ID: <20060405214824.GB13673@surnet.cl> Mail-Followup-To: Luke Lonergan , Chris Mair , pgsql-performance@postgresql.org, markir@paradise.net.nz, Josh Berkus References: <1144272685.4562.43.camel@dell.home.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11+cvs20060330 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=1.679 required=5 tests=[AWL=-0.240, DNS_FROM_RFC_ABUSE=0.479, DNS_FROM_RFC_POST=1.44] X-Spam-Score: 1.679 X-Spam-Level: * X-Archive-Number: 200604/68 X-Sequence-Number: 18152 Luke Lonergan wrote: > Chris, > > On 4/5/06 2:31 PM, "Chris Mair" wrote: > > > Doing what http://blogs.sun.com/roller/page/jkshah suggests: > > wal_sync_method = fsync (unchanged) > > wal_buffers = 128 (was 8) > > checkpoint_segments = 128 (was 3) > > bgwriter_all_percent = 0 (was 0.333) > > bgwriter_all_maxpages = 0 (was 5) > > and leaving everything else default (solarispackages from pgfoundry) > > increased performance ~ 7 times! > > In the recent past, Jignesh Shaw of Sun MDE discovered that changing the > bgwriter_* parameters to zero had a dramatic positive impact on performance. This essentially means stopping all bgwriter activity, thereby deferring all I/O until checkpoint. Was this considered? With checkpoint_segments to 128, it wouldn't surprise me that there wasn't any checkpoint executed at all during the whole test ... -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.