From: Yicong Yang <yangyicong@huawei.com>
To: Chen Yu <yu.c.chen@intel.com>
Cc: <yangyicong@hisilicon.com>, Peter Zijlstra <peterz@infradead.org>,
Vincent Guittot <vincent.guittot@linaro.org>,
Mel Gorman <mgorman@suse.de>,
K Prateek Nayak <kprateek.nayak@amd.com>,
Tim Chen <tim.c.chen@intel.com>, Chen Yu <yu.chen.surf@gmail.com>,
Ingo Molnar <mingo@redhat.com>,
Juri Lelli <juri.lelli@redhat.com>,
Dietmar Eggemann <dietmar.eggemann@arm.com>,
Steven Rostedt <rostedt@goodmis.org>,
Barry Song <21cnbao@gmail.com>,
Srikar Dronamraju <srikar@linux.vnet.ibm.com>,
Len Brown <len.brown@intel.com>, Ben Segall <bsegall@google.com>,
Aubrey Li <aubrey.li@intel.com>,
Abel Wu <wuyun.abel@bytedance.com>,
Zhang Rui <rui.zhang@intel.com>, <linux-kernel@vger.kernel.org>,
Daniel Bristot de Oliveira <bristot@redhat.com>
Subject: Re: [PATCH v3] sched/fair: Introduce SIS_UTIL to search idle CPU based on sum of util_avg
Date: Thu, 12 May 2022 21:10:43 +0800 [thread overview]
Message-ID: <37596ea2-b97a-71a7-74ff-ec0281dd3de1@huawei.com> (raw)
In-Reply-To: <20220512081414.GA31450@chenyu5-mobl1>
On 2022/5/12 16:14, Chen Yu wrote:
> 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?
I might miss something. I think it's right here.
>> 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?
>
On Kunpeng920 for this patch,
Tested-by: Yicong Yang <yangyicong@hisilicon.com>
> 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%*
>>
> .
>
next prev parent reply other threads:[~2022-05-12 13:11 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-28 18:24 [PATCH v3] sched/fair: Introduce SIS_UTIL to search idle CPU based on sum of util_avg Chen Yu
2022-05-06 8:38 ` Peter Zijlstra
2022-05-07 14:44 ` Chen Yu
2022-05-10 12:41 ` Yicong Yang
2022-05-12 8:14 ` Chen Yu
2022-05-12 13:10 ` Yicong Yang [this message]
2022-05-13 6:37 ` K Prateek Nayak
2022-05-14 10:55 ` Chen Yu
2022-05-16 10:52 ` K Prateek Nayak
2022-05-19 18:19 ` Chen Yu
2022-05-17 12:50 ` Mel Gorman
2022-05-19 17:36 ` Chen Yu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=37596ea2-b97a-71a7-74ff-ec0281dd3de1@huawei.com \
--to=yangyicong@huawei.com \
--cc=21cnbao@gmail.com \
--cc=aubrey.li@intel.com \
--cc=bristot@redhat.com \
--cc=bsegall@google.com \
--cc=dietmar.eggemann@arm.com \
--cc=juri.lelli@redhat.com \
--cc=kprateek.nayak@amd.com \
--cc=len.brown@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mgorman@suse.de \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=rostedt@goodmis.org \
--cc=rui.zhang@intel.com \
--cc=srikar@linux.vnet.ibm.com \
--cc=tim.c.chen@intel.com \
--cc=vincent.guittot@linaro.org \
--cc=wuyun.abel@bytedance.com \
--cc=yangyicong@hisilicon.com \
--cc=yu.c.chen@intel.com \
--cc=yu.chen.surf@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox