talos
talos copied to clipboard
Provide a way to set CPU scaling governor
We'll be defaulting to schedutil
soon instead of userspace
, but some users want to set to performance
. We should figure out how to make this value tweak-able. Sysctl sounds like the first place to look but I haven't found a good example of it, so we may have to find some other way to accomplish it.
any update on this ?
Hey @abckey, just to be clear about this issue, this will only solve being able to set the value explicitly in the machine config. Talos v0.14 already includes the schedutil
default, which should see massive gains for you. But no movement on the configurability part yet. Stay tuned!
CPU governor cannot be set by sysctl; rather, it is sysfs. We can/should add support for sysfs in a similar manner as we support sysctl.
Depends on #4703
As a FYI for documenting purposes, setting the scaling governor in sysfs is nice for testing. (instant)
But quite awkward as it is needed to be set for all cores/threads (/cpu0/
, /cpu1/
etc)
A more permanent elegant solution is to add a kernel parameter using:
machine:
install:
extraKernelArgs:
- cpufreq.default_governor=performance
(in a existing cluster you need to run a talos upgrade in order for this to become effective)
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue was closed because it has been stalled for 7 days with no activity.