pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Sullivan <andrew@libertyrms.info>
To: pgsql-performance@postgresql.org
Subject: Re: Sun vs. Mac - best Postgres platform?
Date: Tue, 14 Jan 2003 13:30:46 -0500
Message-ID: <20030114133046.T5335@mail.libertyrms.com> (raw)
In-Reply-To: <20030114181054.25701.qmail@web21109.mail.yahoo.com>
References: <1042572384.15544.84.camel@huli>
	<20030114181054.25701.qmail@web21109.mail.yahoo.com>

On Tue, Jan 14, 2003 at 10:10:54AM -0800, CaptainX0r wrote:
> > could you post your $PGDATA/postgresql.conf for our viewing
> > pleasure ?
> 
> max_connections = 64
> shared_buffers = 65536          # 1/2 total RAM /8K
> sort_mem = 100000               # min 64, size in KB
             ^^^^^^
There's your problem.  Don't set that anywhere near that high. 
If you run 2 queries that require sorting, _each sort_ can use up to
100000 K.  Which can chew up all your memory pretty fast.

> effective_cache_size = 65536    # typically 8KB each

What basis did you have to change this?  Have you done work figuring
out how big the kernel's disk cache is regularly on that system?

> Hannu brings up a good point - one that was debated before my
> attempts at making Solaris faster.  If you were going to make a
> fast postgres server what would you use?  Assuming you could
> afford a SunFire 280R (~$8k?), would that money be better spent
> on a (say) Dell server running (say) linux?  We're doing light

I've been finding FreeBSD way faster than Linux.  But yes.

A
-- 
----
Andrew Sullivan                         204-4141 Yonge Street
Liberty RMS                           Toronto, Ontario Canada
<andrew@libertyrms.info>                              M2P 2A8
                                         +1 416 646 3304 x110




view thread (7+ messages)  latest in thread

Message-ID: <20030114133046.T5335@mail.libertyrms.com>
Permalink:  ../20030114133046.T5335@mail.libertyrms.com/
Also on:    postgresql.org/message-id/20030114133046.T5335@mail.libertyrms.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: andrew@libertyrms.info
  Subject: Re: Sun vs. Mac - best Postgres platform?
  In-Reply-To: <20030114133046.T5335@mail.libertyrms.com>
  References: <1042572384.15544.84.camel@huli> <20030114181054.25701.qmail@web21109.mail.yahoo.com> <20030114133046.T5335@mail.libertyrms.com>

* 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