lkml.org 
[lkml]   [2003]   [Oct]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: how do file-mapped (mmapped) pages become dirty?
On Tue, 28 Oct 2003, Chris Friesen wrote:

> Helge Hafting wrote:
> > Amir Hermelin wrote:
>
> >> What function is responsible for this setting? And when will the page be
> >> written back to disk (i.e. where's the flusher located)?
> >>
> > When there's memory pressure, or a sync.
>
> Note however that you need an msync() -- fsync() and fdatasync() do not
> catch changes to mmapped pages.
>
> Chris
>

Sure they do. fsync() will sync the whole file, regardless of
whether or not it's been mapped. msync() allows you to sync
only a specific portion and control how that portion is
handled with some flags.

Cheers,
Dick Johnson
Penguin : Linux version 2.4.22 on an i686 machine (797.90 BogoMips).
Note 96.31% of all statistics are fiction.


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

\
 
 \ /
  Last update: 2005-03-22 13:58    [W:0.207 / U:0.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site