Performance Tuning and Disk Cache - Mailing list pgsql-performance

From Barry Moore
Subject Performance Tuning and Disk Cache
Date
Msg-id 1862C4AD-EB83-4D58-B1F2-45BDC47E5608@genetics.utah.edu
Whole thread Raw
Responses Re: Performance Tuning and Disk Cache  ("hubert depesz lubaczewski" <depesz@gmail.com>)
Re: Performance Tuning and Disk Cache  (David Boreham <david_list@boreham.org>)
Re: Performance Tuning and Disk Cache  (Michael Stone <mstone+postgres@mathom.us>)
List pgsql-performance
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)?

Thanks for any help.

Barry


pgsql-performance by date:

Previous
From: "hubert depesz lubaczewski"
Date:
Subject: Re: text equality worse than pattern matching (v8.1.8)
Next
From: "hubert depesz lubaczewski"
Date:
Subject: Re: Performance Tuning and Disk Cache