Re: [HACKERS] Error: shmget failed - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] Error: shmget failed
Date
Msg-id 23209.940954924@sss.pgh.pa.us
Whole thread Raw
In response to Error: shmget failed  (Roberto Joao Lopes Garcia <roberto@mha.com.br>)
Responses Re: [HACKERS] Error: shmget failed
List pgsql-hackers
Roberto Joao Lopes Garcia <roberto@mha.com.br> writes:
> I tried to start postmaster and it report an error, see bellow:
> IpcMemoryCreate: shmget failed (Invalid argument) key=5432001,
> size=1073152, permission=600
> FATAL 1:  ShmemCreate: cannot create region

As a quick hack you can start the postmaster with smaller-than-
normal -B and -N (say -B 40 -N 20).  Long term solution is to
increase your kernel's SHMMAX limit to more than 1 megabyte.

I thought we had adjusted the default -B and -N to stay just
under a meg, which is the default SHMMAX value on many kernels.
But it looks like someone chewed up some more shared memory when
I wasn't looking :-(.
        regards, tom lane


pgsql-hackers by date:

Previous
From: wieck@debis.com (Jan Wieck)
Date:
Subject: Re: [HACKERS] Function-manager redesign: second draft (long)
Next
From: Bruce Momjian
Date:
Subject: Re: System indexes are never unique indexes( was RE: [HACKERS] mdnblocksis