public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* mmap-related questions
@ 2003-03-31 14:41 Kenny Simpson
  2003-03-31 17:55 ` Benjamin LaHaise
  0 siblings, 1 reply; 8+ messages in thread
From: Kenny Simpson @ 2003-03-31 14:41 UTC (permalink / raw)
  To: linux-kernel

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2003-04-02 23:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-31 14:41 mmap-related questions Kenny Simpson
2003-03-31 17:55 ` Benjamin LaHaise
2003-04-01  3:25   ` Kenny Simpson
2003-04-01 17:50     ` Benjamin LaHaise
2003-04-02  3:18       ` Kenny Simpson
2003-04-02  9:30         ` Jakob Oestergaard
2003-04-02 15:10           ` Benjamin LaHaise
2003-04-02 23:43             ` Jakob Oestergaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox