Re: [PATCH v4 16/20] sched/core: Introduce default arch handling code for inc/dec preferred CPUs
From: Shrikanth Hegde
Date: Thu Jun 18 2026 - 00:43:19 EST
On 6/18/26 9:45 AM, Yury Norov wrote:
On Wed, Jun 17, 2026 at 11:11:35PM +0530, Shrikanth Hegde wrote:
Define default handlers for high/low steal time. If arch has better
decision logic, may override the default implementation.
- If the steal time higher than threshold, reduce the number of preferred
CPUs by 1 core. The last core in the intersection of active and
preferred CPUs will be marked as non-preferred.
Ensure at least one core is left as preferred always.
- If the steal time lower than threshold, increase the number of preferred
CPUs by 1 core. First active core which is not in cpu_preferred_mask will
be marked as preferred.
If all cores are already set to preferred, bail out.
And the code below does nothing of that.
Agree. My bad. This changelog needs update.
Increase/Decrease may need to modify the splicing across NUMA nodes. It is
being kept simple for now.
Signed-off-by: Shrikanth Hegde <sshegde@xxxxxxxxxxxxx>