This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: A sick idea - mmapped file output


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/>

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]