pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron Peacetree <rjpeace@earthlink.net>
To: Yves Vindevogel <yves.vindevogel@implements.be>
To: pgsql-performance@postgresql.org
Subject: Re: Some help on buffers and other performance tricks
Date: Wed, 9 Nov 2005 16:24:49 -0500 (EST)
Message-ID: <17035565.1131571489652.JavaMail.root@elwamui-hound.atl.sa.earthlink.net> (raw)

0= Optimize your schema to be a tight as possible.  Your goal is to give yourself the maximum chance that everything you want to work on is in RAM when you need it.
1= Upgrade your RAM to as much as you can possibly strain to afford.  4GB at least.  It's that important.
2= If the _entire_ DB does not fit in RAM after upgrading your RAM, the next step is making sure your HD IO subsystem is adequate to your needs.
3= Read the various pg tuning docs that are available and Do The Right Thing.
4= If performance is still not acceptable, then it's time to drill down into what specific actions/queries are problems.
If you get to here and the entire DBMS is still not close to acceptable, your fundamental assumptions have to be re-examined.

Ron

-----Original Message-----
From: Yves Vindevogel <yves.vindevogel@implements.be>
Sent: Nov 9, 2005 3:11 PM
To: pgsql-performance@postgresql.org
Subject: [PERFORM] Some help on buffers and other performance tricks

Hi all,

I've got PG 8.0 on Debian sarge set up ...
I want to speed up performance on the system.

The system will run PG, Apache front-end on port 80 and Tomcat / Cocoon 
for the webapp.
The webapp is not so heavily used, so we can give the max performance 
to the database.
The database has a lot of work to do, we upload files every day.
The current server has 8 databases of around 1 million records.  This 
will be more in the future.
There's only one main table, with some smaller tables.  95% of the 
records are in that one table.
A lot of updates are done on that table, affecting 10-20% of the 
records.

The system has 1 gig of ram.  I could give 512Mb to PG.
Filesystem is ext2, with the -noatime parameter in fstab

Could I get some suggestions in how to configure my buffers, wals, .... 
?

Met vriendelijke groeten,
Bien � vous,
Kind regards,

Yves Vindevogel
Implements





view thread (11+ messages)  latest in thread

Message-ID: <17035565.1131571489652.JavaMail.root@elwamui-hound.atl.sa.earthlink.net>
Permalink:  ../17035565.1131571489652.JavaMail.root@elwamui-hound.atl.sa.earthlink.net/
Also on:    postgresql.org/message-id/17035565.1131571489652.JavaMail.root@elwamui-hound.atl.sa.earthlink.net

 · 

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: rjpeace@earthlink.net, yves.vindevogel@implements.be
  Subject: Re: Some help on buffers and other performance tricks
  In-Reply-To: <17035565.1131571489652.JavaMail.root@elwamui-hound.atl.sa.earthlink.net>

* 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