Re: [RFC PATCH] sched/fair: Refactor can_migrate_task() to elimate looping
From: Peter Zijlstra
Date: Thu Jan 09 2025 - 05:24:28 EST
On Thu, Jan 09, 2025 at 06:12:22PM +0800, I Hsin Cheng wrote:
> > > Except you cannot put cpumask on-stack...
>
> Oh I'm sorry, may I ask the reason? is it because cpumask tends to be
> very large?
Yes, when building with NR_CPUS=8192 (as Distos tend to do) it is 1K of
stack space.