Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1561720yba; Thu, 25 Apr 2019 01:45:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqxjSebkd/OOkVpSdwJig/HJnebV6o0KbvzRqIKJDamhPbrFy/XKsHw3ncXTXIJo2jXyzP09 X-Received: by 2002:a63:c145:: with SMTP id p5mr35326977pgi.339.1556181931485; Thu, 25 Apr 2019 01:45:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556181931; cv=none; d=google.com; s=arc-20160816; b=TTlifx1PpUB51tYKq5C51qn4TtgIxD8TVmxJNJBIfU3GMBiEdFdmUcpm6wB+/6Y3z3 67hBwR1osEg9AwdSYBz0bqfNYquC86DrV4EFvJlW8U/SG6iZycY5LT/fzDj0ThmmJZ/7 NPmX4b0C3tcYM/j1XavOQv949QYdu/3HrGWV4OFsCVtxGcvj3kW7o164gNtUVmGUeiJS Xxi7XM9pSrG7bGTX4Iuthuxi7xCTIvW6TMVOF4tSRVepQN1nnjMrlq3LjK7TmIkudZJI iWPjPkNsTycK+yDRIuPfwNenTdWbdGx1LMnX9XCfzUMAOE+n9uI2iuJkfQ9KASOx/dy2 9l3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=vlwgYT+kNZGNtlhgcPt6OaoKxXU+/F17Asts9ky7DrU=; b=pppkfr2m82cKJcodZN/NCltwQK3MyQS0W/fagmj9G88K9xVa7j9EdFPSHRZP2X2KlX 8+eeDm8MCXkJrH6rSmpCwDBDkS3+BKm94FWnalw/LVoySn0uKcINEoAe2A9N70rYeFO3 BjIg6Mliso0ncmAclXWGS1LzVcRA8JqB5D3hfCRWqEIynHLzUlsMbOqRZ/OtWsGgBIbH gdzIqLlgsxz+cBdoU/g38p3H+ADhpzm8oOtSYUwWOoN99qJqhxodERQdxC74J4oPVnJC miTeboxM27gNKIypnpUz6p6HavbqGZ28/qnfniogCwItGb7V0wy5ZFq+bGGJqKTQ+l4x GZbg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 140si20348009pga.460.2019.04.25.01.45.16; Thu, 25 Apr 2019 01:45:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727734AbfDYHsn (ORCPT + 99 others); Thu, 25 Apr 2019 03:48:43 -0400 Received: from mx2.suse.de ([195.135.220.15]:39600 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726184AbfDYHsn (ORCPT ); Thu, 25 Apr 2019 03:48:43 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 23A2AAF60; Thu, 25 Apr 2019 07:48:42 +0000 (UTC) Date: Thu, 25 Apr 2019 09:48:41 +0200 From: Michal Hocko To: "Du, Fan" Cc: "akpm@linux-foundation.org" , "Wu, Fengguang" , "Williams, Dan J" , "Hansen, Dave" , "xishi.qiuxishi@alibaba-inc.com" , "Huang, Ying" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" Subject: Re: [RFC PATCH 5/5] mm, page_alloc: Introduce ZONELIST_FALLBACK_SAME_TYPE fallback list Message-ID: <20190425074841.GN12751@dhcp22.suse.cz> References: <1556155295-77723-1-git-send-email-fan.du@intel.com> <1556155295-77723-6-git-send-email-fan.du@intel.com> <20190425063807.GK12751@dhcp22.suse.cz> <5A90DA2E42F8AE43BC4A093BF067884825785F04@SHSMSX104.ccr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5A90DA2E42F8AE43BC4A093BF067884825785F04@SHSMSX104.ccr.corp.intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 25-04-19 07:43:09, Du, Fan wrote: > > > >-----Original Message----- > >From: Michal Hocko [mailto:mhocko@kernel.org] > >Sent: Thursday, April 25, 2019 2:38 PM > >To: Du, Fan > >Cc: akpm@linux-foundation.org; Wu, Fengguang ; > >Williams, Dan J ; Hansen, Dave > >; xishi.qiuxishi@alibaba-inc.com; Huang, Ying > >; linux-mm@kvack.org; linux-kernel@vger.kernel.org > >Subject: Re: [RFC PATCH 5/5] mm, page_alloc: Introduce > >ZONELIST_FALLBACK_SAME_TYPE fallback list > > > >On Thu 25-04-19 09:21:35, Fan Du wrote: > >> On system with heterogeneous memory, reasonable fall back lists woul be: > >> a. No fall back, stick to current running node. > >> b. Fall back to other nodes of the same type or different type > >> e.g. DRAM node 0 -> DRAM node 1 -> PMEM node 2 -> PMEM node 3 > >> c. Fall back to other nodes of the same type only. > >> e.g. DRAM node 0 -> DRAM node 1 > >> > >> a. is already in place, previous patch implement b. providing way to > >> satisfy memory request as best effort by default. And this patch of > >> writing build c. to fallback to the same node type when user specify > >> GFP_SAME_NODE_TYPE only. > > > >So an immediate question which should be answered by this changelog. Who > >is going to use the new gfp flag? Why cannot all allocations without an > >explicit numa policy fallback to all existing nodes? > > PMEM is good for frequently read accessed page, e.g. page cache(implicit page > request), or user space data base (explicit page request) > For now this patch create GFP_SAME_NODE_TYPE for such cases, additional > Implementation will be followed up. Then simply configure that NUMA node as movable and you get these allocations for any movable allocation. I am not really convinced a new gfp flag is really justified. -- Michal Hocko SUSE Labs