Messages in this thread | | | Date | Mon, 31 Mar 2003 06:41:10 -0800 (PST) | From | Kenny Simpson <> | Subject | mmap-related questions |
| |
Greetings! I hate to ask this type of questions here, but having searched the list and googling, I have found no good answers, so here goes..
If I use mmap to give me a sliding window view onto a file (mmap/munmap/mmap or mremap), how can I sync all unmapped memory associated with the file?
I read from Stevens that "the call to munmap does not cause the contents of the mapped region to be written to the disk file.", but I don't want to pay the penalty of doing many msync()'s each time I move my window. I tested that fsync() does not seem to sync pages that were mapped with mmap. Is there some way to sync all data associated with the file? Is there a way which is also portable to Solaris 2.6?
Thanks, -Kenny
BTW: I'm using 2.4.7 (RH enterprise)
__________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |