Skip site navigation (1) Skip section navigation (2)

Adjusting Shared Memory with sysctl.conf not working?

From: Doug Graham <duggram(at)gmail(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Adjusting Shared Memory with sysctl.conf not working?
Date: 2009-03-27 22:05:12
Message-ID: e0c856fe0903271505k597e2090jdaac68d0bff1dd8a@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-novice
I'm trying to install Postresql on my Mac Book Pro which has 4GB ram and
runs OS X 10.5.6. Postgres won't install because it says I don't have more
than 32MB of shared memory. So as they tell you in their readme I created a
file /etc/sysctl.conf with these lines:

kern.sysv.shmmax=16777216
kern.sysv.shmall=16777216
kern.sysv.shmmin=1
kern.sysv.shmmni=4096
kern.sysv.shmseg=8

Reboot multiple times. Here's what shared memory I have running now:

DougMBP:~ duggram$ sysctl -a | grep shm
kern.exec: unknown type returned
kern.sysv.shmall: 16777216
kern.sysv.shmseg: 8
kern.sysv.shmmni: 4096
kern.sysv.shmmin: 1
kern.sysv.shmmax: 4194304

Which is more than Postgres says is required. Any suggestions on what I need
to do to get Postgres to install?

Any advice appreciated, Doug

Responses

pgsql-novice by date

Next:From: Tom LaneDate: 2009-03-27 23:22:18
Subject: Re: Adjusting Shared Memory with sysctl.conf not working?
Previous:From: Tom LaneDate: 2009-03-27 19:15:07
Subject: Re: Meaning of "$$"

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group