pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Nikolas Everett <nik9000@gmail.com>
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: explain analyze reports that my queries are fast but they run very slowly
Date: Thu, 27 Dec 2012 18:12:31 -0500
Message-ID: <21869.1356649951@sss.pgh.pa.us> (raw)
In-Reply-To: <CAPmjWd3wLRDgJQHJ=qGWqpLjBjm=0ib8MmfGhsVWUk0Oj9k_Nw@mail.gmail.com>
References: <CAPmjWd2XgV9d3zy3zc8L9PJRdoVM720g2zSQWsDKZsJkOqKMjw@mail.gmail.com>
	<17229.1356636060@sss.pgh.pa.us>
	<CAPmjWd3S5pf=BTmjY3h9eAS09S5pAmxwa9X2DtMCUKaMrYdveA@mail.gmail.com>
	<17694.1356637368@sss.pgh.pa.us>
	<CAPmjWd22Jrg704jUP7ACrF3heTyfh_wcghFHqOJnSgbwLF=uhA@mail.gmail.com>
	<CAPmjWd01U5Wffr_9uVwOrbDba1R=RhZUtN8-dbnAyBy7ZyTHdg@mail.gmail.com>
	<19936.1356644001@sss.pgh.pa.us>
	<CAPmjWd3wLRDgJQHJ=qGWqpLjBjm=0ib8MmfGhsVWUk0Oj9k_Nw@mail.gmail.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>

Nikolas Everett <nik9000@gmail.com> writes:
> On Thu, Dec 27, 2012 at 4:33 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Nikolas Everett <nik9000@gmail.com> writes:
>>> We straced the backend during the explain and it looked like the open
>>> commands were taking several seconds each.

>> Kind of makes me wonder if you have a whole lot of tables ("whole lot"
>> in this context probably means tens of thousands) and are storing the
>> database on a filesystem that doesn't scale well to lots of files in one
>> directory.  If that's the explanation, the reason the 8.3 installation
>> was okay was likely that it was stored on a more modern filesystem.

> We have 1897 files for our largest database which really isn't a whole lot.

OK...

>  The old servers were EXT3 over FC to a NetApp running RHEL5 PPC.  The new
> servers are on NFS to the same NetApp running RHEL5 Intel.

Now I'm wondering about network glitches or NFS configuration problems.
This is a bit outside my expertise unfortunately, but it seems clear
that your performance issue is somewhere in that area.

			regards, tom lane


-- 
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance



view thread (14+ messages)  latest in thread

Message-ID: <21869.1356649951@sss.pgh.pa.us>
Permalink:  ../21869.1356649951@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/21869.1356649951@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, nik9000@gmail.com
  Subject: Re: explain analyze reports that my queries are fast but they run very slowly
  In-Reply-To: <21869.1356649951@sss.pgh.pa.us>

* 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