Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8398512imu; Fri, 28 Dec 2018 17:32:00 -0800 (PST) X-Google-Smtp-Source: ALg8bN6b+Mb+CQcCVYOgWt3No3IviFoe9TdMPX6j7hL/5A1U+xaPnDg/MGeUqQ3QYLN8B0av78HO X-Received: by 2002:a63:a35c:: with SMTP id v28mr184761pgn.205.1546047120698; Fri, 28 Dec 2018 17:32:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546047120; cv=none; d=google.com; s=arc-20160816; b=tuKHz+RwyC7NdcOSgqdG2v0MzUTM61JWz4pGunhdUi+Dk3m483P+AudnI9T7vzbYdq kUn11Wi0BE831YAiMtOQ7Z8t1fJSsx/m0jqaN8OzBCfpP6I053CzfJ4asS2JfG+hH8Qw 7fBYVlqOOPbYz7s7sCVcL1Q7bXX67lReN/gMmixA6q+1UsfYKlTMkZf/OAqZTNie3b// qdAgwIXCBEXlp/aOGcATYMzhdwnm80jU/bjTZ8ps0D7i3N5V8XI9+3Ot3PVeE3qbLD5O JdcfbWx+Tj8vPwUzR1u5ppvRuUl8gg9eLOHiG5WzeF2SGtKPonDWqWkovlxAmB5QN7KG lwVg== 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=xP2WCoqaHFwaXYa5KlJRu3chvD1rQaV4MQOAmYZKjNQ=; b=Bt5vdn2EkAoS2TspFTKva+F3oATxrArRs1gE3JbdL5tMeL7ijHNxeHydxGh/mSm++p uSQElwL+0DkxYzOUWlL0IXyGa07H8y+oHncadZRUSLeYTAaQiGvtGTo1FKcOE2p+L+V/ vtQnzvSzzgpCKNP+YGioDld4D1U8qVCSNhMGWKEPMncIYnPkjuhNqE5xSx8KypH1vGyl bXhpP8YEcDyBTzcnRTPnorJ2TMqqa0c4vejtsxDgENFSUU1EwJOtLnQkwFSDIQdt45pJ BBmZHwgVSxypcPJ+8lQxoX3gYIJhCnlVe9Iv/A79+JxQ8f+mwX7otYrE1iO/WIQiyKWk PfVg== 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 c10si38517870pla.173.2018.12.28.17.31.45; Fri, 28 Dec 2018 17:32:00 -0800 (PST) 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 S1728704AbeL1NbQ (ORCPT + 99 others); Fri, 28 Dec 2018 08:31:16 -0500 Received: from mga05.intel.com ([192.55.52.43]:54405 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727337AbeL1NbQ (ORCPT ); Fri, 28 Dec 2018 08:31:16 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Dec 2018 05:31:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,409,1539673200"; d="scan'208";a="113864058" Received: from wangdan1-mobl1.ccr.corp.intel.com (HELO wfg-t570.sh.intel.com) ([10.254.210.154]) by orsmga003.jf.intel.com with ESMTP; 28 Dec 2018 05:31:12 -0800 Received: from wfg by wfg-t570.sh.intel.com with local (Exim 4.89) (envelope-from ) id 1gcsEJ-0007g4-SO; Fri, 28 Dec 2018 21:31:11 +0800 Date: Fri, 28 Dec 2018 21:31:11 +0800 From: Fengguang Wu To: Michal Hocko Cc: Andrew Morton , Linux Memory Management List , kvm@vger.kernel.org, LKML , Fan Du , Yao Yuan , Peng Dong , Huang Ying , Liu Jingqi , Dong Eddie , Dave Hansen , Zhang Yi , Dan Williams Subject: Re: [RFC][PATCH v2 00/21] PMEM NUMA node and hotness accounting/migration Message-ID: <20181228133111.zromvopkfcg3m5oy@wfg-t540p.sh.intel.com> References: <20181226131446.330864849@intel.com> <20181227203158.GO16738@dhcp22.suse.cz> <20181228050806.ewpxtwo3fpw7h3lq@wfg-t540p.sh.intel.com> <20181228084105.GQ16738@dhcp22.suse.cz> <20181228094208.7lgxhha34zpqu4db@wfg-t540p.sh.intel.com> <20181228121515.GS16738@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20181228121515.GS16738@dhcp22.suse.cz> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >> > I haven't looked at the implementation yet but if you are proposing a >> > special cased zone lists then this is something CDM (Coherent Device >> > Memory) was trying to do two years ago and there was quite some >> > skepticism in the approach. >> >> It looks we are pretty different than CDM. :) >> We creating new NUMA nodes rather than CDM's new ZONE. >> The zonelists modification is just to make PMEM nodes more separated. > >Yes, this is exactly what CDM was after. Have a zone which is not >reachable without explicit request AFAIR. So no, I do not think you are >too different, you just use a different terminology ;) Got it. OK.. The fall back zonelists patch does need more thoughts. In long term POV, Linux should be prepared for multi-level memory. Then there will arise the need to "allocate from this level memory". So it looks good to have separated zonelists for each level of memory. On the other hand, there will also be page allocations that don't care about the exact memory level. So it looks reasonable to expect different kind of fallback zonelists that can be selected by NUMA policy. Thanks, Fengguang