tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Can I set file caching to zero?
@ 1999-07-27 13:28 CSCF Staff (rehorka)
  0 siblings, 0 replies; only message in thread
From: CSCF Staff (rehorka) @ 1999-07-27 13:28 UTC (permalink / raw)
  To: tru64-unix-managers

I have a researcher who is trying to prevent caching from causing a bias
in the timing of different functions that read from disk.  He needs to
time how long two different methods take to read the same data from the
same files.  Unfortunately, once he's run the first function, so much of
the data is cached that the second function appears dramatically
faster.  This behavior persists even if he swaps the order of the
functions.  He has tried several methods with varying degrees of
success, but what he is looking for is 0% cache hit rate.  Since the
difference in times of the two functions may be relatively small,
any caching will obscure this difference.   Sequentially reading a
large file seems to be terrible at doing this.  Randomly reading a large
file is better but not good.  He has also used the sync()  
(although not fsync()  ) function which works suprisingly well at
times but not always. It seems like the I/O subsystem is too 
sophisticated.  The only ways I know of to do this are to reboot the
system or re-mount the file system, both of which are impractical. 


Gary Rehorka           Computer Science Computing Facility,
rehorka@cs.umass.edu   LGRC Room A313,
Tel:  (413)545-4822    University of Massachusetts
Fax:  (413)545-1249    Amherst, MA           01003

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-07-27 13:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-07-27 13:28 Can I set file caching to zero? CSCF Staff (rehorka)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox