Re: [PATCH v1 4/7] sched/isolation: Adjust affinity of managed irqs according to change of housekeeping cpumask

From: Costa Shulyupin
Date: Mon May 27 2024 - 08:22:37 EST


Hello Thomas,

Thank you so much for very valuable feedback!
I've tested your proposal to use the hotplug for the isolation.
It works well for both timers, but managed irqs are not ready for this scenario.

Current implementation is introduced by
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=11ea68f553e244851d15793a7fa33a97c46d8271

How do you suggest to proceed?

> So why inflicting all of this nonsense to the kernel instead of
> cleverly (ab)using CPU hotplug for it in user space:
..


> Or something like that. You get the idea, right?
>
> IOW, the only kernel change which is required to achieve your goal is to
> ensure that changing the housekeeping/isolated property of a CPU at
> runtime is only possible when the CPU is "offline".