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?
Amir Hermelin wrote:
> Hi,
> When a process mmaps a file, how does the kernel know the memory has been
> written to (and hence the page is dirty)? Is this done by setting the
> protected flag, and when the memory is first written to it's set to dirty?

No need on a i386. The cpu sets the page dirty in the pagetables
when it is written to. It doesn't matter what kind of page
it is.

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

Helge Hafting

-
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.043 / U:0.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site