Re: Tsearch2 Initial Search Speed

From: Matthew Wakeling <matthew(at)flymine(dot)org>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: Tsearch2 Initial Search Speed
Date: 2008-06-17 16:04:07
Message-ID: Pine.LNX.4.64.0806171702010.3987@aragorn.flymine.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Tue, 17 Jun 2008, Alan Hodgson wrote:
> On Tuesday 17 June 2008, Howard Cole <howardnews(at)selestial(dot)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.

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Scott Marlowe 2008-06-17 16:22:14 Re: Which hardware ?
Previous Message Alan Hodgson 2008-06-17 15:56:32 Re: Tsearch2 Initial Search Speed