Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id CEE04632CFD for ; Tue, 25 May 2010 15:05:25 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 44390-08 for ; Tue, 25 May 2010 18:05:13 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from bay0-omc1-s16.bay0.hotmail.com (bay0-omc1-s16.bay0.hotmail.com [65.54.190.27]) by mail.postgresql.org (Postfix) with ESMTP id 5FC036325C5 for ; Tue, 25 May 2010 15:05:13 -0300 (ADT) Received: from BAY149-W51 ([65.54.190.61]) by bay0-omc1-s16.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Tue, 25 May 2010 11:05:12 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_d7e1a313-3681-4457-a1d5-94acec9694d2_" X-Originating-IP: [129.44.63.215] From: Balkrishna Sharma To: Subject: Relation between RAM / shmmax / shmall / shared_buffers Date: Tue, 25 May 2010 14:05:11 -0400 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 25 May 2010 18:05:12.0317 (UTC) FILETIME=[D1E11AD0:01CAFC34] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.01 tagged_above=-10 required=5 tests=BAYES_40=-0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201005/237 X-Sequence-Number: 34710 --_d7e1a313-3681-4457-a1d5-94acec9694d2_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi=2C I am having a transactional database heavy on parallel reads and updates. A= part from hardware optimization=2C I want to ensure that my system paramete= rs are optimized as well. Following is what I am doing on my test system ha= ving 4GB RAM. Please let me know if the logic sounds ok (at least at high-l= evel) and if there are other related parameters I should tweak as well: RAM =3D 4GB1. Keeping the kernel parameter kernel.shmmax at 75% of RAM (i.e= . at 3GB )kernel.shmmax =3D 32212254722. Keeping the kernel parameter shmal= l at the same value. Because shmall is measured in number of pages and each= page on my linux is 4096 bytes=2C having kernel.shmall =3D 786432 (786= 432 * 4096 =3D 3221225472=2C same as shmmax)3. Keeping the shared_buffer pa= rameter in the postgresql.conf file to be 25% of the kernel.shmmax. i.e. sh= ared_buffers =3D 768MB (25% of 3072 MB) Thanks=2C-Bala =20 _________________________________________________________________ The New Busy is not the old busy. Search=2C chat and e-mail from your inbox= . http://www.windowslive.com/campaign/thenewbusy?ocid=3DPID28326::T:WLMTAGL:O= N:WL:en-US:WM_HMP:042010_3= --_d7e1a313-3681-4457-a1d5-94acec9694d2_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi=2C

I am having a transactional database he= avy on parallel reads and updates. Apart from hardware optimization=2C I wa= nt to ensure that my system parameters are optimized as well. Following is = what I am doing on my test system having 4GB RAM. Please let me know if the= logic sounds ok (at least at high-level) and if there are other related pa= rameters I should tweak as well:

RAM =3D 4GB
=
1. Keeping the kernel parameter kernel.shmmax at 75% of RAM (i.e. at 3= GB )kernel.shmmax =3D 3221225472
2. Keeping the kernel parameter = shmall at the same value. Because shmall is measured in number of pages and= each page on my linux is 4096 bytes=2C having kernel.shmall =3D 786432 &nb= sp=3B  =3B (786432 * 4096 =3D 3221225472=2C same as shmmax)
3= . Keeping the shared_buffer parameter in the postgresql.conf file to be 25%= of the kernel.shmmax. i.e. shared_buffers =3D 768MB (25% of 3072 MB)
=


Thanks=2C
-Bala

=


The New Busy is not the old busy. Search=2C c= hat and e-mail from your inbox. Get started. = --_d7e1a313-3681-4457-a1d5-94acec9694d2_--