When is write-behind data valid?

From: Jamie (HeyJames_ca_at_hotmail.com)
Date: 12/30/03


Date: 30 Dec 2003 13:01:15 -0800

There's something I need to know about write-behind disk caches once
and for all. I always assumed that the write-behind part and the
read-ahead part of a cache worked together, i.e. if something writes
some data to disk, that data will be available for reading as soon as
it is in the write-behind cache. From what I read about fflush and
sync, they make it seem like this won't just be a problem when the
power suddenly goes out. They talk about it like the read-ahead buffer
will only have stuff that's been physically written on the disk. Is
this true?
   What's worse is that the man pages seem to say that you can *never*
know if the data in a write-behind cache is valid until the file
system is umounted. The man pages for fflush say it doesn't actually
flush the cache, but something else. The notes in fsync say that it
doesn't guarantee that things in the write-behind cache get written
either. Only the man pages for sync seem to say that it really does
sync.



Relevant Pages

  • Re: Caching control
    ... |> | invalidate/unmap them in order to discard the data from memory. ... |> writing out to disk. ... | easy to discard as clean disk cache. ... stating that a specific amount of RAM can be used only for I/O ...
    (comp.os.linux.development.system)
  • PROBLEM: sata_sil24 lockups under heavy i/o
    ... a total of 4) and started heavy i/o (extending a software raid5 device) ... system recovers the disk transfer speed is reduced from UDMA/100 to ... Cache Line Size: 32 bytes ... parport_pc: Current parallel port base: 0x378 ...
    (Linux-Kernel)
  • Re: Scheduler: Process priority fed back to parent?
    ... Mac OS X has a special cache ... on disk of things that get loaded on boot. ... >>initial priority is a guess, and isn't set until the priority info has ... This prefetch activity could be turned on/off ...
    (Linux-Kernel)
  • Re: Pull request for FS-Cache, including NFS patches
    ... Would a disk cache on SSD make any sense? ... including NFS patches ... Allow you to reduce the latency of slow network links by diverting ...
    (Linux-Kernel)
  • Re: 2 questions: IWP, and indexing
    ... using GTRR script steps in the web interface. ... I have a portal on the student layout that shows enrollment ... "Flush Cache to Disk performs an immediate flush of the FileMaker Pro ...
    (comp.databases.filemaker)