X-Original-To: pgsql-novice-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id A1D149FB35F for ; Mon, 7 Aug 2006 13:17:26 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 13649-05 for ; Mon, 7 Aug 2006 13:17:18 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from web31804.mail.mud.yahoo.com (web31804.mail.mud.yahoo.com [68.142.207.67]) by postgresql.org (Postfix) with SMTP id BF69E9FB35C for ; Mon, 7 Aug 2006 13:17:16 -0300 (ADT) Received: (qmail 77650 invoked by uid 60001); 7 Aug 2006 16:17:15 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=rm6nBG3/dQV4uvi2pTC/BUwUhQocAhbhFbKUS/CwPuSr4MO1+/3jNQRIejSxo+vec7fw/CyUlfztjAVNtI7vYTFVIdwiyg9vCWXTdrVBzXIab4bYcmbP0pOaXOCAVVzIMpaFoB0MrOON/9z/A6Dq1qVOVN2l+LqY0LZDOeu8Ls4= ; Message-ID: <20060807161715.77647.qmail@web31804.mail.mud.yahoo.com> Received: from [63.203.180.122] by web31804.mail.mud.yahoo.com via HTTP; Mon, 07 Aug 2006 09:17:15 PDT Date: Mon, 7 Aug 2006 09:17:15 -0700 (PDT) From: Richard Broersma Jr Subject: Re: [PERFORM] 7.3.2 pg_restore very slow To: Saranya Sivakumar , pgsqlperform , pgsqlnovice In-Reply-To: <20060807160830.21241.qmail@web51309.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=2.566 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST, DNS_FROM_RFC_WHOIS X-Spam-Level: ** X-Archive-Number: 200608/54 X-Sequence-Number: 17269 > IpcMemoryCreate: shmget(key=5432001, size=85450752, 03600) failed: Invalid argument > 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 85450752 bytes), reduce > PostgreSQL's shared_buffers parameter (currently 10000) and/or > its max_connections parameter (currently 128). > If the request size is already small, it's possible that it is less than > your kernel's SHMMIN parameter, in which case raising the request size or > reconfiguring SHMMIN is called for. if you cat /proc/sys/kernel/shmmax it will tell you what it is set to. It needs to be at least "85450752". The size that Postgresql is trying to grab. also shmall may need to be adjusted also. > The total RAM available on this machine is 512MB. > > I am not sure how to set these parameters SHMMAX and SHMMIN. > Any help/advice would be greatly appreciated. http://www.postgresql.org/docs/8.1/interactive/kernel-resources.html This will help you to set the kernel parameters. Regards, Richard Broersma Jr.