Re: [PATCH v4 1/6] sched/fair: Do not skip CPUs of similar capacity with busy SMT siblings

From: K Prateek Nayak

Date: Tue Jun 09 2026 - 02:29:32 EST


Hello Chenyu,

On 6/9/2026 11:54 AM, Chen, Yu C wrote:
>>> @@ -12964,8 +12965,12 @@ static struct rq *sched_balance_find_src_rq(struct lb_env *env,
>>>                   * eventually lead to active_balancing high->low capacity.
>>>                   * Higher per-CPU capacity is considered better than balancing
>>>                   * average load.
>>> +                *
>>> +                * Busy SMT siblings reduce the capacity of CPU i. Do not skip
>>> +                * it in this case.
>>>                   */
>>>                  if (env->sd->flags & SD_ASYM_CPUCAPACITY &&
>>
>> ...
>>
>>      if (asym_balance) {
>>          /* Busy SMT reduces capacity */
>>          if (sched_smt_active() && !is_core_idle(i))
>>              continue;
>
> We might not want to skip i if it has SMT busy siblings?
> if ((!sched_smt_active() || is_core_idle(i)) && ...

Ah yes! I forgot to do the ! of the condition :-)
Thank you for the correction.

--
Thanks and Regards,
Prateek