From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx156.postini.com [74.125.245.156]) by kanga.kvack.org (Postfix) with SMTP id 95D4F6B00A8 for ; Wed, 21 Nov 2012 06:24:39 -0500 (EST) Date: Wed, 21 Nov 2012 11:24:33 +0000 From: Mel Gorman Subject: Re: [PATCH 37/46] mm: numa: Add THP migration for the NUMA working set scanning fault case. Message-ID: <20121121112433.GX8218@suse.de> References: <1353493312-8069-1-git-send-email-mgorman@suse.de> <1353493312-8069-38-git-send-email-mgorman@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <1353493312-8069-38-git-send-email-mgorman@suse.de> Sender: owner-linux-mm@kvack.org List-ID: To: Peter Zijlstra , Andrea Arcangeli , Ingo Molnar Cc: Rik van Riel , Johannes Weiner , Hugh Dickins , Thomas Gleixner , Paul Turner , Lee Schermerhorn , Alex Shi , Linus Torvalds , Andrew Morton , Linux-MM , LKML On Wed, Nov 21, 2012 at 10:21:43AM +0000, Mel Gorman wrote: > Note: This is very heavily based on a patch from Peter Zijlstra with > fixes from Ingo Molnar, Hugh Dickins and Johannes Weiner. That patch > put a lot of migration logic into mm/huge_memory.c where it does > not belong. This version puts tries to share some of the migration > logic with migrate_misplaced_page. However, it should be noted > that now migrate.c is doing more with the pagetable manipulation > than is preferred. The end result is barely recognisable so as > before, the signed-offs had to be removed but will be re-added if > the original authors are ok with it. > > Add THP migration for the NUMA working set scanning fault case. > > It uses the page lock to serialize. No migration pte dance is > necessary because the pte is already unmapped when we decide > to migrate. > > Signed-off-by: Mel Gorman > --- > include/linux/migrate.h | 16 ++++ > mm/huge_memory.c | 55 +++++++----- > mm/internal.h | 2 + > mm/migrate.c | 212 ++++++++++++++++++++++++++++++++++++++--------- > 4 files changed, 226 insertions(+), 59 deletions(-) > And now that I've released it I see that this almost certainly broke memcg as the memcontrol.c bits are missing. I'll need to carry them over. -- Mel Gorman SUSE Labs -- 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