pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: jerome@gmanmi.tv, PgSQL Performance ML <pgsql-performance@postgresql.org>
Subject: Re: Best tweak for fast results.. ?
Date: Tue, 26 Aug 2003 18:44:19 +0100
Message-ID: <200308261844.19268.dev@archonet.com> (raw)
In-Reply-To: <200308262142.52521.jerome@gmanmi.tv>
References: <200308262142.52521.jerome@gmanmi.tv>

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



view thread (5+ messages)  latest in thread

Message-ID: <200308261844.19268.dev@archonet.com>
Permalink:  ../200308261844.19268.dev@archonet.com/
Also on:    postgresql.org/message-id/200308261844.19268.dev@archonet.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: dev@archonet.com
  Subject: Re: Best tweak for fast results.. ?
  In-Reply-To: <200308261844.19268.dev@archonet.com>
  References: <200308262142.52521.jerome@gmanmi.tv> <200308261844.19268.dev@archonet.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