Re: shared_buffers > 284263 on OS X

From: Guido Neitzer <lists(at)event-s(dot)net>
To: Brian Wipf <brian(at)clickspace(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: shared_buffers > 284263 on OS X
Date: 2006-11-19 15:20:46
Message-ID: F8BE5B53-C2CE-4592-B706-C443E3882BD3@event-s.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Am 19.11.2006 um 04:13 schrieb Brian Wipf:

> It certainly is unfortunate if Guido's right and this is an upper
> limit for OS X. The performance benefit of having high
> shared_buffers on our mostly read database is remarkable.

I hate to say that, but if you want best performance out of
PostgreSQL, Mac OS X (Server) isn't the best OS to achieve this. This
might change in the future (who knows), but currently you get more
out of Linux. Brendan might have some of my old benchmarks. We wrote
a couple of mails about that a couple of months ago.

If you're interested, I can run a pgbench benchmark on my desktop
machine in the company comparing Mac OS X Tiger to Yellow Dog Linux
with 8.1.5 and 8.2beta3. If I remember correctly I have YDL installed
on a second hard drive and should be about a couple of minutes to
install the latest PostgreSQL release.

So, there is no need for you to do the testing of YDL on your Xserves
without knowing pretty much for sure, that it will bring you some
benefit.

As far as I remember I got around 50% to 80% better performance with
Linux on the same machine with same settings but that was in times
when I hardly new anything about optimizing the OS and PostgreSQL for
OLTP performance.

Some hints from what I have learned in the past about PostgreSQL on
Mac OS X / Apple machines:

- Turn off Spotlight on all harddrives on the server (in /etc/
hostconfig)

- Use the latest compilers (gcc) and PostgreSQL versions (I'm sure,
you do ... ;-)).

- If you need the highest possible performance, use Linux instead of
Mac OS X for the DB server. :-/

I know that some of the tips don't help with your current setup.
Perhaps the switch to Linux on the DB machines might help. But I
don't know whether they work good with the XserveRAID you have. Might
bring you some headache - I don't know, perhaps you can find opinions
on the net.

Regarding the memory test I also tried it on Leopard and it seems
that the problem persists. Perhaps someone from Apple can say
something about that. We might ask on the Darwin list.

I'll post some results tomorrow.

cug

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Ron Mayer 2006-11-19 17:01:11 Re: Postgres server crash
Previous Message Tom Lane 2006-11-19 06:51:05 Re: Postgres server crash