pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adarsh Sharma <adarsh.sharma@orkash.com>
To: pgsql-performance@postgresql.org
Subject: Need to tune for Heavy Write
Date: Thu, 04 Aug 2011 10:26:44 +0530
Message-ID: <4E3A268C.9090409@orkash.com> (raw)

Dear all,

 From the last few days, I researched a lot on Postgresql Performance 
Tuning due to slow speed of my server.
My application selects data from mysql database about 100000 rows , 
process it & insert into postgres 2 tables by making about 45 connections.

I set my postgresql parameters in postgresql.conf as below: ( OS : 
Ubuntu, RAM : 16 GB, Postgres : 8.4.2 )

max_connections    = 80
shared_buffers    = 2048MB
work_mem = 32MB
maintenance_work_mem = 512MB
fsync=off 
full_page_writes=off 
synchronous_commit=off 
checkpoint_segments = 32
checkpoint_completion_target = 0.7      
effective_cache_size = 4096MB


After this I change my pg_xlog directory to a separate directory other 
than data directory by symlinking.


By Application issue insert statements through postgresql connections only.

Please let me know if I missing any other important configuration.



Thanks





view thread (14+ messages)  latest in thread

Message-ID: <4E3A268C.9090409@orkash.com>
Permalink:  ../4E3A268C.9090409@orkash.com/
Also on:    postgresql.org/message-id/4E3A268C.9090409@orkash.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-performance@postgresql.org
  Cc: adarsh.sharma@orkash.com
  Subject: Re: Need to tune for Heavy Write
  In-Reply-To: <4E3A268C.9090409@orkash.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