Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp80019pxb; Tue, 21 Sep 2021 19:21:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7937MI0rp+kKNSuFmnlm3xYyFGYnVbyF+amGvdCQ+lu0PAn2YVJ7o1Ls0i+QKNoV2+y7Q X-Received: by 2002:a50:dace:: with SMTP id s14mr26243652edj.369.1632277299037; Tue, 21 Sep 2021 19:21:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632277299; cv=none; d=google.com; s=arc-20160816; b=Fy517a6hw5kO8Gp9ZTvSmXAtfVhOlnyIJVgBNtkQnPyG312rtGuvMGXCLQsZO56zgo VJXHHiBnpyMuSOvnd7cEm4H5ksXO6aCBwO/5mGcM3Xy6jpOXFU2g687DaaSB8n42XT1s 2/ioTKDtLtIAl6tNANIKyS1X17xYvLSVRW90caREZ1GJ5REfNTltkAgODwjIlpIp6/eE 5JKJS3GH4WC2nUcS45+RoB9KVaoHZCAghMoNmS8qdi6XW1IiEXk0HBJjFDLbieQjlMrk cspuBh4tr3uLJ2L6iplqnAlKKqYT7FRllcSpFsggMVKkXfue5A8CFWSdDGD5cvuO27gQ gqfQ== 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=ojQBnh2xpFYTqZ5Y5LzjEZvGGsiErwt9ojcbyHSTLqM=; b=LDLhsM8pBMTl3dPpcvJUovAbC65nkiU+AnCFbUA6ESVYE4vUHVHT5IZ0xh8WCZWQWr XWl6+WQuh0Ye/ew969GsRdPc4UpapVL2oSXADNUNUyi6cVaxFhp1JCYVGd8AX/Qxv1KF ogYhBN5dXAXG8puIZNjJhMkQe0t4wuVpj4SGZ3kykx/jM9oO8u5tUi0g1Bs5ONIcNGLB u5E5JCekr83s7qHQQ8SOop+bKa99qQiiLJ9xM7UKZR9tRzOZ2x7t37bgW4y1qeVwaREZ Xnzmk5zGY7Gjt7Km3sPXR5T3uC+OofqCrY+unhEcOr2RrYGyQuTXMzJZPh6/Yn7AhwR/ zYRQ== 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 n21si951800edt.292.2021.09.21.19.21.15; Tue, 21 Sep 2021 19:21:39 -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 S229734AbhIVCU7 (ORCPT + 99 others); Tue, 21 Sep 2021 22:20:59 -0400 Received: from mga18.intel.com ([134.134.136.126]:7884 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229638AbhIVCU7 (ORCPT ); Tue, 21 Sep 2021 22:20:59 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10114"; a="210581568" X-IronPort-AV: E=Sophos;i="5.85,312,1624345200"; d="scan'208";a="210581568" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Sep 2021 19:19:21 -0700 X-IronPort-AV: E=Sophos;i="5.85,312,1624345200"; d="scan'208";a="550012337" 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; 21 Sep 2021 19:19:18 -0700 From: "Huang, Ying" To: Dave Hansen Cc: Dave Hansen , , , , , , , , , , , Subject: Re: [PATCH 1/2] mm/migrate: optimize hotplug-time demotion order updates References: <20210917223504.C140445A@davehans-spike.ostc.intel.com> <20210917223505.F817CB6B@davehans-spike.ostc.intel.com> <87k0jeog7r.fsf@yhuang6-desk2.ccr.corp.intel.com> <2d7e4078-f9c0-7511-0bab-de5dab25b45d@intel.com> <87a6k66lnd.fsf@yhuang6-desk2.ccr.corp.intel.com> Date: Wed, 22 Sep 2021 10:19:16 +0800 In-Reply-To: (Dave Hansen's message of "Tue, 21 Sep 2021 10:01:35 -0700") Message-ID: <87tuid5p3v.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 Dave Hansen writes: > On 9/21/21 7:36 AM, Huang, Ying wrote: >>> This removes the need for the demotion code to track *any* state. I've >>> attached a totally untested patch to do this. >> Yes. This sounds good. I will try to test this patch on my side. >> >>>From another point of view, we still need to update demotion order upon >> CPU hotplug too, because whether a node has CPU may be changed there. >> And we need a solution for that too. > > Just to recap... The reason I sent this series is that there's a known, > detectable regression in a memory hotplug "benchmark". This affects the > 5.15 series. > > While I agree that we should look into the impact on CPU hotplug, I > think we should probably focus on the *known* memory hotplug issue for 5.15. Yes. We got a regression report about memory hotplug. And that reminded me that CPU hotplug may be a problem too. Because CPU hotplug is used during suspend/resume for every laptop. The latency of suspend/resume may impact the user experience of the Linux laptop users. And, it seems that your previous solution can deal with CPU hotplug too. So, can we keep that too for CPU hotplug? Best Regards, Huang, Ying