Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp69473pxb; Tue, 14 Sep 2021 18:57:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy04EgqEtFxApVzlWdRX3QvO7qoNRXcNshkgEI9TCF2Q0UdLgHil2f0gJrCI0Spd/SWK7P8 X-Received: by 2002:a05:6512:687:: with SMTP id t7mr8721196lfe.192.1631671056923; Tue, 14 Sep 2021 18:57:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631671056; cv=none; d=google.com; s=arc-20160816; b=A3woJy4W1FSIw6o4cYcGL9qdVIUfXiNJce3nNPQSjYYi4hwuEGcI6sVOmOoBbabCea XRUbD7cmd3XUCA9hqvuYswTMKV0ARl/R8NQ06hgUGKTXni+V9hEgjfXIfsb28Be3Ljg4 znn1AxKhq7dcE9ck0uc6KnQ/Oa2e/RcViQJBEDxhS+pPGS2kogqheORfsUmAozAqmiTz mrHCsDATazBYMv7khWcZUztPqD4CO3gXjq45pelL9WirlmNlJXXKfRkXvhUNgq6+iK6z x7R/6ZBJoaYHqnUn5IHfcLPzzkSKqFHrlnGH2s0Sb9Wbj86wnzJRtBdrk3maAdHm1WDc q2MA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from; bh=x3tEwVJaae6vO1M1Py6OzzxBoifIJx1Mg7Su5xLIx4M=; b=shQJ/1XhhNRSXoPog/XRx+joQmUyBzmLi6ef23sMGEvxDLVdH92SXBi0DQOG5TqICC 3FPaKmQIbYbEDF7NMor6jdho9PNW+7R7eU5bPFwNsAusXuH5j+bEWnJlhCcejhpLadso k4Hmq0Gz+M18NGkQ2sfmwtT8dVf0n1iU5BHnxXer3C2R/L5UyKjsMdgTAD85f698SMoj XClix8d6mX9aMmsFxXGGD6eePnTKYE5UGOZ4vojGQstptxBm9UuldPQTVybr8jnoNlQy 5kDdKP1W+GN6PISjNSLLJr76nhFIaOwZOel1MXmz8yjwFrTmQcCEd5NmmFvwtYP+gCXQ Pitw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h38si6614857lfv.295.2021.09.14.18.57.07; Tue, 14 Sep 2021 18:57:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233061AbhIOByj (ORCPT + 99 others); Tue, 14 Sep 2021 21:54:39 -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