From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ernest E Vogelsinger <ernest@vogelsinger.at>
Cc: nikolaus@dilger.cc
Cc: pgsql-performance@postgresql.org
Cc: pgsql-general@postgresql.org
Subject: Re: [PERFORM] Interesting incosistent query timing
Date: Tue, 17 Jun 2003 20:12:18 -0400
Message-ID: <17950.1055895138@sss.pgh.pa.us> (raw)
In-Reply-To: <5.1.1.6.2.20030618005902.02e31a38@mail.vogelsinger.at>
References: <5.1.1.6.2.20030618005902.02e31a38@mail.vogelsinger.at>
Ernest E Vogelsinger <ernest@vogelsinger.at> writes:
> I came to the same conclusion - I installed a cron script that performs a
> select against that index on a regular basis (3 minutes). After that even
> the most complex queries against this huge table go like whoosssshhh ;-)
> Would be interesting what one could do to _not_ have to take this basically
> clumsy approach...
Seems like your kernel is falling down on the job: if those files are
the most heavily used ones on the machine, it should be keeping them in
disk cache without such prompting.
If they are not all that heavily used, then you are basically slowing
everything else down in order to speed up these queries (because you're
starving everything else for disk cache). Which may be a reasonable
tradeoff in your situation, but be aware of what you're doing.
The best compromise may be to buy more RAM ;-)
regards, tom lane
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-performance@postgresql.org
Cc: tgl@sss.pgh.pa.us, ernest@vogelsinger.at, nikolaus@dilger.cc, pgsql-general@postgresql.org
Subject: Re: [PERFORM] Interesting incosistent query timing
In-Reply-To: <17950.1055895138@sss.pgh.pa.us>
References: <5.1.1.6.2.20030618005902.02e31a38@mail.vogelsinger.at> <17950.1055895138@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