A sick idea - mmapped file output
Russ Allbery
rra@stanford.edu
Fri Nov 3 18:31:00 GMT 2000
Linus Torvalds <torvalds@transmeta.com> writes:
> - a number of (especially older) systems will not guarantee 100%
> synchronization with mmap/read. At the very least you should add a
> msync() call, but I suspect you might still find systems where there
> are separate caches for mmap and for "regular IO", and you might have
> aliasing and resulting non-reproducible behaviour.
Our experience with INN was that even calling msync after writing to the
mmap'd pages didn't always cause everything to show up to a subsequent
read on platforms that didn't have a unified cache.
--
Russ Allbery (rra@stanford.edu) < http://www.eyrie.org/~eagle/ >
More information about the Gcc
mailing list