[openbeos] Re: mmap, vm2 and you

  • From: "Michael Phipps" <mphipps1@xxxxxxxxxxxxxxxx>
  • To: openbeos@xxxxxxxxxxxxx
  • Date: Sat, 07 Sep 2002 17:02:40 -0400

>IIRC the mmap and file should be synchronised on call to msync(), which
>copies the changed pages to the file and the changed chunks of the file to the 
>mmapped area.
>That's in the msync() man.

msync forces synchronization. I am not so sure that mmap'ed pages won't flush 
to disk more
frequently than that, though. Grr. I may just go and add these two silly 
things. It is irritating to 
have to change the implementation to be at the beck and call of POSIX, but I 
suppose that is
our fee for getting into their game.


>Sorry, can't help more for now :-(
>(damn, you'll get full mmap() before I even publish my mmap() hack for R5 :P)
>
>François.
>
>




Other related posts: