Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1563726yba; Thu, 25 Apr 2019 01:48:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqzhuq9ZKsoJ2xjYcTCtK04m63i/BxEiMsFxf9E+UpfUYgRwpMPhnUKIdsv+NeQuAUgIW4hG X-Received: by 2002:aa7:9e9a:: with SMTP id p26mr38727627pfq.201.1556182081271; Thu, 25 Apr 2019 01:48:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556182081; cv=none; d=google.com; s=arc-20160816; b=vs9vlBGdRniQJsYH0yZhLWUgNqdD/7xAO2HmGiTwNiPic0JMkpj4sJzjFnnCL31mAJ iMT27ydmyPmjCSvR6RLtIEQtQtdu4HKuTKHZh0JSsm801twDVy9iWpcFs41VwwDdV2Q3 WMT2G8GBLVW3qGaJxnsUO4xm+UOL5GDLxFXx9iDpD++sCI5sAJ30xS6mKLkdFbndW5j0 JwwT55/o2plrysUfBcjUkOlIPE4Lvd+rbHcNjpqiP39ESpa+svqf9uKB49prKRWHp4nV mkP3vCPa5dfu/i1XSIRigohlvLkLXzepy2Ugt4wdcpepeOhiNhGM/fflDrVcbbyiglBK /MOg== 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=yFabZTIhE5eRDS7HLzHJ0gb+nxQ+bY77EoZAsIamhF8=; b=ESMfqZfDuJCazsbjOH+FujuL5XSqVFinF1jqdg1zb+2duyPG1iRTMlyuLGzR9aETlS p4h/197/2nzHkJioV91aZxczQjZexOAOEcnwCJfi9knVuZsJ7JTUhlIEWmu90yaBR7Py QQYxMe3mBLrBnZDwlwXPTncArUsjF/yJfi76bN4N1y6LII9aRJocdJHLUuB/B2RojzeO 3EQc6GOBClMxb81s9TR/07XW4f5yWa5jY2pJnwNS3yyIO9ZTgIfqGKQv7aOk8NZj+b71 0qbpAG0OSSO50Kgg2dZKdsoZ6XBRo5Nyxijj4zN9MO2d+rpeY4gxj/UAnBU9Ix2eZAEf z2Og== 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 g13si5586658pgi.59.2019.04.25.01.47.46; Thu, 25 Apr 2019 01:48:01 -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 S2387541AbfDYIFn convert rfc822-to-8bit (ORCPT + 99 others); Thu, 25 Apr 2019 04:05:43 -0400 Received: from mga01.intel.com ([192.55.52.88]:21957 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387417AbfDYIFn (ORCPT ); Thu, 25 Apr 2019 04:05:43 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Apr 2019 01:05:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,393,1549958400"; d="scan'208";a="145575472" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga003.jf.intel.com with ESMTP; 25 Apr 2019 01:05:42 -0700 Received: from fmsmsx115.amr.corp.intel.com (10.18.116.19) 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:05:41 -0700 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by fmsmsx115.amr.corp.intel.com (10.18.116.19) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 25 Apr 2019 01:05:41 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.92]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.93]) with mapi id 14.03.0415.000; Thu, 25 Apr 2019 16:05:39 +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//DKZL5oWAgACMEvD//4lJgIAAhy/Q Date: Thu, 25 Apr 2019 08:05:38 +0000 Message-ID: <5A90DA2E42F8AE43BC4A093BF067884825785F6E@SHSMSX104.ccr.corp.intel.com> References: <1556155295-77723-1-git-send-email-fan.du@intel.com> <20190425063727.GJ12751@dhcp22.suse.cz> <5A90DA2E42F8AE43BC4A093BF067884825785EE8@SHSMSX104.ccr.corp.intel.com> <20190425075353.GO12751@dhcp22.suse.cz> In-Reply-To: <20190425075353.GO12751@dhcp22.suse.cz> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYjQzYjI5MDEtYzA0OC00YjFhLWExZWQtNjI0ZDFlYWYwMGU5IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiOGxlSk84SDgyWVM3akFtZ2ozbkpSdXh2SlhoaEh1ZmJpaE13cjJCa1wvWlZzNFwvd1NTZlJqRXZlVFdaMTEzS0lGIn0= 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:54 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 07:41:40, Du, Fan wrote: >> >> >> >-----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. > >You are describing a NUMA in general here. Yes access to different NUMA >nodes has a different read/write latency. But that doesn't make PMEM >really special from a regular DRAM. Not the numa distance b/w cpu and PMEM node make PMEM different than DRAM. The difference lies in the physical layer. The access latency characteristics comes from media level. >There are few other people trying to >work with PMEM as NUMA nodes and these kind of arguments are repeating >again and again. So far I haven't really heard much beyond hand waving. >Please go and read through those discussion so that we do not have to go >throug the same set of arguments again. > >I absolutely do see and understand people want to find a way to use >their shiny NVIDIMs but please step back and try to think in more >general terms than PMEM is special and we have to treat it that way. >We currently have ways to use it as DAX device and a NUMA node then >focus on how to improve our NUMA handling so that we can get maximum >out >of the HW rather than make a PMEM NUMA node a special snow flake. > >Thank you. > >-- >Michal Hocko >SUSE Labs