Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936314Ab3DHXKW (ORCPT ); Mon, 8 Apr 2013 19:10:22 -0400 Received: from mail-qa0-f52.google.com ([209.85.216.52]:65463 "EHLO mail-qa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760264Ab3DHXKU (ORCPT ); Mon, 8 Apr 2013 19:10:20 -0400 Message-ID: <51634E58.4080104@gmail.com> Date: Mon, 08 Apr 2013 19:10:16 -0400 From: KOSAKI Motohiro User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 MIME-Version: 1.0 To: Pavel Emelyanov CC: Linux MM , Andrew Morton , Matt Mackall , Linux Kernel Mailing List , Glauber Costa , Matthew Wilcox , kosaki.motohiro@gmail.com Subject: Re: [RFC PATCH 1/1] mm: Another attempt to monitor task's memory changes References: <515F0484.1010703@parallels.com> In-Reply-To: <515F0484.1010703@parallels.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1040 Lines: 23 > This approach works on any task via it's proc, and can be used on different > tasks in parallel. > > Also, Andrew was asking for some performance numbers related to the change. > Now I can say, that as long as soft dirty bits are not cleared, no performance > penalty occur, since the soft dirty bit and the regular dirty bit are set at > the same time within the same instruction. When soft dirty is cleared via > clear_refs, the task in question might slow down, but it will depend on how > actively it uses the memory. > > > What do you think, does it make sense to develop this approach further? When touching mmaped page, cpu turns on dirty bit but doesn't turn on soft dirty. So, I'm not convinced how to use this flag. Please show us your userland algorithm how to detect diff. -- 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/