Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1562152yba; Thu, 25 Apr 2019 01:46:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqwWKmnoqv2dREsLKjQlVkRuWGekzwVCqb/XsRh5URkWTTH+HbdYKAGme20B+9ur4sHdqWB3 X-Received: by 2002:a17:902:e407:: with SMTP id ci7mr37673166plb.219.1556181964591; Thu, 25 Apr 2019 01:46:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556181964; cv=none; d=google.com; s=arc-20160816; b=WxYYtJucjRUz2IvwN/aKr5vk+ALq8dgZjrdtwe8sUpA977DtCNq5Tk8egQWsYZFlZh pl6VpIGGmpSAW1p67qirGIyzL0mQVTi7KcCCvvFhrJullSZ6JaNacfS6u4M7ERCghw/O 1JSgalMTeFrHB5Bap8MVuNlEpImwW7185gPlVkIMfSULmfWkunUYduVnFfWd5ev6p8is rOoOU7xtK+3O7/KgAp1n1VIybR5JcnYDNWklJ9XkEd2QQHCAtXO2IiyE4AYzXwCAE54p S/3RO5vLSn6ZcvosMciVWntbco2nDnMjFKs4syGLkXRPtTVokrBLv48Hwn8SlMIbGF8L KgJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from; bh=TN7oRj4nRYIYKkEZRNBCFfFIzuSanM04afuxAr6OuWE=; b=oVDN6Tii9HXrqEmvdX3h6qpwr+rzizCpGaFVeMVowA55SVvdHQNKJ8Gm1Ww/PzhRyl 5MacbxM6OFeSm8/Zn9cxUSz+bsiGHmxsAgmFRwFEfMa8dsm7RUdb5UZLPP9d6sVGChyB p8Zw3obxN7yNjxrYYw3/8Mh/BFh1QAkgjSILqIY2S7e2VDwN3IWMX8lE13dw3MetXTWA 3B034yaxy8PHrJeNRNgHPn0yplq9dVtBTR8E5KAsJnoHeGzODwqOqF6YyD0ignhf8PYe L303Nxx4At8315w0YWIxpVF9+sGC5baG02LAecMmNn6yxgSmVWxnGLZjtRQr4hjjhUJV wOyg== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h3si14142627pgc.299.2019.04.25.01.45.49; Thu, 25 Apr 2019 01:46:04 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728297AbfDYH4D convert rfc822-to-8bit (ORCPT + 99 others); Thu, 25 Apr 2019 03:56:03 -0400 Received: from mga07.intel.com ([134.134.136.100]:27470 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728012AbfDYH4C (ORCPT ); Thu, 25 Apr 2019 03:56:02 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Apr 2019 00:56:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,393,1549958400"; d="scan'208";a="164917971" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga004.fm.intel.com with ESMTP; 25 Apr 2019 00:56:01 -0700 Received: from fmsmsx153.amr.corp.intel.com (10.18.125.6) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 25 Apr 2019 00:56:01 -0700 Received: from shsmsx154.ccr.corp.intel.com (10.239.6.54) by FMSMSX153.amr.corp.intel.com (10.18.125.6) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 25 Apr 2019 00:56:01 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.92]) by SHSMSX154.ccr.corp.intel.com ([169.254.7.149]) with mapi id 14.03.0415.000; Thu, 25 Apr 2019 15:55:59 +0800 From: "Du, Fan" To: Michal Hocko 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" , "Du, Fan" Subject: RE: [RFC PATCH 5/5] mm, page_alloc: Introduce ZONELIST_FALLBACK_SAME_TYPE fallback list Thread-Topic: [RFC PATCH 5/5] mm, page_alloc: Introduce ZONELIST_FALLBACK_SAME_TYPE fallback list Thread-Index: AQHU+wg4wWYFBheblUa8IPBSvnCJwqZL5rWAgACUV7D//39ggIAAhyuw Date: Thu, 25 Apr 2019 07:55:58 +0000 Message-ID: <5A90DA2E42F8AE43BC4A093BF067884825785F50@SHSMSX104.ccr.corp.intel.com> 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> <20190425074841.GN12751@dhcp22.suse.cz> In-Reply-To: <20190425074841.GN12751@dhcp22.suse.cz> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNGMzZGYyNWMtN2QxZi00Yjc4LTgzMzYtZjIzZWNhM2YyNzE0IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoid1d2NmNCdTJDVUl5THJXMHROcGtHNlJROWlSY0RZc1NlYzJsMmRuckdSb2RFU0xkd2Ewam1TSGVLYXljazlWTSJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.600.7 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >-----Original Message----- >From: owner-linux-mm@kvack.org [mailto:owner-linux-mm@kvack.org] On >Behalf Of Michal Hocko >Sent: Thursday, April 25, 2019 3:49 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 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. Case 1: frequently write and/or read accessed page deserved to DRAM Case 2: frequently read accessed page deserved to PMEM We need something like a new gfp flag to sort above two cases out From each other. >-- >Michal Hocko >SUSE Labs