pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Boreham <david_list@boreham.org>
To: Barry Moore <barry.moore@genetics.utah.edu>
Cc: pgsql-performance@postgresql.org
Subject: Re: Performance Tuning and Disk Cache
Date: Sun, 18 Mar 2007 09:26:37 -0600
Message-ID: <45FD5A2D.2090307@boreham.org> (raw)
In-Reply-To: <1862C4AD-EB83-4D58-B1F2-45BDC47E5608@genetics.utah.edu>
References: <1862C4AD-EB83-4D58-B1F2-45BDC47E5608@genetics.utah.edu>

Barry Moore wrote:

> I have a very slow query that I'm trying to tune.  I think my  
> performance tuning is being complicated by the system's page cache.
>
> If a run the query after the system has been busy with other tasks  
> for quite a long time then the query can take up to 8-10 minutes to  
> complete.  If I then rerun the same query it will complete in a  
> couple of seconds.
>
> Does anyone know how I can repeatedly run the same query in the  
> "worst case scenario" of no postgres data in the disk cache (e.g.,  
> clear the page cache or force it to be ignored)?

In my experience the only 100% reliable way to do this is to reboot the 
machine.





view thread (5+ messages)  latest in thread

Message-ID: <45FD5A2D.2090307@boreham.org>
Permalink:  ../45FD5A2D.2090307@boreham.org/
Also on:    postgresql.org/message-id/45FD5A2D.2090307@boreham.org

 · 

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: david_list@boreham.org, barry.moore@genetics.utah.edu
  Subject: Re: Performance Tuning and Disk Cache
  In-Reply-To: <45FD5A2D.2090307@boreham.org>

* 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