how to empty buffers/cache?

From: Soeren Sonnenburg
Date: Fri May 09 2008 - 17:50:52 EST


Dear all,

I am trying to perform some benchmarks that involve reading the same big
file a couple of times from disk. However I would want to make sure that
the file is not buffered/cached by the kernel when I read the file a
second/third/etc time.

Is there a way (except rebooting/unmounting the disk) to clear the
buffers?

Thanks,
Soeren
--
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/