Re: FATAL: shmat(id=4096103) failed: Cannot allocate memory

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: CS DBA <cs_dba(at)consistentstate(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: FATAL: shmat(id=4096103) failed: Cannot allocate memory
Date: 2011-12-14 04:30:26
Message-ID: 27470.1323837026@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

CS DBA <cs_dba(at)consistentstate(dot)com> writes:
> I set postgres to use 2GB for shared_buffers and I get this when I try
> to start:
> FATAL: shmat(id=4096103) failed: Cannot allocate memory
> The only real difference from Fedora 14 is that on Fedora 16 I'm using
> the PAE kernel

That's not really surprising in a 32-bit environment --- you've only got
4GB of address space, in fact I think only 3GB in Linux, and that space
is kind of fragmented. Install 64-bit or back down shared_buffers to
1GB or so.

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Robert Matthew Cook 2011-12-14 18:11:35 Postgresql scheme standards tool
Previous Message CS DBA 2011-12-14 02:01:58 FATAL: shmat(id=4096103) failed: Cannot allocate memory