X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id DFB32D1B550 for ; Mon, 27 Oct 2003 21:55:03 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 38856-04 for ; Mon, 27 Oct 2003 17:54:33 -0400 (AST) Received: from ams-iport-1.cisco.com (ams-iport-1.cisco.com [144.254.74.5]) by svr1.postgresql.org (Postfix) with ESMTP id 80303D1B536 for ; Mon, 27 Oct 2003 17:54:30 -0400 (AST) Received: from cisco.com (171.71.177.254) by ams-iport-1.cisco.com with ESMTP; 27 Oct 2003 22:52:27 +0100 Received: from wells.cisco.com (wells.cisco.com [171.71.177.223]) by sj-core-2.cisco.com (8.12.9/8.12.6) with ESMTP id h9RLsSiw029283 for ; Mon, 27 Oct 2003 13:54:28 -0800 (PST) Received: from sirathw2k01 (dhcp-171-69-99-64.cisco.com [171.69.99.64]) by wells.cisco.com (8.8.6 (PHNE_14041)/CISCO.SERVER.1.2) with ESMTP id NAA02617 for ; Mon, 27 Oct 2003 13:54:28 -0800 (PST) Reply-To: From: "Siddharth Rath (sirath)" To: Subject: Re: Need your help Date: Mon, 27 Oct 2003 13:54:27 -0800 Message-ID: <00a201c39cd4$e441c060$f31ca143@amer.cisco.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4927.1200 Importance: Normal X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/322 X-Sequence-Number: 10883 Hi Devrim, Thanx for the help. Is there anyway to maximize the SHMMAX for the following M/C details : Release: 5.8 Kernel architecture: sun4u Application architecture: sparc Hardware provider: Sun_Microsystems Domain: Kernel version: SunOS 5.8 Generic 108528-17 September 2002 I tried cat /proc/sys/kernel/shmmax and it says cat: cannot open /proc/sys/kernel/shmmax As thers no sys directory in /proc/ . Thanx and regards Sidd -----Original Message----- From: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Devrim GUNDUZ Sent: Monday, October 27, 2003 12:49 PM To: pgsql-admin@postgresql.org Subject: Re: [ADMIN] Need your help -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, On Mon, 27 Oct 2003, Siddharth Rath (sirath) wrote: > at the end of 6th step I did receivethe following in my log file. I > cant reconfigure the kernel with larger SHMMAX. Please let me know how > can I reduce the request size (currently 1499136 bytes), reduce > PostgreSQL's shared_buffers parameter (currently 64) and/or > its max_connections parameter (currently 32). You do not need to reconfigure Linux kernel for a larger SHMMAX. As root, simply echo the new value into /proc/sys/kernel/shmmax: #echo 83886080 > /proc/sys/kernel/shmmax In the example above, we set the value of SHMMAX to 80 Mb. The change takes effect immediately but after a reboot, the original value is restored. If you put that line in /etc/rc.local (or equivalent), your system will set the SHMMAX value to the value you'll write there. If, one day, you need to reconfigure the kernel; then edit /usr/src/linux/include/asm/shmparam.h and recompile Linux. (maybe after reading http://www.linuxdoc.org/HOWTO/Kernel-HOWTO.html :) ) Regards, - -- Devrim GUNDUZ devrim@gunduz.org devrim.gunduz@linux.org.tr http://www.tdmsoft.com http://www.gunduz.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE/nYTMtl86P3SPfQ4RAlM1AKCvvtQoQIAgnoXzB8/bG9KyjNnABACdGJBz OlT+4F3/3ntkWb/kgDxuJ/c= =7VLf -----END PGP SIGNATURE----- ---------------------------(end of broadcast)--------------------------- TIP 8: explain analyze is your friend