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

From Kevin Murphy
Subject Re: Building PG 8.2.3 for x86_64 on Mac OS X 10.4.9
Date
Msg-id F05411AD-3771-4185-A096-26CCB254A1B4@speakeasy.net
Whole thread Raw
In response to Re: Building PG 8.2.3 for x86_64 on Mac OS X 10.4.9  (Kevin Murphy <murphy2@speakeasy.net>)
List pgsql-general

On Apr 19, 2007, at 3:21 PM, Kevin Murphy wrote:
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.

The call to shmget() is failing with ENOMEM.  A standalone SYSV shared memory test program gives the same result when compiled with -arch x86_64.



OK, I finally found someone (Terry Lambert at Apple) to answer my question.  Here's the thread:


Excerpt: "It's trying to allocate the memory in the lower 4G of the process virtual address space, and unless you turn off the 4G page 0 mapping (or munamp() it after you're running but before you attempt to allocate shared memory), it's not going to see any free address space available."

Regards,
Kevin Murphy

pgsql-general by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: How does server handle clients that disconnect ungracefully?
Next
From: Jeff Lanzarotta
Date:
Subject: Re: How does server handle clients that disconnect ungracefully?