Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1562996yba; Thu, 25 Apr 2019 01:47:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqxJGwyfZJ5IwjVhBUpo6CEXlR/3F+ACrgSIXbjjY36EXUCJ0MiD9PpZxKqvUOQ+UH7cScW7 X-Received: by 2002:a17:902:6b03:: with SMTP id o3mr36956489plk.226.1556182022754; Thu, 25 Apr 2019 01:47:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556182022; cv=none; d=google.com; s=arc-20160816; b=Z6RG87TdrBqxoQEAHot3FI4NTQ3t68u5Vj1PNoTv8XuDVilaI95V7lP1RspNzGwKSB uYFjGhqdfWRF9ZKA6E+DUsf8U3iiZVAMrR/y2q7VciFeGpR5OrN3Dxrl2f/B8Es73MNb +BHTiUBHBA3wyte+SpoepJd3cFeQDG6GmRhoBobUI2WE1QXfSFxzkY4qTOE552Japl/x 6h00v28dj16B6jp1a6+kka/XQTHjbokHzHCwY2jswFbS4qA/trgRRhmF/zOwkj85qC8Z 0WoY3cJupz5GgeBQ7Ab2vgDjXF/5d/mobKoLMIKsIIMIA391Ndq/cXvj0JKUmX+uq3qy 2LOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=fL2qqlWSLrmSIKAQesaWTIjh48Stn5l7NGtIShgdXME=; b=zkFf6mSYjyi+aRfOTA/M6LgE3XxYSfdjVS4rLxlhvJ8iikOD1ujfhQK9CYCxD94S1C gJuc2Em0rc7n4BQUm+B52OZEQfsHYTnEbzFjo++O5wyqg8P00h/CMluBFSrVaG5FR/Gy 0+sDCHjtLyK28O2jytZYduhDxAbHIl2DtnGdglaglqazkwmreoizKMZGQoeZzXqipqY0 iotvT5BD+f10EiRxygypIO8GN72OI4Fz0/DhoV9zZltlHeaMWg775xi9FXCtEYGp+BpU Wdft5/laQKlOvz0YSBZ2ufA1Zy5NOp+jy8xcf4LIk2eqp1F+kg0bwgfMpS4AZtfjDXrK MCUg== 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=kernel.org 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.46.48; Thu, 25 Apr 2019 01:47:02 -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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727628AbfDYHxz (ORCPT + 99 others); Thu, 25 Apr 2019 03:53:55 -0400 Received: from mx2.suse.de ([195.135.220.15]:40422 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726533AbfDYHxz (ORCPT ); Thu, 25 Apr 2019 03:53:55 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 66B4DAD7B; Thu, 25 Apr 2019 07:53:54 +0000 (UTC) Date: Thu, 25 Apr 2019 09:53:53 +0200 From: Michal Hocko 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 Message-ID: <20190425075353.GO12751@dhcp22.suse.cz> References: <1556155295-77723-1-git-send-email-fan.du@intel.com> <20190425063727.GJ12751@dhcp22.suse.cz> <5A90DA2E42F8AE43BC4A093BF067884825785EE8@SHSMSX104.ccr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5A90DA2E42F8AE43BC4A093BF067884825785EE8@SHSMSX104.ccr.corp.intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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