Re: initdb memory segment creation error

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: questions <questions(dot)612(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: initdb memory segment creation error
Date: 2008-09-11 12:20:28
Message-ID: 17296.1221135628@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

questions <questions(dot)612(at)gmail(dot)com> writes:
> I am getting this error with initdb while creating shared segment -
> "memory segment exceeded available memory or swap space. To reduce the
> request size (currently 1785856 bytes), reduce PostgreSQL's shared_buffers
> parameter (currently 50)) and/or its max_connections parameter (currently
> 13)."
> Total memory is 256 MB and memory available to user processes is 178 MB.
> It's not an issue with shared segment exceeding SHMMAX but value of SHMMAX
> is 67108864 and SHMALL is 8192. It is not exactly a Postgresql problem but
> what am I missing here?

Hm, what else is running on the box? PG itself should fit in 256MB but
if you've got other stuff hogging memory, you might have little choice
but to buy more RAM.

(You should also double-check what SHMALL is measured in on your
platform; maybe that 8192 isn't pages but bytes ...)

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2008-09-11 12:25:18 Re: abusing plpgsql array variables
Previous Message Joao Ferreira gmail 2008-09-11 11:47:00 about partitioning