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=-3.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,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 362B4C433EF for ; Wed, 15 Sep 2021 01:53:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 107E961211 for ; Wed, 15 Sep 2021 01:53:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230401AbhIOByk (ORCPT ); Tue, 14 Sep 2021 21:54:40 -0400 Received: from mga04.intel.com ([192.55.52.120]:44190 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231629AbhIOByi (ORCPT ); Tue, 14 Sep 2021 21:54:38 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10107"; a="220307724" X-IronPort-AV: E=Sophos;i="5.85,292,1624345200"; d="scan'208";a="220307724" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Sep 2021 18:53:20 -0700 X-IronPort-AV: E=Sophos;i="5.85,292,1624345200"; d="scan'208";a="544379680" Received: from yhuang6-desk2.sh.intel.com (HELO yhuang6-desk2.ccr.corp.intel.com) ([10.239.159.119]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Sep 2021 18:53:17 -0700 From: "Huang, Ying" To: Yang Shi Cc: Linux Kernel Mailing List , Andrew Morton , Michal Hocko , Rik van Riel , Mel Gorman , Peter Zijlstra , Dave Hansen , Zi Yan , Wei Xu , osalvador , Shakeel Butt , Linux MM Subject: Re: [PATCH -V8 2/6] memory tiering: add page promotion counter References: <20210914013701.344956-1-ying.huang@intel.com> <20210914013701.344956-3-ying.huang@intel.com> Date: Wed, 15 Sep 2021 09:53:16 +0800 In-Reply-To: (Yang Shi's message of "Tue, 14 Sep 2021 15:41:49 -0700") Message-ID: <87y27y1u5v.fsf@yhuang6-desk2.ccr.corp.intel.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=ascii Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Yang Shi writes: > On Mon, Sep 13, 2021 at 6:37 PM Huang Ying wrote: >> >> To distinguish the number of the memory tiering promoted pages from >> that of the originally inter-socket NUMA balancing migrated pages. >> The counter is per-node (count in the target node). So this can be >> used to identify promotion imbalance among the NUMA nodes. > > I'd like this patch be the very first one in the series. Since we need > such counters regardless of all the optimizations. And actually I > think this patch could go with the merged "migration in lieu of > discard" patchset. Yes. This sounds reasonable. I will change this in the next version. Best Regards, Huang, Ying 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=-3.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,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 010B2C433F5 for ; Wed, 15 Sep 2021 01:53:26 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 9692861216 for ; Wed, 15 Sep 2021 01:53:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 9692861216 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id E80EA6B0072; Tue, 14 Sep 2021 21:53:24 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E30E86B0073; Tue, 14 Sep 2021 21:53:24 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D1F92900002; Tue, 14 Sep 2021 21:53:24 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0252.hostedemail.com [216.40.44.252]) by kanga.kvack.org (Postfix) with ESMTP id BEDD96B0072 for ; Tue, 14 Sep 2021 21:53:24 -0400 (EDT) Received: from smtpin06.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 7DC53181DA57C for ; Wed, 15 Sep 2021 01:53:24 +0000 (UTC) X-FDA: 78588135528.06.60049F9 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by imf05.hostedemail.com (Postfix) with ESMTP id D47B3505EFA7 for ; Wed, 15 Sep 2021 01:53:23 +0000 (UTC) X-IronPort-AV: E=McAfee;i="6200,9189,10107"; a="307734820" X-IronPort-AV: E=Sophos;i="5.85,292,1624345200"; d="scan'208";a="307734820" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Sep 2021 18:53:21 -0700 X-IronPort-AV: E=Sophos;i="5.85,292,1624345200"; d="scan'208";a="544379680" Received: from yhuang6-desk2.sh.intel.com (HELO yhuang6-desk2.ccr.corp.intel.com) ([10.239.159.119]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Sep 2021 18:53:17 -0700 From: "Huang, Ying" To: Yang Shi Cc: Linux Kernel Mailing List , Andrew Morton , Michal Hocko , Rik van Riel , Mel Gorman , Peter Zijlstra , Dave Hansen , Zi Yan , Wei Xu , osalvador , Shakeel Butt , Linux MM Subject: Re: [PATCH -V8 2/6] memory tiering: add page promotion counter References: <20210914013701.344956-1-ying.huang@intel.com> <20210914013701.344956-3-ying.huang@intel.com> Date: Wed, 15 Sep 2021 09:53:16 +0800 In-Reply-To: (Yang Shi's message of "Tue, 14 Sep 2021 15:41:49 -0700") Message-ID: <87y27y1u5v.fsf@yhuang6-desk2.ccr.corp.intel.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=ascii Authentication-Results: imf05.hostedemail.com; dkim=none; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=intel.com (policy=none); spf=none (imf05.hostedemail.com: domain of ying.huang@intel.com has no SPF policy when checking 192.55.52.43) smtp.mailfrom=ying.huang@intel.com X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: D47B3505EFA7 X-Stat-Signature: xxz39ssdrdtgdgqunner633zt79yofwj X-HE-Tag: 1631670803-981054 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: Yang Shi writes: > On Mon, Sep 13, 2021 at 6:37 PM Huang Ying wrote: >> >> To distinguish the number of the memory tiering promoted pages from >> that of the originally inter-socket NUMA balancing migrated pages. >> The counter is per-node (count in the target node). So this can be >> used to identify promotion imbalance among the NUMA nodes. > > I'd like this patch be the very first one in the series. Since we need > such counters regardless of all the optimizations. And actually I > think this patch could go with the merged "migration in lieu of > discard" patchset. Yes. This sounds reasonable. I will change this in the next version. Best Regards, Huang, Ying