Subject: Re: Kernel Config - SHMMAXPGS
To: Ian Harding <iharding@tpchd.org>
From: Patrick Welche <prlw1@newn.cam.ac.uk>
List: port-i386
Date: 02/04/2004 14:16:00
On Mon, Feb 02, 2004 at 12:34:50PM -0800, Ian Harding wrote:
> I have compiled a kernel having made the following changes to my
> configuration
>
> < #options SEMMNI=10 # number of semaphore identifiers
> < #options SEMMNS=60 # number of semaphores in system
> < #options SEMUME=10 # max number of undo entries per process
> < #options SEMMNU=30 # number of undo structures in system
> ---
> > options SEMMNI=256 # number of semaphore identifiers
> > options SEMMNS=512 # number of semaphores in system
> > options SEMUME=40 # max number of undo entries per process
> > options SEMMNU=256 # number of undo structures in system
> 80c80
> < #options SHMMAXPGS=1024 # 1024 pages is the default
> ---
> > options SHMMAXPGS=16192 # 1024 pages is the default
I think you are fine:
Just for reference my configuration says:
options SHMMAXPGS=32768 # 2048 pages is the default
# PostgreSQL notes:
#options SHMMAXPGS=8192 # (2048) 512 kB + 8192 * buffers + extra
#options SEMMNI=64 # (10) >= ceil(max_connections / 16)
#options SEMMNS=256 # (60) ceil(max_connections / 16) * 17 + extra
(on i386, 1 page = 4k)
You have 1000 buffers, 16 connections, so
512 kB + 8k * 1000 buffers = 8512kB = 2128 pages < 16192 pages as configured.
> IpcMemoryCreate: shmget(key=5432001, size=10035200, 03600) failed:
and size < 16192*4k
So, could it be that your pages are still in use? eg., if you switch off
the postmaster, does
ipcs -a
still show you entries for postgres? (ipcrm lets you clear them)
Cheers,
Patrick