Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2588091yba; Mon, 15 Apr 2019 15:11:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqwFK9ie/vJva68PpiKrGbApIgBlavGocJKmSSc7gUL0o24sRYemrNiJGU9eSQIK372fhUFr X-Received: by 2002:a62:ae13:: with SMTP id q19mr78953166pff.152.1555366288841; Mon, 15 Apr 2019 15:11:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555366288; cv=none; d=google.com; s=arc-20160816; b=Qqjxbf+P9DRfHngj4vqBgXai9TMF8i0SG8rAObFxQapKtT9hcnnc8u6MDXfzMbXHgS xYT1NPTqDuoTAKi2AiNBhTWdnqsYBi7JO87CvU9RTDlGQKnw/dYzEKhpkNaOBRoq3SP6 IGf8U9/KJG2UTNVzUj+yuoQy1Bw9k+2s8Ep40OsLHrPs7sUwF/njP6N596imgF6sfE6x Y7XbBw6IOS+0FbvwzuE3NkZ9ijhFv+ou0NJvyb8i0U9ZnMvOGYtrY2LiBgucl28NugMX +HmSBisNJVzVqPX3Il0MP7vv6jSRhiGhkq5bLYDli1S42xvU/2/VSvV9Hy7YpDv06r2M CNsQ== 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=xIxBz0bYPwo3nDe8jf9cWYhIJ/QmKwbpOk2+5pJiths=; b=OOvAeYvhXzkBKipH5XHzLF/eHPUS/NlV/mupZkZtvVticKnX7uO1P72Iov8BZ46BCO g6ntf+sdwK3uto0mkcSDB2ZxvuzwcsXYS5pLKKaQD+Hn5u+m8g4Apg/YtkYZiGG9AxAq N7N1sSszA82h6JjTpvVVBLCL0p2AvGsQAnykYVUvl9DYhpvzEaaYlXb/A20+YuHmw3ic XTkkBwI7wtCGvOyo3RSNOzi8ig6M8Zm+GGWgh2vVkzwq1rEiPnbpmXVfdxllNsG7UknG Lk/knqaQxRlWbYJaHJiT7H25uRrMyI+ShEojmePsuJI1c/UgdIUXs2DAvh5SNiKbdpxl BWog== 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 x8si47877496pgx.484.2019.04.15.15.11.12; Mon, 15 Apr 2019 15:11:28 -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 S1728108AbfDOWKL (ORCPT + 99 others); Mon, 15 Apr 2019 18:10:11 -0400 Received: from out30-130.freemail.mail.aliyun.com ([115.124.30.130]:59956 "EHLO out30-130.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726085AbfDOWKL (ORCPT ); Mon, 15 Apr 2019 18:10:11 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R721e4;CH=green;DM=||false|;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04407;MF=yang.shi@linux.alibaba.com;NM=1;PH=DS;RN=14;SR=0;TI=SMTPD_---0TPP1TeS_1555366205; Received: from US-143344MP.local(mailfrom:yang.shi@linux.alibaba.com fp:SMTPD_---0TPP1TeS_1555366205) by smtp.aliyun-inc.com(127.0.0.1); Tue, 16 Apr 2019 06:10:08 +0800 Subject: Re: [v2 PATCH 5/9] mm: vmscan: demote anon DRAM pages to PMEM node To: Dave Hansen , mhocko@suse.com, 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 Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <1554955019-29472-1-git-send-email-yang.shi@linux.alibaba.com> <1554955019-29472-6-git-send-email-yang.shi@linux.alibaba.com> From: Yang Shi Message-ID: <0f4d092d-1421-7163-d937-f8aa681db594@linux.alibaba.com> Date: Mon, 15 Apr 2019 15:10:00 -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: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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/11/19 7:31 AM, Dave Hansen wrote: > On 4/10/19 8:56 PM, Yang Shi wrote: >> include/linux/gfp.h | 12 ++++ >> include/linux/migrate.h | 1 + >> include/trace/events/migrate.h | 3 +- >> mm/debug.c | 1 + >> mm/internal.h | 13 +++++ >> mm/migrate.c | 15 ++++- >> mm/vmscan.c | 127 +++++++++++++++++++++++++++++++++++------ >> 7 files changed, 149 insertions(+), 23 deletions(-) > Yikes, that's a lot of code. > > And it only handles anonymous pages? Yes, for the time being. But, it is easy to extend to all kind of pages. > > Also, I don't see anything in the code tying this to strictly demote > from DRAM to PMEM. Is that the end effect, or is it really implemented > that way and I missed it? No, not restrict to PMEM. It just tries to demote from "preferred node" (or called compute node) to a memory-only node. In the hardware with PMEM, PMEM would be the memory-only node. Thanks, Yang