pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Greg Smith <gsmith@gregsmith.com>
To: Kevin Kempter <kevin@kevinkempterllc.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: building a performance test suite
Date: Wed, 10 Oct 2007 23:14:02 -0400 (EDT)
Message-ID: <Pine.GSO.4.64.0710102252570.23235@westnet.com> (raw)
In-Reply-To: <200710101621.41749.kevin@kevinkempterllc.com>
References: <200710101621.41749.kevin@kevinkempterllc.com>

On Wed, 10 Oct 2007, Kevin Kempter wrote:

> should I be looking at others like pg_statio or pg_stat_all_tables ? If 
> so, what should I look for in these (or other) tables?

There are a good set of monitoring scripts for performance-oriented things 
included with the dbt2 benchmarking package, 
http://sourceforge.net/projects/osdldbt

You can just use the SVN browse to take a look at the data collected by 
that; see /trunk/dbt2/bin/pgsql/dbt2-pgsql-db-stat.in for some good things 
to get started with.  For example, here's the pg_statio info they save:

SELECT relid, relname, heap_blks_read, heap_blks_hit, idx_blks_read, 
idx_blks_hit FROM pg_statio_user_tables ORDER BY relname;

SELECT relid, indexrelid, relname, indexrelname, idx_blks_read, 
idx_blks_hit FROM pg_statio_user_indexes ORDER BY indexrelname;

Pretty much everything in pg_stat_user_tables is worth collecting.  And 
you probably want to use the user oriented views rather than the all ones 
(pg_stat_user_tables instead of pg_stat_all_tables) so you don't clutter 
your results with what's going on in the system tables--unless your test 
incudes lots of table modifications that is.  Look at both of them and 
you'll see what I mean.

--
* Greg Smith gsmith@gregsmith.com http://www.gregsmith.com Baltimore, MD



view thread (3+ messages)  latest in thread

Message-ID: <Pine.GSO.4.64.0710102252570.23235@westnet.com>
Permalink:  ../Pine.GSO.4.64.0710102252570.23235@westnet.com/
Also on:    postgresql.org/message-id/Pine.GSO.4.64.0710102252570.23235@westnet.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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: gsmith@gregsmith.com, kevin@kevinkempterllc.com
  Subject: Re: building a performance test suite
  In-Reply-To: <Pine.GSO.4.64.0710102252570.23235@westnet.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