Re: settings for 8.2.5 on Mac OS X 10.4.11

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Matthew Hixson <hixson(at)poindextrose(dot)org>
Cc: Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: settings for 8.2.5 on Mac OS X 10.4.11
Date: 2007-12-14 22:43:22
Message-ID: 14550.1197672202@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Matthew Hixson <hixson(at)poindextrose(dot)org> writes:
> What are good settings for shared_buffers and max_connections with
> the above software combo? Out of the box I'm getting the "Cannot
> allocate memory" message upon doing a 'make check'.

The best thing is to fix the OS' ridiculously small shmem limits.
I've got this in /etc/sysctl.conf:

kern.sysv.shmmax=33554432
kern.sysv.shmmin=1
kern.sysv.shmmni=32
kern.sysv.shmseg=8
kern.sysv.shmall=8192

and on a production DB you'd probably want shmmax and shmall
a good bit higher.

Don't forget to reboot after changing settings. Also, a
"sysctl -a | grep shm" is a good idea to make sure it "took";
OS X is infamously picky about these settings.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2007-12-14 23:12:00 Re: postgres writer process growing up too much
Previous Message Thomas Hart 2007-12-14 21:44:49 Re: Hijack!