Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3650901yba; Tue, 16 Apr 2019 16:20:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqzZl0Nl+aEuhglz/5fYSWj4b6s+K/1AEg8k2qZ/FjetLefngQxyklBgxW3BKwQDjB6uucc4 X-Received: by 2002:a63:6a43:: with SMTP id f64mr46700895pgc.366.1555456819689; Tue, 16 Apr 2019 16:20:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555456819; cv=none; d=google.com; s=arc-20160816; b=D7fQgawKWPlFR7Xi1HcYelXkSSifF/YwecIFO7X9yARaO5a52smSo8Zf4LpvKaHyfY et0D4ZWA9ByKzAOjUtHBBgLjYH087/Tqh5ESY+N754WtUmYBcXpgJBNkRGMaD9qWcJ9c xCbrI6KCZMxveBZV57oFb7pccE1/3XKOBZZl1hAl/bgljqbOZkfYhJXgQ/8hoKu/aFKH Gc4Tovu++rsgUAUcF+SoET+3NTUnd4pHDBr1O3KmAUCqx8dZGm7y/yM+p+ynfftEH5oQ RooXAG3DLssbRqnkye8udZiXnZawWJyDTnLwpNrGCOVKxobaj3+99KXjWJmtfVwrOUs3 AwzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=skB516ZXV+l7B5+p8B5xNo5o9N7ZAalDjokO43lzUXc=; b=vKTvCoiIUh6/QSsH2Xaci7WWj4p8SCNg/KX10YnFo+NbD10TRgSePwsysyagFNnZTa J4CIK1vBMlBTT08oTj38mVFjZxLAsnE9o4Mc/XMVZJhuzfy7O1TrSHpDvcm2NeTDKFl/ 3IgQofCfTmF030YrkT6fIzuFSOP6bgHjTiLZfdNUz7bB1w0GemBcmBxl35IkIp+4T3EZ K3rJU8VGF2MtJFIGsbGv+F8upAN6UbDcFEuibXDFgoDmmv6qECXAsWpM28KzVMlaL0GZ l1VeZx1je18PgURsLKBxbu8l41pixa5Rk64rF+DpWmmxCDcKGOwTO44OIWUj29JIGrsm CVZg== 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=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g3si4280681pfi.97.2019.04.16.16.20.03; Tue, 16 Apr 2019 16:20:19 -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=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730161AbfDPXRv (ORCPT + 99 others); Tue, 16 Apr 2019 19:17:51 -0400 Received: from out30-42.freemail.mail.aliyun.com ([115.124.30.42]:44352 "EHLO out30-42.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728237AbfDPXRv (ORCPT ); Tue, 16 Apr 2019 19:17:51 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R111e4;CH=green;DM=||false|;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01f04391;MF=yang.shi@linux.alibaba.com;NM=1;PH=DS;RN=14;SR=0;TI=SMTPD_---0TPVBBj6_1555456664; Received: from US-143344MP.local(mailfrom:yang.shi@linux.alibaba.com fp:SMTPD_---0TPVBBj6_1555456664) by smtp.aliyun-inc.com(127.0.0.1); Wed, 17 Apr 2019 07:17:48 +0800 Subject: Re: [v2 RFC PATCH 0/9] Another Approach to Use PMEM as NUMA Node To: Dave Hansen , Michal Hocko Cc: mgorman@techsingularity.net, riel@surriel.com, hannes@cmpxchg.org, akpm@linux-foundation.org, keith.busch@intel.com, dan.j.williams@intel.com, fengguang.wu@intel.com, fan.du@intel.com, ying.huang@intel.com, ziy@nvidia.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <1554955019-29472-1-git-send-email-yang.shi@linux.alibaba.com> <20190412084702.GD13373@dhcp22.suse.cz> <20190416074714.GD11561@dhcp22.suse.cz> <876768ad-a63a-99c3-59de-458403f008c4@linux.alibaba.com> <99320338-d9d3-74ca-5b07-6c3ca718800f@linux.alibaba.com> <1556283f-de69-ce65-abf8-22f6f8d7d358@intel.com> From: Yang Shi Message-ID: <8bc32012-b747-3827-1814-91942357d170@linux.alibaba.com> Date: Tue, 16 Apr 2019 16:17:44 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <1556283f-de69-ce65-abf8-22f6f8d7d358@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/16/19 4:04 PM, Dave Hansen wrote: > On 4/16/19 2:59 PM, Yang Shi wrote: >> On 4/16/19 2:22 PM, Dave Hansen wrote: >>> Keith Busch had a set of patches to let you specify the demotion order >>> via sysfs for fun.  The rules we came up with were: >>> 1. Pages keep no history of where they have been >>> 2. Each node can only demote to one other node >> Does this mean any remote node? Or just DRAM to PMEM, but remote PMEM >> might be ok? > In Keith's code, I don't think we differentiated. We let any node > demote to any other node you want, as long as it follows the cycle rule. I recall Keith's code let the userspace define the target node. Anyway, we may need add one rule: not migrate-on-reclaim from PMEM node. Demoting from PMEM to DRAM sounds pointless.