[[PageOutline]]
{{{
#!html
xenpm
}}}
----
= 【前言】 =
Xen 3.4 之後的版本就有支援 CPU 動態調頻
= 【指令用法】 =
{{{
xen power management control tool
usage: xenpm [args]
xenpm command list:
get-cpuidle-states [cpuid] list cpu idle info of CPU or all
get-cpufreq-states [cpuid] list cpu freq info of CPU or all
get-cpufreq-para [cpuid] list cpu freq parameter of CPU or all
set-scaling-maxfreq [cpuid] set max cpu frequency on CPU
or all CPUs
set-scaling-minfreq [cpuid] set min cpu frequency on CPU
or all CPUs
set-scaling-speed [cpuid] set scaling speed on CPU or all
it is used in userspace governor.
set-scaling-governor [cpuid] set scaling governor on CPU or all
as userspace/performance/powersave/ondemand
set-sampling-rate [cpuid] set sampling rate on CPU or all
it is used in ondemand governor.
set-up-threshold [cpuid] set up threshold on CPU or all
it is used in ondemand governor.
get-cpu-topology get thread/core/socket topology info
set-sched-smt enable|disable enable/disable scheduler smt power saving
set-vcpu-migration-delay set scheduler vcpu migration delay in us
get-vcpu-migration-delay get scheduler vcpu migration delay
set-max-cstate set the C-State limitation ( >= 0)
start [seconds] start collect Cx/Px statistics,
output after CTRL-C or SIGINT or several seconds.
}}}
* 在 XCP 中預設的 CPU governor 為 userspace,降才可透過 xenpm 工具來自動設定 CPU freq,若設定為 ondemand 預設為 CPU loading 超過 80% 才會生頻...
----
= 【Reference】 =
* [http://wiki.xensource.com/xenwiki/xenpm 官方 xenpm]
* [http://notes.benv.junerules.com/tag/xenpm/ Xen and Power Saving]