Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1561253yba; Thu, 25 Apr 2019 01:44:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqyzVOmKvEV/x4UV9gHy4ttTxFiUieCQVNsK9ZYAVY2Cl02MXqi8cpDbF63hVmXBU1Coz+x1 X-Received: by 2002:a63:744b:: with SMTP id e11mr35908558pgn.327.1556181899598; Thu, 25 Apr 2019 01:44:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556181899; cv=none; d=google.com; s=arc-20160816; b=1JK5iA7hFPiF3jivEA4ICqKnUjkP2bGb7Pl7ppLvZmaL+ulEXW5+OFinslC4gb5pRD ZoYpP7D1LeCkv4+Qg4i50HrDVyc54muF4nP1EETrJfwA5AMM27VINCTUD3Ho4JXsNIkw 9yWClIlSM3sQveTXgTXa8dfW54cXjX3wZeOAitmCwaWTtK+3QizJ1ZSisd/j2sXaw69b moLxu+emg9viqg4UvpZ5O/5xtZqmWag2EeZr0FumBFnC/FktTjHv6y8k77BqPxaSoiDZ 3h4RY+fuwAveV1RSDGKHXEdXpR/T7WGdK0LmnkVGGQc2Dx0JtTaCgzuqGbuhrTcQkMsz q6mQ== 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=oAeItm1/r7F4WZV7uCu+ODr/3sbtkAjngg1YNWMnhq0=; b=llXQatY21JEwEDVG0Cjyn7EcB5Muj1Gg8u523C0ta3AM4YVOUnrmKP/QVERyHMODrY juWXblP/lBOalXhQAkbYhW1UkB9Ezj2Vk7wiYyR8qls+IRF2lqpjL13XIuD11lvDEot2 voUftNfzsnkWR14abIWfvAwelhJOEjiCLf1WCPBK6BUvFsuhfBU5Zfyx/HgOVoHa9YB9 qEXxZIZpnP1WSHo/lA4JVf5xgvM5i/r3Cz/hw9Cr17Wnfrg83FCLhBmwJNQpLfhQ/W0v zJ0Zkx8yiwVr6LFXC62tRLXWHpcUMQNZMpFGbWQgQj3CmaQAWwOIqS8Af02igajiBzbz OmUA== 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 r198si20988383pgr.153.2019.04.25.01.44.44; Thu, 25 Apr 2019 01:44:59 -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 S1727604AbfDYHlp convert rfc822-to-8bit (ORCPT + 99 others); Thu, 25 Apr 2019 03:41:45 -0400 Received: from mga18.intel.com ([134.134.136.126]:29011 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727004AbfDYHlo (ORCPT ); Thu, 25 Apr 2019 03:41:44 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Apr 2019 00:41:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,393,1549958400"; d="scan'208";a="340645474" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga006.fm.intel.com with ESMTP; 25 Apr 2019 00:41:43 -0700 Received: from fmsmsx157.amr.corp.intel.com (10.18.116.73) 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:41:43 -0700 Received: from shsmsx107.ccr.corp.intel.com (10.239.4.96) by FMSMSX157.amr.corp.intel.com (10.18.116.73) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 25 Apr 2019 00:41:42 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.92]) by SHSMSX107.ccr.corp.intel.com ([169.254.9.153]) with mapi id 14.03.0415.000; Thu, 25 Apr 2019 15:41:41 +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 0/5] New fallback workflow for heterogeneous memory system Thread-Topic: [RFC PATCH 0/5] New fallback workflow for heterogeneous memory system Thread-Index: AQHU+wguqC0/BskpLkaHU1TotE//DKZL5oWAgACMEvA= Date: Thu, 25 Apr 2019 07:41:40 +0000 Message-ID: <5A90DA2E42F8AE43BC4A093BF067884825785EE8@SHSMSX104.ccr.corp.intel.com> References: <1556155295-77723-1-git-send-email-fan.du@intel.com> <20190425063727.GJ12751@dhcp22.suse.cz> In-Reply-To: <20190425063727.GJ12751@dhcp22.suse.cz> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYTAwMTA2OGUtZjhlYy00ZDA5LWE0MWQtZWI5ZTMyOWQ3ZWY3IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiYTdHdVZlWVhvblh5XC9BV0FNcFZEd2RJZElMUEFwbERINElTOVdaK0FTRHBGK01PcWpLZ3hCN3J3SHNaZngxS2cifQ== 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: Michal Hocko [mailto:mhocko@kernel.org] >Sent: Thursday, April 25, 2019 2:37 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 0/5] New fallback workflow for heterogeneous >memory system > >On Thu 25-04-19 09:21:30, Fan Du wrote: >[...] >> However PMEM has different characteristics from DRAM, >> the more reasonable or desirable fallback style would be: >> DRAM node 0 -> DRAM node 1 -> PMEM node 2 -> PMEM node 3. >> When DRAM is exhausted, try PMEM then. > >Why and who does care? NUMA is fundamentally about memory nodes with >different access characteristics so why is PMEM any special? Michal, thanks for your comments! The "different" lies in the local or remote access, usually the underlying memory is the same type, i.e. DRAM. By "special", PMEM is usually in gigantic capacity than DRAM per dimm, while with different read/write access latency than DRAM. Iow PMEM sits right under DRAM in the memory tier hierarchy. This makes PMEM to be far memory, or second class memory. So we give first class DRAM page to user, fallback to PMEM when necessary. The Cloud Service Provider can use DRAM + PMEM in their system, Leveraging method [1] to keep hot page in DRAM and warm or cold Page in PMEM, achieve optimal performance and reduce total cost of ownership at the same time. [1]: https://github.com/fengguang/memory-optimizer >-- >Michal Hocko >SUSE Labs