Re: FreeBSD 7 needing to allocate lots of shared memory

From: Bill Moran <wmoran(at)collaborativefusion(dot)com>
To: Christiaan Willemsen <cwillemsen(at)technocon(dot)com>
Cc: Isak Hansen <isak(dot)hansen(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: FreeBSD 7 needing to allocate lots of shared memory
Date: 2008-11-18 13:02:43
Message-ID: 20081118080243.4731e133.wmoran@collaborativefusion.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

In response to Christiaan Willemsen <cwillemsen(at)technocon(dot)com>:

> #sysctl -a | grep shm
> kern.ipc.shm_allow_removed: 0
> kern.ipc.shm_use_phys: 1
> kern.ipc.shmall: 68719476736
> kern.ipc.shmseg: 128
> kern.ipc.shmmni: 192
> kern.ipc.shmmin: 1
> kern.ipc.shmmax: 68719476736

Try bumping shmmni:
$ sysctl -d kern.ipc.shmmni
kern.ipc.shmmni: Number of shared memory identifiers

I have this set to 1000 on most of my systems. Can't seem to find my
notes on it right now, but that may be your holdup. The PG docs seem
to indicate that this number can be set very low, as PG only needs a
single identifier, but I must have had _some_ reason for raising it.

--
Bill Moran
Collaborative Fusion Inc.
http://people.collaborativefusion.com/~wmoran/

wmoran(at)collaborativefusion(dot)com
Phone: 412-422-3463x4023

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Christiaan Willemsen 2008-11-18 13:05:59 Re: FreeBSD 7 needing to allocate lots of shared memory
Previous Message Gerhard Heift 2008-11-18 12:42:28 Re: Using database to find file doublettes in my computer