Re: shmget fails on OS X with proper settings

From: Jim Nasby <decibel(at)decibel(dot)org>
To: Christopher S Martin <martin(dot)christopher(dot)s(at)gmail(dot)com>
Cc: "Prashant Ranjalkar" <prashant(dot)ranjalkar(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: shmget fails on OS X with proper settings
Date: 2007-05-07 13:33:21
Message-ID: CA1DB7EE-D463-4826-99CB-BB1E0C8C1721@decibel.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On May 7, 2007, at 6:19 AM, Christopher S Martin wrote:
> No .pid files found in the data directory.
> The ipcs output doesn't list anything owned by the postgres user,
> or by root.

I'm guessing the issue here is shmall, which I believe is limiting
you to 4MB of shared memory. Is there *anything* using shared memory
in the ipcs report?

shmmax shouldn't be at fault; based on your error message PostgreSQL
is requesting less than shmmax.

Yes, if you boot verbosely it's normal to see all the shared memory
settings 'being set twice'. /etc/rc first runs through everything in /
etc/sysctl.conf, then it sets shared memory settings to defaults. The
reason that 'works' is that the kernel locks in all the shared memory
settings after the last one is set. That's why you have to put *all*
of the shm settings in sysctl.conf; if you don't then the sysctl
command in /etc/rc overwrites anything you set.
--
Jim Nasby jim(at)nasby(dot)net
EnterpriseDB http://enterprisedb.com 512.569.9461 (cell)

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Scott Ribe 2007-05-07 13:44:45 Re: shmget fails on OS X with proper settings
Previous Message Sinead O Brien 2007-05-07 13:23:01 Re: did not find any relation for existing table