Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755344AbcJUMI0 (ORCPT ); Fri, 21 Oct 2016 08:08:26 -0400 Received: from mx2.suse.de ([195.135.220.15]:53887 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754307AbcJUMIZ (ORCPT ); Fri, 21 Oct 2016 08:08:25 -0400 Subject: Re: [PATCH] mm, mempolicy: clean up __GFP_THISNODE confusion in policy_zonelist To: "Aneesh Kumar K.V" , Michal Hocko , Andrew Morton References: <20161013125958.32155-1-mhocko@kernel.org> <877f92ue91.fsf@linux.vnet.ibm.com> Cc: Mel Gorman , David Rientjes , Anshuman Khandual , linux-mm@kvack.org, LKML , Michal Hocko From: Vlastimil Babka Message-ID: Date: Fri, 21 Oct 2016 14:08:19 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: <877f92ue91.fsf@linux.vnet.ibm.com> Content-Type: text/plain; charset=iso-8859-2; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1171 Lines: 27 On 10/21/2016 01:34 PM, Aneesh Kumar K.V wrote: > Michal Hocko writes: >> > > For both MPOL_PREFERED and MPOL_INTERLEAVE we pick the zone list from > the node other than the current running node. Why don't we do that for > MPOL_BIND ?ie, if the current node is not part of the policy node mask > why are we not picking the first node from the policy node mask for > MPOL_BIND ? For MPOL_PREFERED and MPOL_INTERLEAVE we got some explicit preference of nodes, so it makes sense that the nodes in the zonelist we pick are ordered by the distance from that node, regardless of current node. For MPOL_BIND, we don't have preferences but restrictions. If the current cpu is from a node within the restriction, then great. If it's not, finding a node according to distance from current cpu is probably less arbitrary than by distance from the node that happens to have the lowest id in the node mask? > -aneesh > > -- > 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 >