pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Balkrishna Sharma <b_ki@hotmail.com>
To: pgsql-admin@postgresql.org
Subject: Relation between RAM / shmmax / shmall / shared_buffers
Date: Tue, 25 May 2010 14:05:11 -0400
Message-ID: <BAY149-w5102A9288345674F2C689AF0E80@phx.gbl> (raw)


Hi,
I am having a transactional database heavy on parallel reads and updates. Apart from hardware optimization, I want 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 parameters I should tweak as well:
RAM = 4GB1. Keeping the kernel parameter kernel.shmmax at 75% of RAM (i.e. at 3GB )kernel.shmmax = 32212254722. 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, having kernel.shmall = 786432     (786432 * 4096 = 3221225472, 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 = 768MB (25% of 3072 MB)

Thanks,-Bala
 		 	   		  
_________________________________________________________________
The New Busy is not the old busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3=

view thread (3+ messages)  latest in thread

Message-ID: <BAY149-w5102A9288345674F2C689AF0E80@phx.gbl>
Permalink:  ../BAY149-w5102A9288345674F2C689AF0E80@phx.gbl/
Also on:    postgresql.org/message-id/BAY149-w5102A9288345674F2C689AF0E80@phx.gbl

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: b_ki@hotmail.com
  Subject: Re: Relation between RAM / shmmax / shmall / shared_buffers
  In-Reply-To: <BAY149-w5102A9288345674F2C689AF0E80@phx.gbl>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox