Re: umount/mount not flushing cache on 2.2.14 ?

From: Jim Nance (jnance@nortelnetworks.com)
Date: Thu May 04 2000 - 06:27:09 EST


On Wed, May 03, 2000 at 05:22:56PM -0500, bhartner@us.ibm.com wrote:

> I am running a file system throughput benchmark on 2.2.14 and I need to
> be able to flush the file system cache.

You bring up something I have wanted for a while. Strictly for benchmarking,
it would be nice to have some way to flush caches so you could get more
repeatable results (at least you would always be starting from the same
point). I am not sure you would even want this in a normal kernel, so a
system call does not seem like the right way to do it. Perhaps a /proc file
or a kernel module would be a better way. Anyway, does anyone know if this
would be difficult to write? My typical approach is to malloc a huge amount
of memory and dirty it, but that seems like quite a hack.

Thanks,

Jim

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun May 07 2000 - 21:00:14 EST