Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751557Ab3HTRGd (ORCPT ); Tue, 20 Aug 2013 13:06:33 -0400 Received: from mail-la0-f43.google.com ([209.85.215.43]:57474 "EHLO mail-la0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751226Ab3HTRGc (ORCPT ); Tue, 20 Aug 2013 13:06:32 -0400 Date: Tue, 20 Aug 2013 21:06:29 +0400 From: Cyrill Gorcunov To: Randy Dunlap Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andy Lutomirski , Pavel Emelyanov , Matt Mackall , Xiao Guangrong , Marcelo Tosatti , KOSAKI Motohiro , Stephen Rothwell , Peter Zijlstra , "Aneesh Kumar K.V" Subject: [PATCH -mm] docs: Document soft dirty behaviour for freshly created memory regions, v2 Message-ID: <20130820170629.GN18673@moon> References: <20130820153132.GK18673@moon> <5213A002.7020408@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5213A002.7020408@infradead.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2037 Lines: 45 Here is updated one, thanks again. --- From: Cyrill Gorcunov Subject: [PATCH] docs: Document soft dirty behaviour for freshly created memory regions Signed-off-by: Cyrill Gorcunov Cc: Pavel Emelyanov Cc: Andy Lutomirski Cc: Andrew Morton Cc: Matt Mackall Cc: Xiao Guangrong Cc: Marcelo Tosatti Cc: KOSAKI Motohiro Cc: Stephen Rothwell Cc: Peter Zijlstra Cc: "Aneesh Kumar K.V" Cc: Randy Dunlap --- Documentation/vm/soft-dirty.txt | 7 +++++++ 1 file changed, 7 insertions(+) Index: linux-2.6.git/Documentation/vm/soft-dirty.txt =================================================================== --- linux-2.6.git.orig/Documentation/vm/soft-dirty.txt +++ linux-2.6.git/Documentation/vm/soft-dirty.txt @@ -28,6 +28,13 @@ This is so, since the pages are still ma the kernel does is finds this fact out and puts both writable and soft-dirty bits on the PTE. + While in most cases tracking memory changes by #PF-s is more than enough +there is still a scenario when we can lose soft dirty bits -- a task +unmaps a previously mapped memory region and then maps a new one at exactly +the same place. When unmap is called, the kernel internally clears PTE values +including soft dirty bits. To notify user space application about such +memory region renewal the kernel always marks new memory regions (and +expanded regions) as soft dirty. This feature is actively used by the checkpoint-restore project. You can find more details about it on http://criu.org -- 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/