Re: [PATCH] sched_ext: Simplify cpumask computation in balance_scx
From: Tejun Heo
Date: Fri Mar 07 2025 - 11:00:44 EST
On Fri, Mar 07, 2025 at 02:45:33PM +0800, lirongqing wrote:
> From: Li RongQing <lirongqing@xxxxxxxxx>
>
> Compare SMT CPU against RQ CPU and skip balance it, to avoid calling
> for_each_cpu_andnot() and cpumask_of(), they are relatively expensive
How is cpumask_of() expensive? I have a hard time seeing how this would
actually improve anything. Do you have any measurements?
Thanks.
--
tejun