pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rafael Martinez <r.m.guerrero@usit.uio.no>
To: Douglas J Hunley <doug@hunley.homeip.net>
Cc: pgsql-performance@postgresql.org
Subject: Re: upgraded to pgsql 8.2.4, getting worse performance then 7.4.x
Date: Sat, 02 Jun 2007 17:21:54 +0200
Message-ID: <46618B12.9000700@usit.uio.no> (raw)
In-Reply-To: <200706020913.32241.doug@hunley.homeip.net>
References: <200706020913.32241.doug@hunley.homeip.net>

Douglas J Hunley wrote:

Hello

> The DB server in question does nothing else, is running CentOS 4.5, kernel 
> 2.6.9-55.ELsmp. Hyperthreading is disabled in the BIOS and there are 2 Xeon 
> 3.4Ghz cpus. There is 8Gb of RAM in the machine, and another 8Gb of swap.
> 

After a very quick read of your configuration files, I found some 
paramaters that need to be change if your server has 8GB of RAM. The 
values of these parameters depend a lot of how much RAM you have, what 
type of database you have (reading vs. writing) and how big the database is.

I do not have experience with 8.2.x yet, but with 8.1.x we are using as 
defaults in out 8GB RAM servers these values in some of the paramaters 
(they are not the only ones, but they are the minimum to change):

25% of RAM for shared_buffers
2/3 of ram for effective_cache_size
256MB for maintenance_work_mem
32-64MB for work_mem
128 checkpoint_segments
2 random_page_cost

And the most important of all:

fsync should be ***ON*** if you appreciate your data.

It looks like you are using default values ....

> 
> #shared_buffers = 32MB			# min 128kB or max_connections*16kB
> #work_mem = 1MB				# min 64kB
> #maintenance_work_mem = 16MB		# min 1MB
> fsync = off				# turns forced synchronization on or off
> #effective_cache_size = 128MB
[........................]

-- 
  Rafael Martinez, <r.m.guerrero@usit.uio.no>
  Center for Information Technology Services
  University of Oslo, Norway

  PGP Public Key: http://folk.uio.no/rafael/;



view thread (24+ messages)  latest in thread

Message-ID: <46618B12.9000700@usit.uio.no>
Permalink:  ../46618B12.9000700@usit.uio.no/
Also on:    postgresql.org/message-id/46618B12.9000700@usit.uio.no

 · 

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: r.m.guerrero@usit.uio.no, doug@hunley.homeip.net
  Subject: Re: upgraded to pgsql 8.2.4, getting worse performance then 7.4.x
  In-Reply-To: <46618B12.9000700@usit.uio.no>

* 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