Re: Out of memory errors on OS X

From: Jeffrey Melloy <jmelloy(at)visualdistortion(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Out of memory errors on OS X
Date: 2004-09-30 04:24:38
Message-ID: 415B8A86.7080506@visualdistortion.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane wrote:

>Jeffrey Melloy <jmelloy(at)visualdistortion(dot)org> writes:
>
>
>>I have a couple users trying to install Postgres on OS X. To the best
>>of my knowledge, both of them are using 7.4.5/10.3.5, and got identical
>>errors while trying to init the database:
>>
>>
>
>They need to increase the system's shmmax limit (sysctl kern.sysv.shmmax,
>which is only 4MB by default). You can run one postmaster that way ...
>not very well, but it will run ... but you definitely can't start two.
>I surmise that they already had one postmaster running?
>
>In OSX 10.3 I believe that the recommended way to fix this is to edit
>/etc/rc's setting, and then reboot. AFAICS there is no reason not to
>raise shmmax to 50% or so of physical RAM.
>
>I have asked Apple about using a saner default for shmmax, but a few
>more complaints in their bug system wouldn't hurt.
>
> regards, tom lane
>
>
I'll pass it on, though I'm wondering why they would have that problem
and others (myself included) don't.

Jeff

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Murali Mohan Kasetty 2004-09-30 04:30:13 Re: 7.3.4 vacuum/analyze error
Previous Message Ed L. 2004-09-30 04:23:18 Re: 7.3.4 vacuum/analyze error