Re: Best tweak for fast results.. ? - Mailing list pgsql-performance

From Richard Huxton
Subject Re: Best tweak for fast results.. ?
Date
Msg-id 200308261844.19268.dev@archonet.com
Whole thread Raw
In response to Best tweak for fast results.. ?  (JM <jerome@gmanmi.tv>)
List pgsql-performance
On Tuesday 26 August 2003 14:42, JM wrote:
> need input on parameter values on confs...
>
> our database is getting 1000 transactions/sec on peak periods..
>
> sitting on RH 7.3
> 2.4.7-10smp
> RAM: 1028400
> SWAP: 2040244
>
> queries are just simple select statements based on timestamps, varchars...
> less on joins... on a 300K rows..

Assuming you're getting good query plans (check the output of EXPLAIN
ANALYSE)...

Start by checking the output of vmstat/iostat during busy periods - this will
tell you whether CPU/IO/RAM is the bottleneck.

There is a good starter for tuning PG at:
http://www.varlena.com/varlena/GeneralBits/Tidbits/index.php

Assuming your rows aren't too wide, they're probably mostly cached by Linux,
so you probably don't want to overdo the shared buffers/sort memory and make
sure the effective cache size is accurate.
--
  Richard Huxton
  Archonet Ltd

pgsql-performance by date:

Previous
From: Jeff
Date:
Subject: Sun vs a P2. Interesting results.
Next
From: Darcy Buskermolen
Date:
Subject: Re: Sun vs a P2. Interesting results.