From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx201.postini.com [74.125.245.201]) by kanga.kvack.org (Postfix) with SMTP id BB9B76B0044 for ; Tue, 6 Nov 2012 14:16:50 -0500 (EST) Message-ID: <509962B6.1030204@redhat.com> Date: Tue, 06 Nov 2012 14:19:18 -0500 From: Rik van Riel MIME-Version: 1.0 Subject: Re: [PATCH 14/19] mm: mempolicy: Add MPOL_MF_LAZY References: <1352193295-26815-1-git-send-email-mgorman@suse.de> <1352193295-26815-15-git-send-email-mgorman@suse.de> In-Reply-To: <1352193295-26815-15-git-send-email-mgorman@suse.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Mel Gorman Cc: Peter Zijlstra , Andrea Arcangeli , Ingo Molnar , Johannes Weiner , Hugh Dickins , Thomas Gleixner , Linus Torvalds , Andrew Morton , Linux-MM , LKML On 11/06/2012 04:14 AM, Mel Gorman wrote: > From: Lee Schermerhorn > > NOTE: Once again there is a lot of patch stealing and the end result > is sufficiently different that I had to drop the signed-offs. > Will re-add if the original authors are ok with that. > > This patch adds another mbind() flag to request "lazy migration". The > flag, MPOL_MF_LAZY, modifies MPOL_MF_MOVE* such that the selected > pages are marked PROT_NONE. The pages will be migrated in the fault > path on "first touch", if the policy dictates at that time. > > "Lazy Migration" will allow testing of migrate-on-fault via mbind(). > Also allows applications to specify that only subsequently touched > pages be migrated to obey new policy, instead of all pages in range. > This can be useful for multi-threaded applications working on a > large shared data area that is initialized by an initial thread > resulting in all pages on one [or a few, if overflowed] nodes. > After PROT_NONE, the pages in regions assigned to the worker threads > will be automatically migrated local to the threads on 1st touch. > > Signed-off-by: Mel Gorman Reviewed-by: Rik van Riel -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org