pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Schroeder <kschroeder@mirageworks.com>
To: pgsql-admin@postgresql.org
Subject: Shared memory error using initdb on Solaris 8
Date: Fri, 21 May 2004 10:15:34 -0500
Message-ID: <3f9e01c43f46$76da11c0$0200a8c0@WORKSTATION> (raw)

Hello,
    I'm trying to install PostgreSQL 7.4.2 on a brand new SunFire 120 with
2GB of RAM but when I run initdb -D /usr/local/pgsql/data I get the
following error:

creating directory /usr/local/pgsql/data... ok
creating directory /usr/local/pgsql/data/base... ok
creating directory /usr/local/pgsql/data/global... ok
creating directory /usr/local/pgsql/data/pg_xlog... ok
creating directory /usr/local/pgsql/data/pg_clog... ok
selecting default max_connections... 10
selecting default shared_buffers... 50
creating configuration files... ok
creating template1 database in /usr/local/pgsql/data/base/1... FATAL:  could
not create shared memory segment: Invalid argument
DETAIL:  Failed system call was shmget(key=1, size=1081344, 03600).
HINT:  This error usually means that PostgreSQL's request for a shared
memory segment exceeded your kernel's SHMMAX parameter.  You can either
reduce the request size or reconfigure the kernel with larger SHMMAX.  To
reduce the request size (currently 1081344 bytes), reduce PostgreSQL's
shared_buffers parameter (currently 50) and/or its max_connections parameter
(currently 10).
        If the request size is already small, it's possible that it is less
than your kernel's SHMMIN parameter, in which case raising the request size
or reconfiguring SHMMIN is called for.
        The PostgreSQL documentation contains more information about shared
memory configuration.

initdb: failed
initdb: removing data directory "/usr/local/pgsql/data"

When I run ulimit -a I get

time(seconds)        unlimited
file(blocks)         unlimited
data(kbytes)         unlimited
stack(kbytes)        8192
coredump(blocks)     0
nofiles(descriptors) 256
vmemory(kbytes)      unlimited

There does not seem to be an option in initdb to reduce the shared buffers
size.  Plus, with 2GB of RAM I don't know that I'd want to go below the
"lowest common denominator" that Postgres defaults to.

Kevin




view thread (5+ messages)  latest in thread

Message-ID: <3f9e01c43f46$76da11c0$0200a8c0@WORKSTATION>
Permalink:  ../3f9e01c43f46$76da11c0$0200a8c0@WORKSTATION/
Also on:    postgresql.org/message-id/3f9e01c43f46$76da11c0$0200a8c0@WORKSTATION

 · 

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: kschroeder@mirageworks.com
  Subject: Re: Shared memory error using initdb on Solaris 8
  In-Reply-To: <3f9e01c43f46$76da11c0$0200a8c0@WORKSTATION>
  References: <3f9e01c43f46$76da11c0$0200a8c0@WORKSTATION>

* 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