pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jonathan Gardner <jgardner@jonathangardner.net>
To: Lending, Rune <rune.lending@inpoc.com>
To: 'pgsql-admin@postgresql.org' <pgsql-admin@postgresql.org>
Subject: Re: Shared_buffers and kernel parameters, tuning
Date: Fri, 6 Jun 2003 14:36:18 -0700
Message-ID: <200306061436.19798.jgardner@jonathangardner.net> (raw)
In-Reply-To: <A177ACC01D78D4118FC100508BAE3F7A804F96@TELECOMMAIL>
References: <A177ACC01D78D4118FC100508BAE3F7A804F96@TELECOMMAIL>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday 05 June 2003 01:10, Lending, Rune wrote:
> It is very difficult to test
> the actual performance since there is a hugh difference in traffic on dev
> and prod.

I would resolve this problem as well. How can you know any of your changes 
won't cause severe problems?

Using your favorite scripting language, and your knowledge of what statements 
are being executed, you should devise some test processes that mimic the 
statements being run on production. Then, have a computer (or several, if 
need be) launch a whole bunch of processes that run these statements against 
the dev server. It isn't too hard to generate appropriate traffic on the dev 
server. And you will be very pleased with the ability to experiment with more 
load and various settings. Plus, you can measure how long each statement 
takes to run, and track how indexes and variations on statements will affect 
performance.

I think this is fundamental to any performance tweaks. If you have no way to 
control the traffic to the server, and you have no way of measuring the 
performance, how can you tell if what you did helped or hurt?

- -- 
Jonathan Gardner <jgardner@jonathangardner.net>
(was jgardn@alumni.washington.edu)
Live Free, Use Linux!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+4QlSWgwF3QvpWNwRApJxAKC1XU/h2ypAcCf0ewJU+xuD14powQCgqMOT
LKUWPrHPEugf5r7C+kP3eSM=
=XkNs
-----END PGP SIGNATURE-----



view thread (3+ messages)

Message-ID: <200306061436.19798.jgardner@jonathangardner.net>
Permalink:  ../200306061436.19798.jgardner@jonathangardner.net/
Also on:    postgresql.org/message-id/200306061436.19798.jgardner@jonathangardner.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 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-admin@postgresql.org
  Cc: jgardner@jonathangardner.net, rune.lending@inpoc.com
  Subject: Re: Shared_buffers and kernel parameters, tuning
  In-Reply-To: <200306061436.19798.jgardner@jonathangardner.net>
  References: <A177ACC01D78D4118FC100508BAE3F7A804F96@TELECOMMAIL> <200306061436.19798.jgardner@jonathangardner.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