Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1505818

Re: [PATCH] mm, mempolicy: clean up __GFP_THISNODE confusion in policy_zonelist

From Vlastimil Babka <vbabka@suse.cz>
Newsgroups linux.kernel
Subject Re: [PATCH] mm, mempolicy: clean up __GFP_THISNODE confusion in policy_zonelist
Date 2016-10-21 14:10 +0200
Message-ID <suGO5-5kf-7@gated-at.bofh.it> (permalink)
References <srNVM-3VP-15@gated-at.bofh.it> <suGl4-4T9-23@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 10/21/2016 01:34 PM, Aneesh Kumar K.V wrote:
> Michal Hocko <mhocko@kernel.org> 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: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
>

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] mm, mempolicy: clean up __GFP_THISNODE confusion in policy_zonelist Michal Hocko <mhocko@kernel.org> - 2016-10-13 15:10 +0200
  Re: [PATCH] mm, mempolicy: clean up __GFP_THISNODE confusion in  policy_zonelist Vlastimil Babka <vbabka@suse.cz> - 2016-10-18 11:50 +0200
  Re: [PATCH] mm, mempolicy: clean up __GFP_THISNODE confusion in policy_zonelist "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com> - 2016-10-21 13:40 +0200
    Re: [PATCH] mm, mempolicy: clean up __GFP_THISNODE confusion in  policy_zonelist Michal Hocko <mhocko@kernel.org> - 2016-10-21 14:00 +0200
    Re: [PATCH] mm, mempolicy: clean up __GFP_THISNODE confusion in  policy_zonelist Vlastimil Babka <vbabka@suse.cz> - 2016-10-21 14:10 +0200
      Re: [PATCH] mm, mempolicy: clean up __GFP_THISNODE confusion in policy_zonelist "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com> - 2016-10-21 14:30 +0200

csiph-web