KERNCONF
# CPU frequency control
device cpufreq
sysctl -a dev.cpu
dev.cpu.0.freq: 1666
dev.cpu.0.freq_levels: 1666/-1 1457/-1 1249/-1 1041/-1 833/-1 624/-1 416/-1 208/-1
/etc/rc.conf
powerd_enable="YES"
/boot/loader.conf
cpufreq_load="YES"
動作周波数をMRTGで記録
/sbin/sysctl -a dev.cpu | grep dev.cpu.0.freq: | cut -b17-
dmesg | grep -i CPU
CPU: Intel(R) Atom(TM) CPU D410 @ 1.66GHz (1666.68-MHz 686-class CPU)
- $HOME/bin/get_current_cpu_frequency.sh
#! /bin/sh
CPU_FREQ=`/sbin/sysctl -a dev.cpu | grep dev.cpu.0.freq: | cut -b17-`
UPTIME=`uptime`
echo "$CPU_FREQ"
echo "2000"
echo "$UPTIME"
echo "192.168.xxx.xxx"
Target[EeeBox.cpu]: `/home/cutxout/bin/get_current_cpu_frequency.sh`
MaxBytes[EeeBox.cpu]: 2000
Options[EeeBox.cpu]: avgpeak, growright, bits, dorelpercent, unknaszero
YLegend[EeeBox.cpu]: CPU Frequency
Legend1[EeeBox.cpu]: CPU Usage:
Legend2[EeeBox.cpu]: CPU Frequency :
LegendI[EeeBox.cpu]: CPU Usage:
LegendO[EeeBox.cpu]: CPU Frequency :
XSize[EeeBox.cpu]: 600
YSize[EeeBox.cpu]: 200
Title[EeeBox.cpu]: EeeBox CPU Frequency: Traffic Analysis [EeeBox.cpu]
PageTop[EeeBox.cpu]: <H1>EeeBox CPU Frequency : Traffic Analysis [EeeBox.cpu]</H1>