- Are memory mapped files cached?
- Posted by Todd Bandrowsky on June 27th, 2003
I'm trying to assess the potential benefit of implementing a cache on
top of a database server I wrote that uses memory mapped files. I
don't know if Win32 does caches memory mapped file access, and if it
does, what factors control its behavior. Although my gut tells me
that it might be worth it to implement a simple cache, I wonder if MS
has already done it!
- Posted by Tim Robinson on June 27th, 2003
Windows caches memory-mapped files in the same way that it caches both disk
I/O and normal memory (they're all the same thing). You can think of your
normal memory as a memory-mapped file backed by the pagefile. So adding a
cache on top of an MMF would be adding extra overhead.
--
Tim Robinson (MVP, Windows SDK)
http://www.themobius.co.uk/
"Todd Bandrowsky" <anakin@unitedsoftworks.com> wrote in message
news:af3d9224.0306271236.1675ea3@posting.google.co m...
- memory mapped IO: device registers mapped to virtual memory or physical memory? (Computer Hardware) by Olumide
- Difference between Memory Mapped and IO Mapped ? (Microprocessors) by Raja
- Memory Mapped Files Reading and Cache Problem (Drivers) by Shalini
- memory mapped files (Drivers) by finecats
- Memory mapped Vs IO mapped I/O (Drivers) by rajesh

