From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 95312C07E95 for ; Fri, 16 Jul 2021 03:54:19 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id D1E43613E4 for ; Fri, 16 Jul 2021 03:54:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D1E43613E4 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 366EF6B0074; Thu, 15 Jul 2021 23:54:19 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 316476B007B; Thu, 15 Jul 2021 23:54:19 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1B8398D00EC; Thu, 15 Jul 2021 23:54:19 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0193.hostedemail.com [216.40.44.193]) by kanga.kvack.org (Postfix) with ESMTP id E82AF6B0074 for ; Thu, 15 Jul 2021 23:54:18 -0400 (EDT) Received: from smtpin35.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id C10A7253A0 for ; Fri, 16 Jul 2021 03:54:17 +0000 (UTC) X-FDA: 78367083354.35.3A4CDD2 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf03.hostedemail.com (Postfix) with ESMTP id 5FB3330001A7 for ; Fri, 16 Jul 2021 03:54:17 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id E684761004; Fri, 16 Jul 2021 03:54:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1626407656; bh=VBAtGkxB3dOHRQHcI5VzJSvvbYZ0fa3F1yO9d4nP2do=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ze0LJ/UDm85gnDzQFaXuz/qoXf+0ZHIRoCAvpAD3D0W5+RO5YeMRk/hmSnho6rvk0 mxbVdoV9CSKIj2DavDIKhV07v3cr5JOjZm6pYffUFr5UP9V5n41RTpxtGYxE0v/7tv NvG1Q1crcKRBB/xiZ0AvkhvPIvZ/3BrtXACAiqE0= Date: Thu, 15 Jul 2021 20:54:15 -0700 From: Andrew Morton To: "Huang, Ying" Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Dave Hansen , yang.shi@linux.alibaba.com, rientjes@google.com, dan.j.williams@intel.com, david@redhat.com, osalvador@suse.de, weixugc@google.com, Michal Hocko , Yang Shi , Zi Yan Subject: Re: [PATCH -V10 0/9] Migrate Pages in lieu of discard Message-Id: <20210715205415.2d6842be57032fbdb2cd2a82@linux-foundation.org> In-Reply-To: <87k0lrndc6.fsf@yhuang6-desk2.ccr.corp.intel.com> References: <20210715055145.195411-1-ying.huang@intel.com> <20210715123836.ad76b0a2e29c0bbd3cd67767@linux-foundation.org> <87k0lrndc6.fsf@yhuang6-desk2.ccr.corp.intel.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 5FB3330001A7 X-Stat-Signature: uwk4isnnifp3sju8hgfw5sdkz4bw1c3r Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b="ze0LJ/UD"; dmarc=none; spf=pass (imf03.hostedemail.com: domain of akpm@linux-foundation.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org X-HE-Tag: 1626407657-497377 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Fri, 16 Jul 2021 11:32:09 +0800 "Huang, Ying" wrote: > Andrew Morton writes: > > > On Thu, 15 Jul 2021 13:51:36 +0800 Huang Ying wrote: > > > > The [0/n] description talks a lot about PMEM, but the patches > > themselves are all about NUMA nodes. I assume that what ties this > > together is that the PMEM tends to be organized as a NUMA node on its > > own, and that by enabling migrate-to-remote-node-during-reclaim, we get > > this PMEM behaviour as a desired side-effect? > > > > IOW, perhaps this [0/n] description could explain the linkage between > > PMEM and NUMA nodes more explicitly. > > Hi, Andrew, > > I have added some words in the [0/9] description to link PMEM and NUMA > nodes. The updated description is as below. Can you take a look at it? > > ... > > With that, the DRAM and PMEM in each socket will be represented as 2 > separate NUMA nodes, with the CPUs sit in the DRAM node. So the > general inter-NUMA demotion mechanism introduced in the patchset can > migrate the cold DRAM pages to the PMEM node. > Bingo, thanks.