$ vi
/etc/cpuspeed.conf
VMAJOR=1
VMINOR=1
# uncomment this and set to the name of your CPUFreq module
#DRIVER="powernow-k7"
DRIVER="p4-clockmod"
# Let background (nice) processes speed up the cpu
OPTS="$OPTS -n"
# Add your favorite options here
#OPTS="$OPTS -s 0 -i 10 -r"
#OPTS="$OPTS -i 10 -p 60 90 -r"
# uncomment and modify this to check the state of the AC adapter
#OPTS="$OPTS -a /proc/acpi/ac_adapter/*/state"
# uncomment and modify this to check the system temperature
#OPTS="$OPTS -t /proc/acpi/thermal_zone/*/temperature 75"
# modprobe p4-clockmod
# /etc/init.d/cpuspeed start
# cat /proc/cpuinfo でも良いのですが...
lm_sensorsをインストールすれば下記の確認スクリプトが動作します。
############################################################
#!/bin/csh
case1:
sleep 2;echo ""
echo "###################################"
date
echo ""
#cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
cat /proc/cpuinfo | grep "cpu MHz" | awk '{print $1,$2,$3,$4}'
/usr/bin/sensors | grep "VCore" | awk '{print $1,$2,$3}'
/usr/bin/sensors | grep "CPU Temp" | awk '{print $1,$2,$3}'
echo "###################################"
goto case1
############################################################
こんな感じで確認できます。(ハイパースレッティングなので2個あります。)
###################################
2007年 4月 29日 日曜日 07:08:31 JST
cpu MHz : 2000.000
cpu MHz : 2000.000
VCore: +1.42 V
CPU Temp: +28°C
###################################