Re: Performance Tuning and Disk Cache

From: David Boreham <david_list(at)boreham(dot)org>
To: Barry Moore <barry(dot)moore(at)genetics(dot)utah(dot)edu>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Performance Tuning and Disk Cache
Date: 2007-03-18 15:26:37
Message-ID: 45FD5A2D.2090307@boreham.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

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.

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Martijn van Oosterhout 2007-03-18 16:54:29 Re: PostgreSQL 8.2.3 VACUUM Timings/Performance
Previous Message hubert depesz lubaczewski 2007-03-18 13:18:19 Re: Performance Tuning and Disk Cache