[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ea8c9b7b-2ed2-98b9-e859-4843b0c87227@loongson.cn>
Date: Wed, 30 Apr 2025 09:15:16 +0800
From: Tianyang Zhang <zhangtianyang@...ngson.cn>
To: Xi Ruoyao <xry111@...111.site>, chenhuacai@...nel.org, kernel@...0n.name,
wanghongliang@...ngson.cn, yangtiezhu@...ngson.cn
Cc: loongarch@...ts.linux.dev, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] LoongArch:support CONFIG_SCHED_MC
Hi, Ruoyao
在 2025/4/29 下午7:44, Xi Ruoyao 写道:
> On Tue, 2025-04-29 at 19:33 +0800, Tianyang Zhang wrote:
>> From: wanghongliang <wanghongliang@...ngson.cn>
>>
>> In order to achieve more reasonable load balancing behavior,
>> support for SCHED_MC has been added.
>> The LLC distribution of Loongarch now is consistent with numa-node,
>> the balancing domain of SCHED_MC can effectively reduce the situation
>> where processes are awakened to smt_slibing
>>
>> Co-developed-by: wanghongliang <wanghongliang@...ngson.cn>
>> Signed-off-by: wanghongliang <wanghongliang@...ngson.cn>
>> Signed-off-by: Tianyang Zhang <zhangtianyang@...ngson.cn>
>> ---
>> arch/loongarch/Kconfig | 9 ++++++
>> arch/loongarch/include/asm/smp.h | 1 +
>> arch/loongarch/include/asm/topology.h | 8 +++++
>> arch/loongarch/kernel/smp.c | 46 +++++++++++++++++++++++++++
>> 4 files changed, 64 insertions(+)
>>
>> diff --git a/arch/loongarch/Kconfig b/arch/loongarch/Kconfig
>> index 1a2cf012b..72a142a85 100644
>> --- a/arch/loongarch/Kconfig
>> +++ b/arch/loongarch/Kconfig
>> @@ -493,6 +493,15 @@ config NR_CPUS
>> This allows you to specify the maximum number of CPUs which this
>> kernel will support.
>>
>> +config SCHED_MC
>> + def_bool y
>> + prompt "Multi-core scheduler support"
>> + depends on SMP
>> + help
>> + Multi-core scheduler support improves the CPU scheduler's decision
>> + making when dealing with multi-core CPU chips at a cost of slightly
>> + increased overhead in some places. If unsure say N here.
> To me it's puzzling to say "if unsure say N here" while setting the
> default to y.
It's really confusing. I will make the necessary changes here. Thank you
>
Powered by blists - more mailing lists