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


--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

Reply via email to