Re: shared memory on OS X - 7.4beta4

From: John DeSoi <jd(at)icx(dot)net>
To: Adam Witney <awitney(at)sghms(dot)ac(dot)uk>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: shared memory on OS X - 7.4beta4
Date: 2003-10-26 01:01:13
Message-ID: E55E4822-074F-11D8-90FD-0030656EE7B2@icx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers


On Friday, October 24, 2003, at 10:19 AM, Adam Witney wrote:

> I don't know what this error is particularly, but just to say that
> 7.4beta5
> compiles and starts up fine on my OSX 10.2.8 machine

OK, I compiled beta 5 and put my rest SHMMAX back to the default
settings as provided by OS X. Still the same error:

FATAL: could not create shared memory segment: Invalid argument
DETAIL: Failed system call was shmget(key=5432001, size=10444800,
03600).
HINT: This error usually means that PostgreSQL's request for a shared
memory segment exceeded your kernel's SHMMAX parameter. You can either
reduce the request size or reconfigure the kernel with larger SHMMAX.
To reduce the request size (currently 10444800 bytes), reduce
PostgreSQL's shared_buffers parameter (currently 1000) and/or its
max_connections parameter (currently 100).
If the request size is already small, it's possible that it is less
than your kernel's SHMMIN parameter, in which case raising the request
size or reconfiguring SHMMIN is called for.
The PostgreSQL documentation contains more information about shared
memory configuration.

Here is how I configured it:

./configure --prefix=/Unix/postgresql --enable-locale
--without-readline --with-includes=/sw/include --with-libraries=/sw/lib
--with-openssl=/sw/lib

Next I upgraded to 10.2.8. Same issue.

So you have not modified your memory settings in
/System/Library/StartupItems/SystemTuning/SystemTuning and you don't
get this error?

I'm using a PowerBook G4 with 512M of memory.

Thanks,

John DeSoi, Ph.D.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Lynn.Tilby 2003-10-26 02:48:52 Re: no records returned
Previous Message elein 2003-10-26 00:27:23 Re: HTML generation with PL/PgSQL

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2003-10-26 01:04:44 Re: Call for port reports
Previous Message Peter Eisentraut 2003-10-26 00:49:58 Re: Call for port reports