pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chris Mair <list@1006.org>
To: pgsql-performance@postgresql.org
Cc: markir@paradise.net.nz
Cc: josh@agliodbs.com
Cc: llonergan@greenplum.com
Subject: Re: bad performance on Solaris 10
Date: Wed, 05 Apr 2006 23:31:25 +0200
Message-ID: <1144272685.4562.43.camel@dell.home.lan> (raw)
In-Reply-To: <1144111178.3723.80.camel@dell.home.lan>
References: <1144111178.3723.80.camel@dell.home.lan>

Hi,

thanks for all replys.

I've done a few tests.

Remounting the fs where $PGDATA lives with "forcedirectio"
(together with logging, that is default) did not help
(if not harm...) performance.

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!

Playing around with these modifications I find that it's
actually just the
  wal_buffers = 128
alone which makes all the difference!

Quickly playing around with wal_buffers on Linux and Mac OS X
I see it influences the performance of my test a bit, maybe in the
10-20% range (I'm really doing quick tests, nothing systematic),
but nowhere near as spectacularly as on Solaris.

I'm happy so far, but I find it very surprising that this single
parameter has such an impact (only on) Solaris 10.

(my test program is a bulk inserts using PQputCopyData in large
transactions - all test were 8.1.3).

Bye, Chris







view thread (30+ messages)  latest in thread

Message-ID: <1144272685.4562.43.camel@dell.home.lan>
Permalink:  ../1144272685.4562.43.camel@dell.home.lan/
Also on:    postgresql.org/message-id/1144272685.4562.43.camel@dell.home.lan

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: list@1006.org, markir@paradise.net.nz, josh@agliodbs.com, llonergan@greenplum.com
  Subject: Re: bad performance on Solaris 10
  In-Reply-To: <1144272685.4562.43.camel@dell.home.lan>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox