Re: clearing filesystem cache for I/O benchmarks
From: Andreas Haumer
Date: Sun Jul 25 2004 - 03:14:04 EST
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi!
Benjamin Rutt wrote:
> How can I purge all of the kernel's filesystem caches, so I can trust
> that my I/O (read) requests I'm trying to benchmark bypass the kernel
> filesystem cache?
Some time ago I was looking for that, too, and found "cfree". Have a
look at <http://gizmolabs.org/~andrew/andrewweb/project.php?pid=3&tab=0>
It's a small utility and kernel module for linux-2.4 written by
Andrew de los Reyes. It allows to clear portions of the buffer cache
(e.g. for a complete sub-directory). I haven't analyzed it so I can't
say if it does things correctly, though.
HTH
- - andreas
- --
Andreas Haumer | mailto:andreas@xxxxxxxxx
*x Software + Systeme | http://www.xss.co.at/
Karmarschgasse 51/2/20 | Tel: +43-1-6060114-0
A-1100 Vienna, Austria | Fax: +43-1-6060114-71
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFBA2s2xJmyeGcXPhERAuaTAKCaxNRjhbzf3G5uL1lsXYg41eF+jQCeP808
DNcut1YDptMCNsvAeXrt+d8=
=xPh9
-----END PGP SIGNATURE-----
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/