Re: PostgreSQL Cache - Mailing list pgsql-general

From Joris Dobbelsteen
Subject Re: PostgreSQL Cache
Date
Msg-id 48E07D38.90906@familiedobbelsteen.nl
Whole thread Raw
In response to PostgreSQL Cache  ("Matthew Pulis" <mpulis@gmail.com>)
List pgsql-general
Matthew Pulis wrote:
> Hi,
>
> I need to perform some timed testing, thus need to make sure that disk
> cache does not affect me. Is clearing the OS (Ubuntu) disk cache, ( by
> running:  sudo echo 3 | sudo tee /proc/sys/vm/drop_caches ) enough to
> do this? If not can you please point me to some site please since all
> I am finding is such command.

Look for methodologies for doing performance tests. A problem is that
the disk cache is an essential part that makes up for postgresql
performance. Also do not forget about overhead and inaccuracies that you
will affect your results.

In general performance tests are a rather large simulation of how your
application would use the database. It should be large enough for many
effects (such as initial cache state) to be neglected. It only provides
an average for the performance on your system configuration.
If you run it a few times more, you can compute the variation. It
provides some insight how stable your system is in handling the workload.

- Joris


pgsql-general by date:

Previous
From: Greg Smith
Date:
Subject: Re: PostgreSQL Cache
Next
From: Richard Huxton
Date:
Subject: Re: Replication using slony-I