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 B525BC12002 for ; Fri, 16 Jul 2021 03:54:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 973C5613E4 for ; Fri, 16 Jul 2021 03:54:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233842AbhGPD5L (ORCPT ); Thu, 15 Jul 2021 23:57:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:42310 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231139AbhGPD5K (ORCPT ); Thu, 15 Jul 2021 23:57:10 -0400 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.