Memory Mapped Files: does it reduce Flash wear?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I'm working on a project that wants to do a large number of write
operations (journaling of application processes) on persistent memory.
The industrial environment in which our app runs demands for the shock
resistance and operating temperature range of flash-based products,
but the write-cycle wear is an issue.

In order to avoid writing to the FAT table of a CompactFlash card, I
was looking at the use of memory mapped files. My idea was to allocate
a fairly large file using CreateFileMapping and then implement a
circular buffer of some sort in our application.

The question I wanted to ask was whether a write operation to a mapped
file (i.e. writing to a memory location) invokes a write to the FAT or
the directory structure. I'm concerned about the directory entry of
the file, since time/date may be adjusted. Since no re-allocation
needs to be done the FAT should stay untouched.

I'm aware of the way "wear levelling" works on CF. I think that if a
mapped file write means a directory entry write, then the only
solution will be to write to CF sectors from our application. This is
something I would like to avoid.

Has anyone else had any similar experiences?

Thank you.

Dave
.



Relevant Pages

  • Re: New danger found in high saturated fat diet
    ... > memory as well. ... dietary fat, or endogenous sources such as lipolysis (from fat ... University of South Carolina in Charleston explored whether a diet ... The investigators gave the 16-month-old rats a diet containing 2 ...
    (sci.med.nutrition)
  • Body shape affects memory in older women
    ... Body shape affects memory in older women ... By the CNN Wire Staff ... Scientists know that different kinds of fat release different cytokines -- ...
    (soc.retirement)
  • Re: fsck.vfat malloc trouble
    ... The data on that disk is safely backed up and rather useless anyway, ... Top shows it does indeed allocate all remaining memory. ... The filesystem is 153G. ... such a large FAT partition would be -- is there any reason that you can't ...
    (alt.os.linux)
  • Re: Fat type affects kids memory
    ... >commonly used measure of short-term memory, ... >types of fat in 3,666 children aged six to 16 ... Cognitive functioning was measured using ... >But compared with equivalent energy intake from ...
    (alt.support.diabetes)
  • Re: Migrating to Oracle on Windows
    ... memory mapped files are not shared in real time. ... I suspect that oracle chose the standard multi-threaded ...
    (comp.databases.oracle.server)