Mail Archives: djgpp/2004/12/30/14:00:09
> From: Brian Inglis <Brian DOT Inglis AT SystematicSW DOT Invalid>
> Date: Thu, 30 Dec 2004 11:32:27 GMT
>
> >> Saw that: looks like it just flushes buffered writes, not all buffered
> >> data read.
> >
> >On what OS?
>
> In flushdc.{c,txh} and RBIL.
> None of them say that the list of all cached blocks is cleared,
Yes, but did you actually try that, or did you only look at the
sources? If you did try it and it didn't remove the read data, please
tell on what OS was that.
Note that the system call used by the function not only flushes the
cache, but also resets the disk drive, which should do what you want
(and at least on plain DOS, it actually did).
> or that caching is disabled.
The function doesn't disable caching, but if you invoke it after every
test, you should see the behavior of uncached data, i.e. raw disk I/O
performance. Isn't that what you wanted?
- Raw text -