Keywords for CPU hotplug rules

There are predefined keywords for use in the CPU hotplug rules, HOTPLUG and HOTUNPLUG.

loadavg
is the current load average.
onumcpus
is the current number of online CPUs.
runnable_proc
is the current number of runnable processes.
user
is the current CPU user percentage.
nice
is the current CPU nice percentage.
system
is the current CPU system percentage.
idle
is the current CPU idle percentage.
iowait
is the current CPU iowait percentage.
irq
is the current CPU irq percentage.
softirq
is the current CPU softirq percentage.
steal
is the current CPU steal percentage.
guest
is the current CPU guest percentage.
guest_nice
is the current CPU guest_nice percentage.
cpustat.<name>
is data from /proc/stat and /proc/loadavg. In the keyword, <name> can be any of the previously listed keywords, for example, cpustat.idle. See the proc man page for more details about the data that is represented by these keywords.

With this notation, the keywords resolve to raw timer ticks since system start, not to current percentages. For example, idle resolves to the current idle percentage and cpustat.idle resolves to the total timer ticks spent idle. See Using historical data about how to obtain average and percentage values.

loadavg, onumcpus, and runnable_proc are not percentages and resolve to the same values as cpustat.loadavg, cpustat.onumcpus, and cpustat.runnable_proc.

cpustat.total_ticks
is the total number of timer ticks since system start.
time
is the UNIX epoch time in the format seconds.microseconds.

Percentage values are accumulated for all online CPUs. Hence, the values for the percentages range from 0 to 100 × (number of online CPUs). To get the average percentage per CPU device, divide the accumulated value by the number of CPUs. For example, idle / onumcpus yields the average idle percentage per CPU.