Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 40EA4476212 for ; Tue, 14 Jan 2003 10:18:55 -0500 (EST) Received: from mail.libertyrms.com (unknown [209.167.124.227]) by postgresql.org (Postfix) with ESMTP id AB8B547721B for ; Tue, 14 Jan 2003 10:10:50 -0500 (EST) Received: from andrew by mail.libertyrms.com with local (Exim 3.22 #3 (Debian)) id 18YSiM-0002Kv-00 for ; Tue, 14 Jan 2003 10:10:54 -0500 Date: Tue, 14 Jan 2003 10:10:54 -0500 From: Andrew Sullivan To: pgsql-performance@postgresql.org Subject: Re: Sun vs. Mac Message-ID: <20030114101054.B5335@mail.libertyrms.com> Mail-Followup-To: Andrew Sullivan , pgsql-performance@postgresql.org References: <20030114150008.49425.qmail@web21103.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20030114150008.49425.qmail@web21103.mail.yahoo.com>; from captainx0r@yahoo.com on Tue, Jan 14, 2003 at 07:00:08AM -0800 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/85 X-Sequence-Number: 732 On Tue, Jan 14, 2003 at 07:00:08AM -0800, CaptainX0r wrote: > Hello, > > I'm having some serious performance issues with PostgreSQL on > our newish SunFire 280R (1 900MHz ultrasparc III, 1 GB RAM). > It's painfully slow. It took me almost a week of tuning to get > it in the range of an old Mac G3 laptop. Now, a few days later, > after tweaking every nearly every parameter (only noting > decreased performance on some) in /etc/system and > $PGDATA/postgresql.conf it's about as fast as I can make it, but You should tell us about what version of Solaris you're running, what version of Postgres, and what options you have used. Did you split the WAL onto its own filesystem? You'll get a big win that way. Also, what fsync setting are you using (open_datasync is the fastest in my experience). Finally, the bottleneck on Solaris is both disk and process forking (fork() is notoriously slow on Solaris). Also, certain sort routines are abysmal. Replace the Solaris-provided qsort(). I have to say, however, that my experience indicates that Solaris is slower that the competition for Postgres. It still shouldn't be that bad. A -- ---- Andrew Sullivan 204-4141 Yonge Street Liberty RMS Toronto, Ontario Canada M2P 2A8 +1 416 646 3304 x110