pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Joe Barwell <jbar@es.co.nz>
Cc: pgsql-admin@postgresql.org
Subject: Re: initdb problem
Date: Thu, 21 Jun 2007 20:37:27 -0400
Message-ID: <9856.1182472647@sss.pgh.pa.us> (raw)
In-Reply-To: <467b14c2.2d2.71c.237125455@ihug.co.nz>
References: <467b14c2.2d2.71c.237125455@ihug.co.nz>

Joe Barwell <jbar@es.co.nz> writes:
> acorn$ sysctl -a | grep shm
> kern.sysv.shmmax: 4194304
> kern.sysv.shmmin: 1
> kern.sysv.shmmni: 32
> kern.sysv.shmseg: 8
> kern.sysv.shmall: 1024

OK, so you should be able to do 4MB without problems.

> acorn$ sudo ipcs -a
> Password:
> sudo: ipcs: command not found

>> Also, which OSX release is this again?

> 10.3.9 on a g4.

Ugh.  I don't recall exactly when Apple got around to including ipcs,
but I guess it wasn't in 10.3.9.  Your problem is that you're flying
blind because you cannot tell what's going on in shared memory.

What I suspect is that there's an unused shared memory segment sitting
there (perhaps left over from a failed initdb) and eating a sufficiently
large fraction of SHMALL that there's no room for another.  If correct,
then rebooting should make it go away and let you initdb.  Since you
haven't got ipcrm either, there's basically no other way to get rid of
an unwanted shmem segment :-(

You should think about upgrading to 10.4.x btw --- for Postgres admin
purposes, having ipcs and ipcrm available is alone worth the price of
admission.  And it does seem they've improved the OS's performance in
various ways too.

			regards, tom lane



view thread (26+ messages)  latest in thread

Message-ID: <9856.1182472647@sss.pgh.pa.us>
Permalink:  ../9856.1182472647@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/9856.1182472647@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jbar@es.co.nz
  Subject: Re: initdb problem
  In-Reply-To: <9856.1182472647@sss.pgh.pa.us>

* 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