pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: adrien ducos <aducos@hbs-research.com>
To: pgsql-admin@postgresql.org
Subject: Re: My server is oddly very slow
Date: Wed, 04 May 2011 12:46:30 -0500
Message-ID: <4DC14AA6020000250003D28B@gw.wicourts.gov> (raw)
In-Reply-To: <4DC17AAB.1080206@hbs-research.com>
References: <4DC17AAB.1080206@hbs-research.com>

adrien ducos <aducos@hbs-research.com> wrote:
 
[rearranged somewhat]
 
> The version of both databases is postgres 8.4.1
 
[sigh]  You really should upgrade.
 
http://www.postgresql.org/support/versioning
 
http://www.postgresql.org/docs/8.4/static/release.html
 
> So I checked the memory on prod during my query execution:
> vmstat
 
> procs -----------memory----------
>  r  b   swpd   free   buff  cache
>  0  1   1280  23320   6356 2975956
 
> The swap is not used but something is a bit odd: the cache is
> using 98% of the RAM
 
The first line in vmstat (which is all you get if you run it without
a number) is averages since the OS was booted.  That's not usually
very helpful.  What does this show?:
 
free -m
 
or run the query while watching the output from:
 
vmstat 1
 
> the copy of files on the SAN is about 3 times faster than on the
> development hard drive.
 
Copy time doesn't always correlate real well with database
performance.  Have you tried running bonnie++ or similar?
 
-Kevin



view thread (5+ messages)  latest in thread

Message-ID: <4DC14AA6020000250003D28B@gw.wicourts.gov>
Permalink:  ../4DC14AA6020000250003D28B@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4DC14AA6020000250003D28B@gw.wicourts.gov

 · 

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: Kevin.Grittner@wicourts.gov, aducos@hbs-research.com
  Subject: Re: My server is oddly very slow
  In-Reply-To: <4DC14AA6020000250003D28B@gw.wicourts.gov>
  References: <4DC17AAB.1080206@hbs-research.com> <4DC14AA6020000250003D28B@gw.wicourts.gov>

* 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