Skip site navigation (1) Skip section navigation (2)

Re: turn off caching for performance test

From: Willy-Bas Loos <willybas(at)gmail(dot)com>
To: Pierre C <lists(at)peufeu(dot)com>, acmmailing(at)tweakers(dot)net
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: turn off caching for performance test
Date: 2010-08-27 09:51:21
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
@Pierre: i know.. but first i'd have to find such a query from real-life.
And also, i'm convinced that this query would be faster with a seqscan if
the data wenen't cached.

@Arjen: thanks, that helps.
But that's only the OS cache. There's also the shared_buffers, which are a
postgres specific thing.
I've found DISCARD in the
but that only influences a single session, not the shared buffers.

I reckon restarting the cluster should help, would it wipe out the cache?
(pg_ctlcluster 8.3 main restart)
Or is there a more graceful way?



On Thu, Aug 26, 2010 at 7:37 PM, Pierre C <lists(at)peufeu(dot)com> wrote:

>  The bitmap heap scan is 3% faster,
> 3% isn't really significant. Especially if the new setting makes one query
> 100 times slower... Like a query which will, by bad luck, get turned into a
> nested loop index scan for a lot of rows, on a huge table which isn't in
> cache...

"Patriotism is the conviction that your country is superior to all others
because you were born in it." -- George Bernard Shaw

In response to


pgsql-performance by date

Next:From: Kevin GrittnerDate: 2010-08-27 14:17:39
Subject: Re: Slow Query
Previous:From: Magnus HaganderDate: 2010-08-27 07:54:46
Subject: Re: [Fwd: postgres 8.4.1 number of connections]

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group