[lug] inhibit caching

Sean Reifschneider jafo at tummy.com
Tue Jun 22 10:46:55 MDT 2004


On Mon, Jun 21, 2004 at 12:56:10AM -0600,  wrote:
>Is there a way to inhibit caching for a file
>or disk, so when the data are read they truly
>come from disk instead of from cache?

The easy way is to make sure that the file you are dealing with is
larger than your physical RAM, if you are dealing with it sequentially.

You can ensure that the cache is flushed by unmounting the filesystem,
so if you remount before reading and after writing you know that the
cache is flushed.

Sean
-- 
 It's not a recursive function except in the sense that it calls itself.
                 -- demoncrat on #python, 1999
Sean Reifschneider, Member of Technical Staff <jafo at tummy.com>
tummy.com, ltd. - Linux Consulting since 1995.  Qmail, Python, SysAdmin



More information about the LUG mailing list