From: Alvaro Herrera <alvherre@commandprompt.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: ngaleyev@wavelengthmail.com
Cc: pgsql-admin@postgresql.org
Subject: Re: hot restart of posgtresql
Date: Tue, 3 Jul 2007 22:29:44 -0400
Message-ID: <20070704022944.GD6171@alvh.no-ip.org> (raw)
In-Reply-To: <16558.1183514240@sss.pgh.pa.us>
References: <1210.209.168.137.101.1183505726.squirrel@wavelengthmail.com>
<16558.1183514240@sss.pgh.pa.us>
Tom Lane wrote:
> ngaleyev@wavelengthmail.com writes:
> > 2007-07-03 19:20:42 EDT 2928 FATAL: could not create shared memory
> > segment: Invalid argument
> > 2007-07-03 19:20:42 EDT 2928 DETAIL: Failed system call was
> > shmget(key=5432001, size=3276259328, 03600).
> > 2007-07-03 19:20:42 EDT 2928 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
> > 3276259328 bytes), reduce PostgreSQL's shared_buffers parameter (currently
> > 393216) and/or its max_connections parameter (currently 250).
>
> > heres my sysctl:
> > kernel.shmmax=4294967296
> > kernel.shmall=536870912
>
> Why have you got SHMALL set to half a GB when you have Postgres
> configured to ask for over 3 GB?
Hmm, isn't shmall measured in pages?
I think the problem may be that he changed the settings in sysctl.conf
but he hasn't rebooted since, so the kernel is running with other
settings. Trying with sysctl -w to change the actual values might prove
helpful.
--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.
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: alvherre@commandprompt.com, tgl@sss.pgh.pa.us, ngaleyev@wavelengthmail.com
Subject: Re: hot restart of posgtresql
In-Reply-To: <20070704022944.GD6171@alvh.no-ip.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