Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1567464yba; Thu, 25 Apr 2019 01:53:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqxT1rfd6ebTf45y2UhMP+my/O0PpmJ6DRHD0IAmCb6U4nevsNMiDT/Llc/GB+/kbGWOPEa5 X-Received: by 2002:a63:d803:: with SMTP id b3mr7421463pgh.267.1556182383079; Thu, 25 Apr 2019 01:53:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556182383; cv=none; d=google.com; s=arc-20160816; b=Tz5lqrUO/kR3l9+zDA4fU94fsaIlt7CJYl01ocD+ercub54DZOS77BDr+Oqcp2yBbE /PhhFR5SLIhKZVC30VIfRHyhOOb8BGYWQ5WhroX0Cy8YJNIPBE2rpwqDragT9VxPM9Ji /lYjz2jqq7SIKDnBataRoybZdj7ze1gjqQbE4D0OyDIEQ9+VjAnbaCLDFImb67+AukNr A0Lk79uh8FRJo0GAn4gsBIVVEFmY913z6gRKby5VDilQzdcInVVAJP3sKXsd7wiS4RZN 9haJCCXX49QrcztnqfGG5PR+fxwd9Lurhr5sOyhye4EhRXO+MIeI/a3+e/xHMz8/gBm1 wQaw== 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=qqpTJm2vzbPvXZvImM9jXeFxKfi6nTNMxu8ndZ2chz0=; b=A5JR3LSqfQKcqK9g0n+iIaxiOPxeeMJ3r3vAcil2TxQw/aSZdkqekVs9SBhym/3UAb 4Qpc8FuLhePbtRUJiHTcPOF/iPB295TW86rHLZ0jKCiKQVrbk6Qce9ju9dKshnkfIEZf E4034mGh8FUgQsWWGD63NbJ1UdzaKML+7unHUh1Bjh+Fq683jaBIFXOSUaP2e3P7CLfT C4ZEkGLGM+s7OBbtphGyAUcyFKp7dPhhFJK6P68O2DX7O25WgXDFTVdDQ3HjHGMR3aw4 lsedp35eDQmIlSsR4Md4HCIVdU+pSbVStFJJmXC8r/VamuNSkifncas6W1xHPQBC6I61 HqMw== 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 s4si21419995plp.59.2019.04.25.01.52.48; Thu, 25 Apr 2019 01:53:03 -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 S1728963AbfDYIUc convert rfc822-to-8bit (ORCPT + 99 others); Thu, 25 Apr 2019 04:20:32 -0400 Received: from mga12.intel.com ([192.55.52.136]:20930 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725951AbfDYIUb (ORCPT ); Thu, 25 Apr 2019 04:20:31 -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 fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Apr 2019 01:20:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,393,1549958400"; d="scan'208";a="167777569" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga001.fm.intel.com with ESMTP; 25 Apr 2019 01:20:31 -0700 Received: from fmsmsx112.amr.corp.intel.com (10.18.116.6) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 25 Apr 2019 01:20:30 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by FMSMSX112.amr.corp.intel.com (10.18.116.6) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 25 Apr 2019 01:20:30 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.92]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.39]) with mapi id 14.03.0415.000; Thu, 25 Apr 2019 16:20:28 +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+rQCAAIghcA== Date: Thu, 25 Apr 2019 08:20:28 +0000 Message-ID: <5A90DA2E42F8AE43BC4A093BF067884825785FA5@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> In-Reply-To: <20190425080936.GP12751@dhcp22.suse.cz> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZmJmNWYxYjEtMjYxNi00MDJmLWFiOTctYjk3MTU2NWM1ZDVlIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiUDFjWnZrYUdLeUJNTngxWm5sWW1aQlcwSDd6QnhocXpud2dFZGRWajlIb2drSmdTMzBuK2lZUG14QlFnQnBZbyJ9 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: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. >> Case 2: frequently read accessed page deserved to PMEM > >memory reclaim to move those pages to a more distant node (e.g. a PMEM). > >Btw. none of the above is a static thing you would easily know at the >allocation time. > >Please spare some time reading surrounding discussions - e.g. >http://lkml.kernel.org/r/1554955019-29472-1-git-send-email-yang.shi@linux.a >libaba.com Thanks for the point. >Michal Hocko >SUSE Labs