Building PG 8.2.3 for x86_64 on Mac OS X 10.4.9 - Mailing list pgsql-general

From Kevin Murphy
Subject Building PG 8.2.3 for x86_64 on Mac OS X 10.4.9
Date
Msg-id E9A9FB08-6F8E-43BD-A93C-0DEDD979D45B@speakeasy.net
Whole thread Raw
Responses Re: Building PG 8.2.3 for x86_64 on Mac OS X 10.4.9
Re: Building PG 8.2.3 for x86_64 on Mac OS X 10.4.9
List pgsql-general
Has anybody tried making a 64-bit PostgreSQL on an Apple XServe w/
Intel Woodcrest CPU's?  My compile works, but the 'make check' fails
because of failure to allocate shared memory.  There's plenty of SYSV
memory available.

I compiled using:

./configure --without-readline --prefix=/usr/local/pgsql-8.2.3
CFLAGS='-arch x86_64'

log/initdb.log contains:

creating template1 database in /usr/local/src/postgresql-8.2.3/src/
test/regress/./tmp_check/data/base/1 ... FATAL:  \
could not create shared memory segment: Cannot allocate memory
DETAIL:  Failed system call was shmget(key=1, size=1810432, 03600).
HINT:  This error usually means that PostgreSQL's request for a
shared memory segment exceeded available memory or s\
wap space. To reduce the request size (currently 1810432 bytes),
reduce PostgreSQL's shared_buffers parameter (curre\
ntly 50) and/or its max_connections parameter (currently 10).

Output of: sudo ipcs -m -b:

Shared Memory:
T     ID     KEY        MODE       OWNER    GROUP  SEGSZ

(no shared memory segments in use)

/etc/sysctl.conf contains:

kern.sysv.shmmax=268435456
kern.sysv.shmmin=1
kern.sysv.shmmni=32
kern.sysv.shmseg=8
kern.sysv.shmall=65536

I just started a 32-bit instance of PostgreSQL with no problems on
this box, and it showed:

sudo ipcs -m -b
Shared Memory:
T     ID     KEY        MODE       OWNER    GROUP  SEGSZ
m 131071    5432001 --rw------- postgres    staff 126763008

Thanks,
Kevin Murphy


pgsql-general by date:

Previous
From: Oleg Bartunov
Date:
Subject: Re: tsearch2 benchmarks, Oleg gets prize
Next
From: Andrew Toth
Date:
Subject: Re: Download source