[pacman-dev] [PATCH] HACKING: add some notes /proc/sys/vm/drop_caches
Laszlo Papp
djszapi2 at gmail.com
Mon Nov 16 18:44:09 EST 2009
Signed-off-by: Laszlo Papp <djszapi at archlinux.us>
---
HACKING | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/HACKING b/HACKING
index 537d9a3..63ccf1e 100644
--- a/HACKING
+++ b/HACKING
@@ -146,6 +146,14 @@ For example, to run valgrind:
./src/pacman/pacman
valgrind --leak-check=full -- src/pacman/.libs/lt-pacman -Syu
+How should I make benchmarks?
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+pacman spends most time with reading and writing the database. because of this,
+it's important to drop caches before doing a benchmark. here is how to do so:
+
+# echo 3 > /proc/sys/vm/drop_caches
+
/////
vim: set ts=2 sw=2 syntax=asciidoc et:
/////
--
1.6.5
More information about the pacman-dev
mailing list