Re: Modifying isolcpus, nohz_full, and rcu_nocb kernel parameters at runtime

From: Vincent Guittot
Date: Thu Dec 07 2023 - 11:32:37 EST


Hi Gianfranco,

+ Adding all scheduler maintainers and few other people that are
working on similar things

On Thu, 7 Dec 2023 at 16:07, Gianfranco Dutka
<gianfranco.dutka@xxxxxxxxxx> wrote:
>
> Good afternoon maintainers and subscribers to the lkml,
>
> I'm a bit new to kernel development but I had a question with respect to the kernel parameters: isolcpus, nohz_full, and rcu_nocbs.
>
> Basically the question is this, am I able to modify the three parameters I mentioned above at runtime after the kernel has already started/booted? Doing some reading online it seems that it’s not possible but I wanted to double check with the maintainers if there wasn’t some sort of change in the works that might make it possible. If not, what would be required to make the change after boot-time through some kind of patch or something like that? Would that be something that might be valuable upstream?

It's not possible but you can achieve something close with cgroup
although you will still have some housekeeping activities happening in
your partition.

This thread tries to do something similar:
https://lore.kernel.org/lkml/20230804090858.7605-1-rui.zhang@xxxxxxxxx/



>
> At the moment we are running an application that might see some benefit from being able to isolate cpus on the fly without having to reboot everything every time we want to modify the parameters mentioned above.
>
> Thanks,
> Gianfranco