From: Matthew Wakeling <matthew@flymine.org>
To: pgsql-performance@postgresql.org
Subject: Re: Tsearch2 Initial Search Speed
Date: Tue, 17 Jun 2008 17:04:07 +0100 (BST)
Message-ID: <Pine.LNX.4.64.0806171702010.3987@aragorn.flymine.org> (raw)
In-Reply-To: <200806170856.33022@hal.medialogik.com>
References: <4856A91F.1020001@selestial.com>
<Pine.LNX.4.64.0806171202130.3987@aragorn.flymine.org>
<48579EB1.8050403@selestial.com>
<200806170856.33022@hal.medialogik.com>
On Tue, 17 Jun 2008, Alan Hodgson wrote:
> On Tuesday 17 June 2008, Howard Cole <howardnews@selestial.com> wrote:
>> Incidentally, how can I clear the cache in between queries?
>
> Stop PostgreSQL, unmount the filesystem it's on, remount it, restart
> PostgreSQL. Works under Linux.
>
> If it's on a filesystem you can't unmount hot, you'll need to reboot.
Not true - on recent Linux kernels, you can drop the OS cache by running
echo "1" >/proc/sys/vm/drop_caches
as root. You'll still need to restart Postgres to drop its cache too.
Matthew
--
Richards' Laws of Data Security:
1. Don't buy a computer.
2. If you must buy a computer, don't turn it on.
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: matthew@flymine.org
Subject: Re: Tsearch2 Initial Search Speed
In-Reply-To: <Pine.LNX.4.64.0806171702010.3987@aragorn.flymine.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