pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Fork <mfork00@yahoo.com>
To: pgsql-admin@postgresql.org
Subject: FreeBSD SHMMAX
Date: Fri, 11 Jun 2004 16:56:28 -0400
Message-ID: <cad69n$1fh6$1@news.hub.org> (raw)

All,

I am trying to get Postgres running on FreeBSD and am running into problems
with shared mem.  Here is the postgres error messge:

FATAL:  could not create shared memory segment: Cannot allocate memory
DETAIL:  Failed system call was shgmet(key=5432001, size=103407616, 03600).
HINT:  This error usually means that PostgreSQL's request for a shared
memory segment exceeded available memory or swap space.
To reduce the request size (currently 103407616 bytes), reduce PostgreSQL's
shared_buffers parameter (currently 12288) and/or its max_connections
parameter (cureently 40).
The PostgreSQL documentation contains more information about shared memory
configuration.

Here is the output of sysctl (which shows there is more shared mem available
than postgres is asking for):

bash-2.05b$ sysctl -a | grep shm
kern.ipc.shmmax: 200000000
kern.ipc.shmmin: 1
kern.ipc.shmmni: 192
kern.ipc.shmseg: 128
kern.ipc.shmall: 8192
kern.ipc.shm_use_phys: 0

and finally the IPC stats which shows nothing being used:

Message Queues:
T     ID     KEY        MODE       OWNER    GROUP

Shared Memory:
T     ID     KEY        MODE       OWNER    GROUP

Semaphores:
T     ID     KEY        MODE       OWNER    GROUP

Any ideas why postgres won't start?

Thanks.

Michael





view thread (2+ messages)  latest in thread

Message-ID: <cad69n$1fh6$1@news.hub.org>
Permalink:  ../cad69n$1fh6$1@news.hub.org/
Also on:    postgresql.org/message-id/cad69n$1fh6$1@news.hub.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: mfork00@yahoo.com
  Subject: Re: FreeBSD SHMMAX
  In-Reply-To: <cad69n$1fh6$1@news.hub.org>
  References: <cad69n$1fh6$1@news.hub.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox