pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ezhil Sundaram <ezhil@zoniac.com>
To: pgsql-admin@postgresql.org
Subject: Postgresql shared_buffer and SHMMAX configuration.
Date: Fri, 9 Jul 2010 16:37:11 +0530
Message-ID: <201007091107.o69B7AZa029449@rs73.luxsci.com> (raw)

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




view thread (5+ messages)  latest in thread

Message-ID: <201007091107.o69B7AZa029449@rs73.luxsci.com>
Permalink:  ../201007091107.o69B7AZa029449@rs73.luxsci.com/
Also on:    postgresql.org/message-id/201007091107.o69B7AZa029449@rs73.luxsci.com

 · 

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: ezhil@zoniac.com
  Subject: Re: Postgresql shared_buffer and SHMMAX configuration.
  In-Reply-To: <201007091107.o69B7AZa029449@rs73.luxsci.com>

* 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