Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id C62189FB514 for ; Tue, 3 Jul 2007 23:29:51 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 57339-07 for ; Tue, 3 Jul 2007 23:29:48 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from lists.commandprompt.com (host-254.commandprompt.net [207.173.203.254]) by postgresql.org (Postfix) with ESMTP id 40BB89FB501 for ; Tue, 3 Jul 2007 23:29:48 -0300 (ADT) Received: from perhan.alvh.no-ip.org (201-221-218-82.bk12-dsl.surnet.cl [201.221.218.82]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id l642TnDF009926; Tue, 3 Jul 2007 19:29:50 -0700 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 5B3D447C44; Tue, 3 Jul 2007 22:29:44 -0400 (CLT) Date: Tue, 3 Jul 2007 22:29:44 -0400 From: Alvaro Herrera To: Tom Lane Cc: ngaleyev@wavelengthmail.com, pgsql-admin@postgresql.org Subject: Re: hot restart of posgtresql Message-ID: <20070704022944.GD6171@alvh.no-ip.org> References: <1210.209.168.137.101.1183505726.squirrel@wavelengthmail.com> <16558.1183514240@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <16558.1183514240@sss.pgh.pa.us> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: ClamAV 0.90.3/3584/Tue Jul 3 00:44:39 2007 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Tue, 03 Jul 2007 19:29:51 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/27 X-Sequence-Number: 26008 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.