Proper way to set default CPU Governor?
-
Hi,
I want to set 'ondemand' as the default boot CPU governor, for my uses on my VM host (r730xd), I can save a substantial amount of energy when the box isn't busy if the cpu's are allowed to downclock.
I read a guide that said to edit the grub file and then rebuild but that broke xcp-ng, so I want to ask the right way to do this.
Thank you!
-
@sluflyer06 In order to persist across reboots, you must set the
cpufreqboot option. There's no need to rebuild grub because the change will occur at Xen level (instead of dom0):/opt/xensource/libexec/xen-cmdline --set-xen cpufreq=xen:ondemandAfter that, change the System power profile to
Performance Per Watt (OS)in BIOS.Verifying the config:
Check if the attribute
current_governoris set toondemand:xenpm get-cpufreq-paraCheck the clock scaling:
xenpm start 1|grep "Avg freq" -
@tuxen Thank You, looks like it's booting on the selected cpu scaling now.