Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 5B7756327D0 for ; Fri, 9 Jul 2010 08:12:48 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 22672-04 for ; Fri, 9 Jul 2010 11:12:38 +0000 (UTC) X-Greylist: delayed 00:05:24.798623 by SQLgrey-1.7.6 Received: from rs73.luxsci.com (rs73.luxsci.com [64.49.254.135]) by mail.postgresql.org (Postfix) with ESMTP id 36E45632668 for ; Fri, 9 Jul 2010 08:12:40 -0300 (ADT) Received: from ezhil (ABTS-TN-Static-186.58.165.122.airtelbroadband.in [122.165.58.186] (may be forged)) (authenticated bits=0) by rs73.luxsci.com (8.13.8/8.13.8) with ESMTP id o69B7AZa029449; Fri, 9 Jul 2010 06:07:12 -0500 Message-Id: <201007091107.o69B7AZa029449@rs73.luxsci.com> From: "Ezhil Sundaram" To: Subject: Postgresql shared_buffer and SHMMAX configuration. Date: Fri, 9 Jul 2010 16:37:11 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 thread-index: AcsfVuEniORsTaa6R8muQp+TClKYoA== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.8 tagged_above=-10 required=5 tests=BAYES_50=0.8 X-Spam-Level: X-Archive-Number: 201007/26 X-Sequence-Number: 35045 Hi, Recently we upgraded our production server from 7.5GB RAM to 15GB RAM. 1. To solve performance issue. 2. Also the number of concurrent users increased from 150 to 300. Our production server is not dedicated server. We have also 1. Tomcat 2. Apache 3. Cron based scheduled programs 4. Also some thread based programs running in the same server. We are trying to configure postgresql parameters according to 15GB RAM. Linux --------------- Kernal.SHMMAX From - 2147483648 To - 19818063053 250kB + 8.2kB * shared_buffers + 14.2kB * max_connections (250kB + 8.2kB * 2359296kB(2304*1024) + 14.2kB * 500) = 19353577.2 * 1024 = 19818063052.8 postgresql.conf -------------------- shared_buffers From - 1536MB To - 2304MB Since we have other application also running we have taken 15% of the RAM value for shared_buffers. max_connection From - 500 To - 500 PGPOOL configuration --------------------- num_init_children From - 150 To - 420 child_max_connections From - 20 To - 30 We have more than 300 peoples accessing our server concurrently so we need around 300 connections concurrently. Is this correct? Will the above configuration improve the performance? Thanks in advance Regards Ezhil