Re: [GENERAL] initdb fails to allocate shared memory

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "A(dot)M(dot)" <agentm(at)themactionfaction(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [GENERAL] initdb fails to allocate shared memory
Date: 2010-08-25 19:28:34
Message-ID: 23817.1282764514@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

I wrote:
> it appears from your report that OS X is also using ENOMEM when SHMALL
> is exceeded, which is not all that surprising because actually none of
> the spec-defined error codes cover SHMALL exhaustion.

A look into
http://www.opensource.apple.com/source/xnu/xnu-1504.7.4/bsd/kern/sysv_shm.c
confirms this:

if ((user_ssize_t)(shm_committed + btoc(total_size)) > shminfo.shmall)
return ENOMEM;

So this behavior is probably common among BSDen.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message wei725 2010-08-25 19:29:21 How to convert a binary filed to an integer field?
Previous Message bricklen 2010-08-25 19:20:02 Re: unexpected message type 0x58 during COPY from stdin

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2010-08-25 19:39:19 Re: Python 2.7 deprecated the PyCObject API?
Previous Message A.M. 2010-08-25 19:18:03 new notify payload as string