lkml.org 
[lkml]   [2013]   [Jul]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 4/5] mm: soft-dirty bits for user memory changes tracking
On 07/11/2013 10:46 PM, Andy Lutomirski wrote:
>
> Sorry I'm late to the party -- I didn't notice this until the lwn
> article this week.
>
> How does this get munmap + mmap right? mremap marks things soft-dirty,
> but unmapping and remapping seems like it will result in the soft-dirty
> bit being cleared. For that matter, won't this sequence also end up wrong:
>
> - clear_refs
> - Write to mapping
> - Page and pte evicted due to memory pressure
> - Read from mapping -- clean page faulted back in
> - pte soft-dirty is now clear ?!?

Yes, it looks like this problem exists. I'll look what can be done about
it, thank you.

> --Andy

Pavel


\
 
 \ /
  Last update: 2013-07-12 21:21    [W:0.098 / U:0.368 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site