From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1423136Ab2KNSW5 (ORCPT ); Wed, 14 Nov 2012 13:22:57 -0500 Received: from mx1.redhat.com ([209.132.183.28]:65047 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1422887Ab2KNSW4 (ORCPT ); Wed, 14 Nov 2012 13:22:56 -0500 Message-ID: <50A3E169.4010402@redhat.com> Date: Wed, 14 Nov 2012 13:22:33 -0500 From: Rik van Riel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120827 Thunderbird/15.0 MIME-Version: 1.0 To: Mel Gorman CC: Peter Zijlstra , Andrea Arcangeli , Ingo Molnar , Johannes Weiner , Hugh Dickins , Thomas Gleixner , Linus Torvalds , Andrew Morton , Linux-MM , LKML Subject: Re: [PATCH 26/31] sched: numa: Make mempolicy home-node aware References: <1352805180-1607-1-git-send-email-mgorman@suse.de> <1352805180-1607-27-git-send-email-mgorman@suse.de> In-Reply-To: <1352805180-1607-27-git-send-email-mgorman@suse.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/13/2012 06:12 AM, Mel Gorman wrote: > From: Peter Zijlstra > > Add another layer of fallback policy to make the home node concept > useful from a memory allocation PoV. > > This changes the mpol order to: > > - vma->vm_ops->get_policy [if applicable] > - vma->vm_policy [if applicable] > - task->mempolicy > - tsk_home_node() preferred [NEW] > - default_policy Why is the home node policy not the default policy? > Note that the tsk_home_node() policy has Migrate-on-Fault enabled to > facilitate efficient on-demand memory migration. > > Signed-off-by: Peter Zijlstra > Cc: Paul Turner > Cc: Lee Schermerhorn > Cc: Christoph Lameter > Cc: Rik van Riel > Cc: Andrew Morton > Cc: Linus Torvalds > Signed-off-by: Ingo Molnar > Signed-off-by: Mel Gorman -- All rights reversed