Re: [PATCH] mm: Track vma changes with VM_SOFTDIRTY bit

2013-08-19 Thread Cyrill Gorcunov
On Mon, Aug 19, 2013 at 02:08:16PM -0700, Andrew Morton wrote: > > > > Thus when user space application track memory changes > > now it can detect if vma area is renewed. > > Can we please update Documentation/vm/soft-dirty.txt for this? Oops. Sorry, forgot about soft-dirty.txt. Sure I'll update

Re: [PATCH] mm: Track vma changes with VM_SOFTDIRTY bit

2013-08-19 Thread Andrew Morton
On Mon, 19 Aug 2013 23:58:36 +0400 Cyrill Gorcunov wrote: > Pavel reported that in case if vma area get unmapped and > then mapped (or expanded) in-place, the soft dirty tracker > won't be able to recognize this situation since it works on > pte level and ptes are get zapped on unmap, loosing sof

[PATCH] mm: Track vma changes with VM_SOFTDIRTY bit

2013-08-19 Thread Cyrill Gorcunov
Pavel reported that in case if vma area get unmapped and then mapped (or expanded) in-place, the soft dirty tracker won't be able to recognize this situation since it works on pte level and ptes are get zapped on unmap, loosing soft dirty bit of course. So to resolve this situation we need to trac