Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp2574038pxb; Sun, 5 Sep 2021 23:50:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGqItrZemz2fnsqm9CNUb6iUnfxoUUG7OJXgTKP/9QDYKqTqFEWX0h70LkVtdVVVCahNmb X-Received: by 2002:a17:906:5855:: with SMTP id h21mr12101740ejs.230.1630911038295; Sun, 05 Sep 2021 23:50:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630911038; cv=none; d=google.com; s=arc-20160816; b=dgVp2dUWZay8RSWq1LR+ad6ZI0dYx3aqg+oRFwTB/kbbx0xqu3rmsm3m0FtkFY0kFu cEFINJjuggZgsLcdvw64TFNsATtn9iWBFGIiY3NJJfptiXr9Z7GA4a53gew9R7UlxHRU 5OO+38A/fDP4ErzpxNbTxozovSCTMx2qXwu/aZJwVKkIUR0OBvzVBWMw2jw7LuviqFPR l5rP9yCqSlOIVyyJIHs8e1r+PXMnrKsLnP0J/JWI/AIkvIWjOodEZwAZkr4uLYRXyCAD L7ibJxWBS6l0B3Q6QDJ5S2HmllXoTOMyWafKBFK59yJ8xDXX1wexPTOP4QaxbXzNLpko qW+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=XKPqM+hy0bpS5Y45Nu8FaeEJDJxK7wxoQO5OlFgQj0k=; b=0N/umN1QJ86ax+dOtMQQobSmhA0o8K+B1J5GWxqtGcEI0NQyILdl26IipnzA3ck7Hc AI/0JLYV5dEdaIZTTrUGzAJj+OBaKLLyL/IB9MIRUUDpxR3Yz2Ndgji7zczQZ8txPzf2 jT00TGUdndhiyuKg89y0js/x/amFeVonh6PVqZVnIkCEVYWI/qsH/pfIE5WPAPNgLBsC WaTXCJU/xeLLcAmNG72McffKYO4id7npCAevxbGxSMnNorHt/0iwF8swVjM1w67u+KLb uvRhKOVtlfijnwRIgg8C3EHEvMk+S9PSKNJPx5XsZ1nUIUBaex5t+vo+ivId3T9MO27j V5Eg== 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 u18si6591426ejf.758.2021.09.05.23.50.14; Sun, 05 Sep 2021 23:50:38 -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 S238731AbhIFGK2 (ORCPT + 99 others); Mon, 6 Sep 2021 02:10:28 -0400 Received: from mga11.intel.com ([192.55.52.93]:60154 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229792AbhIFGK1 (ORCPT ); Mon, 6 Sep 2021 02:10:27 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10098"; a="216735016" X-IronPort-AV: E=Sophos;i="5.85,271,1624345200"; d="scan'208";a="216735016" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Sep 2021 23:09:22 -0700 X-IronPort-AV: E=Sophos;i="5.85,271,1624345200"; d="scan'208";a="536498601" Received: from jzhan31-mobl1.ccr.corp.intel.com (HELO chenyu5-mobl1) ([10.249.173.11]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Sep 2021 23:09:13 -0700 Date: Mon, 6 Sep 2021 14:09:08 +0800 From: Chen Yu To: "Huang, Ying" Cc: Dave Hansen , kernel test robot , Rui Zhang , Len Brown , "Rafael J. Wysocki" , Andrew Morton , 0day robot , Yang Shi , Zi Yan , Michal Hocko , Wei Xu , Oscar Salvador , David Rientjes , Dan Williams , David Hildenbrand , Greg Thelen , Keith Busch , Yang Shi , LKML , lkp@lists.01.org, feng.tang@intel.com, zhengjun.xing@linux.intel.com, dave.hansen@linux.intel.com, linux-mm@kvack.org, mm-commits@vger.kernel.org, torvalds@linux-foundation.org Subject: Re: [mm/migrate] 9eeb73028c: stress-ng.memhotplug.ops_per_sec -53.8% regression Message-ID: <20210906060908.GA17483@chenyu5-mobl1> References: <20210905135932.GE15026@xsang-OptiPlex-9020> <87y28aii58.fsf@yhuang6-desk2.ccr.corp.intel.com> <87lf4ai6u3.fsf@yhuang6-desk2.ccr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87lf4ai6u3.fsf@yhuang6-desk2.ccr.corp.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 06, 2021 at 01:57:56PM +0800, Huang, Ying wrote: > Dave Hansen writes: > > > On 9/5/21 6:53 PM, Huang, Ying wrote: > >>> in testcase: stress-ng > >>> on test machine: 96 threads 2 sockets Intel(R) Xeon(R) Gold 6252 CPU @ 2.10GHz with 192G memory > >>> with following parameters: > >>> > >>> nr_threads: 10% > >>> disk: 1HDD > >>> testtime: 60s > >>> fs: ext4 > >>> class: os > >>> test: memhotplug > >>> cpufreq_governor: performance > >>> ucode: 0x5003006 > >>> > >> Because we added some operations during online/offline CPU, it's > >> expected that the performance of online/offline CPU will decrease. In > >> most cases, the performance of CPU hotplug isn't a big problem. But > >> then I remembers that the performance of the CPU hotplug may influence > >> suspend/resume performance :-( > >> > >> It appears that it is easy and reasonable to enclose the added > >> operations inside #ifdef CONFIG_NUMA. Is this sufficient to restore the > >> performance of suspend/resume? > > > > It's "memhotplug", not CPUs, right? > > Yes. Thanks for pointing that out! > > We will update node_demotion[] in CPU hotplug too. Because the status > that whether a node has CPU may change after CPU hotplug. And CPU > online/offline performance may be relevant for suspend/resume. > Rui and I took a look at the default kernel config, it seems that CONFIG_NUMA is enabled on laptops on some distributions. Maybe a runtime detecting flag indicating that whether this system has enabled NUMA (static key eg) would be an option too, so as not to enable node_demotion[] on non-NUMA laptops/desktops. thanks, Chenyu