Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1589757yba; Thu, 25 Apr 2019 02:19:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqx81Crrjktb/Lm9rMOaD9TOmzD2D+ThSeKT+qzE/xNJ9W25/5EY6/JbMHdKq8gX6LFOrGNM X-Received: by 2002:a17:902:20c9:: with SMTP id v9mr37960530plg.239.1556183963448; Thu, 25 Apr 2019 02:19:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556183963; cv=none; d=google.com; s=arc-20160816; b=FjFXSfQhHWuexaBw5e5XVENaU61yeAuVT2333vL7w20PEGDLtu/9ggwvwknrP8XJJC h7RTgZLgbV9POxdFm9SJl4A5R05kgCXiy7EPKLywltUaDH4EfARi3/ts8SfhKkKQml+x ksOpgXU0XXnK6IisFZatQow0NNuKuHR4aFrrWY8EE+0DeYwax7D0pZtDy/aEJgNwm2BW utS0WdJTwGUHeNWEAUiiqzZRSf0OLd0+ecXLsIQk/aDhMXc8YXRbkeLvBZG9aHpCs/nn 4hyIXEDb6Kt6FHlUL7day0/p6XL4k/iwIdPEdpNMA/imrgUFj/EyKeXJ/3EOLeBmv6a9 Runw== 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=eLIHO20U3AbWIPMFs3nvwdxvpXyEUCfHimnyoGW38ew=; b=qELFe/bNyclioPcTCiqBkJNhGEDSJLfBTokt0LuKwyNN4uhNg4Elg69Pa7gF8Hw9+M TrGDeXDWc+//xGqSXkQ/jxN06qGiecXxKeBVV6phjQUBSMeRMg4f2pmWLgtG0kW1Q12p G+ckzUEfpL3NtZH56D901w+5/hTKCSSs4CL88POBiFFonvhKNxdsd0yZ4eoXi5WWWK0J YmftN0VTKyddJPD6fHkaZYSOwKCXPC9rU6VV8fwNNoiM/kzWuzd0dpsANsxfZ1qrR+d+ hYlc21GGtyLmhzay5CSQbgHXUmI5a67GSNsz8HWh9coUMnWyZQqohAnpAi51inEtda/V B1Bw== 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 j9si21151582plk.125.2019.04.25.02.19.08; Thu, 25 Apr 2019 02:19:23 -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 S1728418AbfDYJSJ convert rfc822-to-8bit (ORCPT + 99 others); Thu, 25 Apr 2019 05:18:09 -0400 Received: from mga03.intel.com ([134.134.136.65]:52354 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726302AbfDYJSH (ORCPT ); Thu, 25 Apr 2019 05:18:07 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Apr 2019 02:18:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,393,1549958400"; d="scan'208";a="167792309" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga001.fm.intel.com with ESMTP; 25 Apr 2019 02:18:06 -0700 Received: from fmsmsx162.amr.corp.intel.com (10.18.125.71) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 25 Apr 2019 02:18:06 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx162.amr.corp.intel.com (10.18.125.71) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 25 Apr 2019 02:18:05 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.92]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.42]) with mapi id 14.03.0415.000; Thu, 25 Apr 2019 17:18:04 +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//9+rQCAAIghcP//gTcAABHkxSA= Date: Thu, 25 Apr 2019 09:18:03 +0000 Message-ID: <5A90DA2E42F8AE43BC4A093BF067884825786020@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> <5A90DA2E42F8AE43BC4A093BF067884825785F50@SHSMSX104.ccr.corp.intel.com> <20190425080936.GP12751@dhcp22.suse.cz> <5A90DA2E42F8AE43BC4A093BF067884825785FA5@SHSMSX104.ccr.corp.intel.com> <20190425084302.GQ12751@dhcp22.suse.cz> In-Reply-To: <20190425084302.GQ12751@dhcp22.suse.cz> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiODQwNThjYmYtYmNiNi00Y2IxLTllY2QtZmFlNWEzYWU0OWM5IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiMDM5V281XC94Zm1Yc2dwc1lqZnJCTDhmckFrZFBId2Rpc0t6TTJva1hJOTJJMk9acWZNRVZ1NHBrZ2JURWJMVVMifQ== 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 4:43 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 08:20:28, Du, Fan wrote: >> >> >> >-----Original Message----- >> >From: owner-linux-mm@kvack.org [mailto:owner-linux-mm@kvack.org] On >> >Behalf Of Michal Hocko >> >Sent: Thursday, April 25, 2019 4:10 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:55:58, Du, Fan wrote: >> >> >> 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 >> > >> >NUMA balancing >> >> Sorry, I mean page cache case here. >> Numa balancing works for pages mapped in pagetable style. > >I would still expect that a remote PMEM node access latency is >smaller/comparable to the real storage so a promoting part is not that >important for the unmapped pagecache. Maybe I am wrong here but that >really begs for some experiments before we start adding special casing. I understand your concern :), please refer to following summary from 3rd party. https://arxiv.org/pdf/1903.05714.pdf >-- >Michal Hocko >SUSE Labs