From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753492AbcJMKN2 (ORCPT ); Thu, 13 Oct 2016 06:13:28 -0400 Received: from mail-qt0-f172.google.com ([209.85.216.172]:33762 "EHLO mail-qt0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753013AbcJMKNX (ORCPT ); Thu, 13 Oct 2016 06:13:23 -0400 Date: Thu, 13 Oct 2016 12:07:09 +0200 From: Michal Hocko To: Anshuman Khandual Cc: Mel Gorman , Linux Kernel Mailing List , Linux Memory Management List , Andrew Morton , "Aneesh Kumar K.V" , Balbir Singh , Vlastimil Babka , Minchan Kim Subject: Re: MPOL_BIND on memory only nodes Message-ID: <20161013100708.GI21678@dhcp22.suse.cz> References: <57FE0184.6030008@linux.vnet.ibm.com> <20161012094337.GH17128@dhcp22.suse.cz> <20161012131626.GL17128@dhcp22.suse.cz> <57FF59EE.9050508@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <57FF59EE.9050508@linux.vnet.ibm.com> User-Agent: Mutt/1.6.0 (2016-04-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 13-10-16 15:24:54, Anshuman Khandual wrote: [...] > Which makes the function look like this. Even with these changes, MPOL_BIND is > still going to pick up the local node's zonelist instead of the first node in > policy->v.nodes nodemask. It completely ignores policy->v.nodes which it should > not. Not really. I have tried to explain earlier. We do not ignore policy nodemask. This one comes from policy_nodemask. We start with the local node but fallback to some of the nodes from the nodemask defined by the policy. -- Michal Hocko SUSE Labs