Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp691856iob; Fri, 13 May 2022 10:17:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzw9ZBtEWexRXYpmsXJgwC68YAxEEdYL3RvdpOQabFzexEX6dyDPgBYwCdp0cKW2Oy23kau X-Received: by 2002:a17:907:98eb:b0:6f3:ce56:c1a2 with SMTP id ke11-20020a17090798eb00b006f3ce56c1a2mr5350027ejc.173.1652462222324; Fri, 13 May 2022 10:17:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652462222; cv=none; d=google.com; s=arc-20160816; b=B3PEgTYLW4mcRT6my0YbmnJeXE/e5BVYgCMVWbfR1yr6HhxEIcMaCWEUsCWpH16jy4 Ce51J07QRLSMu06Yo0bKvbqTZriwAdA1vdXoOJiXC2gtSn+5EX522gzvxHTmVAvBLsJF FHQDpbT5RjzPO8ck7nxLAf9goqufrUA43eeFIh7YbZufj92YaBuRYp+L3nEGLmTcZ+wl 6ryifriJ+pcH0VZuLbpdG8/yWilHS8j6Gp/m4GkVvpPnBA8kl0LfoSTDo9iAznuHIf/S Ximh82JA7ybB7N0r1sweUJAS7CLHAt/8xKmzZ+tWZJixuFqrJIAXiannvf6r4jpljUip ji9Q== 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:dkim-signature; bh=3gqUbZt/7RVQVjFu8f//fHl7Z8YJCdpWw4tOFOvRuAY=; b=ef7WWzJKacvPmSpZQgle71omFcphcisZUDtu2tfi0Bx5nlUXVYx8g6igWjl+ZYanWa MCM2d132mfuKd5LKYzz8R3oaj+6TTo0DXkwKXob7VUac1V9I4fo9oYZXlRziUguyzu2W im0c5k5uglLWmSxePT1+X3DPFct/c1HXB9Nq+3wxsW3rc2ze3LTVS9fCYWCdW7AAEpnc iBqhFh26qF2VC8GhHVVtQbpsMr5HfoEU1NHTExS4R5WTzPka0JAtL+cvi7jv8xibTA3K rARkty3amh+AkpolarLWT2M0MNDiZyMv3BFvWjzwU3ZwYtOXxb8SRSjL9TLTjQlXyUpw eyIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=jpJ97rb3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z14-20020a05640240ce00b00423e88cfbffsi3006480edb.30.2022.05.13.10.16.33; Fri, 13 May 2022 10:17:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=jpJ97rb3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351346AbiELIOj (ORCPT + 99 others); Thu, 12 May 2022 04:14:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351347AbiELIOe (ORCPT ); Thu, 12 May 2022 04:14:34 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B72015DBE3 for ; Thu, 12 May 2022 01:14:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652343271; x=1683879271; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=9Ql4Rdt7/h2yf7VV782mu6AD6pgEJW4goGvHELFZS0c=; b=jpJ97rb3OadU8w2Ks6MqK2qNhZttMbwz0VdrfiMNUN1ZWYjz9Ip024W1 cKpDr8VzA0MaZ1wSJNYQrJ8LjErlMgSciqDyI3N+tEhqgh1hIZUetZuVz EE4KDcDTmowqffXvEhvsQ61OFAHp5Djzoanov8SygMuji20Aq5VlLZjji 8LOyIFXLv02GTjkTFm36ZxBESm/xNDeO6ZSz61wRj3KZ8AAq8Rf9p/lH9 kjFBDH3No1hb3C7vdwGQ0m/8DM/K4xsdD79F/OKTVSxSqPMLrrHSJg8Uc wpNlJHO8cs5Or7qS3iNgOtZ7QNWj3fF55etyHJTaAGcH9JppfU9tjF/ow Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10344"; a="269870769" X-IronPort-AV: E=Sophos;i="5.91,219,1647327600"; d="scan'208";a="269870769" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 May 2022 01:14:31 -0700 X-IronPort-AV: E=Sophos;i="5.91,219,1647327600"; d="scan'208";a="594556173" Received: from jiange6-mobl1.ccr.corp.intel.com (HELO chenyu5-mobl1) ([10.249.197.69]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 May 2022 01:14:23 -0700 Date: Thu, 12 May 2022 16:14:14 +0800 From: Chen Yu To: Yicong Yang Cc: Peter Zijlstra , Vincent Guittot , Mel Gorman , Yicong Yang , K Prateek Nayak , Tim Chen , Chen Yu , Ingo Molnar , Juri Lelli , Dietmar Eggemann , Steven Rostedt , Barry Song <21cnbao@gmail.com>, Srikar Dronamraju , Len Brown , Ben Segall , Aubrey Li , Abel Wu , Zhang Rui , linux-kernel@vger.kernel.org, Daniel Bristot de Oliveira Subject: Re: [PATCH v3] sched/fair: Introduce SIS_UTIL to search idle CPU based on sum of util_avg Message-ID: <20220512081414.GA31450@chenyu5-mobl1> References: <20220428182442.659294-1-yu.c.chen@intel.com> <962e16d1-dd73-418c-9635-009db110823d@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <962e16d1-dd73-418c-9635-009db110823d@huawei.com> X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 10, 2022 at 08:41:57PM +0800, Yicong Yang wrote: > On 2022/4/29 2:24, Chen Yu wrote: > > @@ -61,6 +61,7 @@ SCHED_FEAT(TTWU_QUEUE, true) > > * When doing wakeups, attempt to limit superfluous scans of the LLC domain. > > */ > > SCHED_FEAT(SIS_PROP, true) > > +SCHED_FEAT(SIS_UTIL, false) > > > > I see you mentioned they're mutually exclusive in the commit, worth a comment here? > Yes, previously I thought it could be made mutually exclusive, and Peter has suggested that we should make SIS_UTIL enabled by default, so later we could remove SIS_PROP if SIS_UTIL behaves stable. So I assume there is no need to add comment in the next version now. > One minor question: nr is updated in load balance so there maybe a delay because of > interval of load balancing. Yes, this is a good question. The default interval between two load balance is sd_weight ms, which is 112ms in my case. This interval was a trade off to reduce cache contention. Besides, every 1st idle CPU or the balanced CPU in one sched group within the LLC domain has the chance to launch a periodic load balance, for example, although CPU0 and CPU1's periodic load balance are both triggered every 112ms, CPU1 could help launch the load balance when CPU0 is not in load balance work. Consider there are many CPUs in a LLC domain, the 'internal' to launch the periodic load balance becomes smaller. > Furthermore, the LLC domain may not be balanced everytime > if the lowest domain is not LLC, like CLS->LLC. So maybe a bit more delay included. > I thought every domain has its chance to launch a load balance, the difference is different domains have different interval. No? > The test results is fine and as expected. The improvement of netperf at a heavy load > condition, compared to your v2 version. > Thanks for the test, would you mind if I add Tested-by tag? thanks, Chenyu > Thanks, > Yicong > > TCP_RR node 0-1 > threads > 16 57559.56667 57930.03333 (+0.64%) > 32 56373 57754.53333 (+2.45%) > 64 18831.4 46234.76667 (+145.52%) > 128 15658.9 19620.26667 (+25.30%) > 256 7959.896667 8869.013333 (+11.42%) > > TCP_RR node 0 > threads > 16 58389.43333 59026.03333 (+1.09%) > 32 23779.6 51563.33333 (+116.84%) > 64 20514.56667 23485.63333 (+14.48%) > 128 8202.49 9205.483333 (+12.23%) > 256 3843.163333 4304.8 (+12.01%) > > tbench4 node 0-1 > 5.18-rc1 patched > Hmean 1 299.02 ( 0.00%) 307.73 * 2.91%* > Hmean 2 597.88 ( 0.00%) 619.10 * 3.55%* > Hmean 4 1207.11 ( 0.00%) 1239.57 * 2.69%* > Hmean 8 2406.67 ( 0.00%) 2463.63 * 2.37%* > Hmean 16 4755.52 ( 0.00%) 4979.46 * 4.71%* > Hmean 32 9449.01 ( 0.00%) 9709.59 * 2.76%* > Hmean 64 10538.89 ( 0.00%) 10727.86 * 1.79%* > Hmean 128 13333.84 ( 0.00%) 14580.63 * 9.35%* > Hmean 256 11735.24 ( 0.00%) 11737.16 ( 0.02%) > > tbench4 node 0 > 5.18-rc1 patched > Hmean 1 302.26 ( 0.00%) 313.43 * 3.70%* > Hmean 2 603.87 ( 0.00%) 618.56 * 2.43%* > Hmean 4 1213.91 ( 0.00%) 1249.63 * 2.94%* > Hmean 8 2469.72 ( 0.00%) 2527.48 * 2.34%* > Hmean 16 4980.70 ( 0.00%) 5099.62 * 2.39%* > Hmean 32 9001.88 ( 0.00%) 9730.27 * 8.09%* > Hmean 64 7032.07 ( 0.00%) 7691.56 * 9.38%* > Hmean 128 6037.76 ( 0.00%) 6712.86 * 11.18%* > Hmean 256 8513.83 ( 0.00%) 9117.79 * 7.09%* >