Re: VB5 forcing data to disk
- From: "Tony Proctor" <tony_proctor@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 25 Sep 2007 13:55:05 +0100
As I understand it, Jim, changes have been made within the sub-systems, and
the driver I/O requests, to ensure that such data can be persisted safely.
I'm not sure whether these changes are actually new requests, or a
clarification of the semantics of the old requests. I believe that's partly
the cause of the confusion within Microsoft itself over what the correct
flag settings should be. After all, database integrity, and the possibility
of any successful recovery procedure after a powerfail, depend on having
guaranteed points of data consistency.
I mentioned that in my own experience I've found some wildly different
performance characteristics for FILE_FLAG_WRITE_THROUGH. Although I don't
have any concrete evidence, it all seems to smack of a change beneath the
covers.
Tony Proctor
"Jim Mack" <jmack@xxxxxxxxxxxxxxx> wrote in message
news:u$Zklp2$HHA.1184@xxxxxxxxxxxxxxxxxxxxxxx
Tony Proctor wrote:
For data integrity on disk, look for the FILE_FLAG_WRITE_THROUGH
flag. This ensures that all writes go "through" the cache and
safely on to disk.
Safely to the disk subsystem, yes, and from a programmer's POV that's
all you can do.
But modern disks and (especially RAID) controllers may cache writes
out of view of Windows or the file system, so flushing is no guarantee
against power loss, for example. There may be many megabytes of data
in HW cache when the plug gets pulled.
Such controllers usually offer a small battery backup option. It's
always smart to opt for it (-:
--
Jim
.
- References:
- VB5 forcing data to disk
- From: tom
- Re: VB5 forcing data to disk
- From: Tony Proctor
- Re: VB5 forcing data to disk
- From: Jim Mack
- VB5 forcing data to disk
- Prev by Date: Re: VB5 forcing data to disk
- Next by Date: Re: Charts and Indicator Windows
- Previous by thread: Re: VB5 forcing data to disk
- Next by thread: Interview question and projects Ebooks.
- Index(es):
Relevant Pages
|
|