Living on a Raspberry Pi!

This feels a little weird!

Playing with the overclocking and it really makes a difference!  The settings below look stable but make the proc very hot (over 85 degrees c.)

From /boot/config.txt:

# Overclock settings – disabled until heat sink is added. 170327 SeanK
#arm_freq=1350
#core_freq=500
#over_voltage=4
#disable_splash=1
##force_turbo=1
#boot_delay=1
#sdram_freq=500

Also created a script to put the governor in ondemand mode and put it in the init.d directory: 

root@webpi:/sys/devices/system/cpu/cpu0/cpufreq# cat /etc/init.d/sk-perf-set-cpu-governor.sh
#!/bin/sh
#
# 20170327, Sean Kennedy
#
# From /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors:
# conservative ondemand userspace powersave performance

governor="ondemand"

echo $governor > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
root@webpi:/sys/devices/system/cpu/cpu0/cpufreq#

Also got ganglia to report on CPU Frequency and Temp using this init script….

root@webpi:/sys/devices/system/cpu/cpu0/cpufreq# cat /etc/init.d/sk-perf-set-cpu-governor.sh
#!/bin/sh
#
# 20170327, Sean Kennedy
#
# From /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors:
# conservative ondemand userspace powersave performance

governor="ondemand"

echo $governor > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
root@webpi:/sys/devices/system/cpu/cpu0/cpufreq# ^C
root@webpi:/sys/devices/system/cpu/cpu0/cpufreq# cat /etc/init.d/sk-gmonitor-cpu-temp.sh
#!/bin/sh
TEMP_FILE="/sys/class/thermal/thermal_zone0/temp"
FREQ_FILE="/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq"
INTERVAL="60"
( while true; do
 gmetric -n temp \
 -v `sed -e "s/\(^..\)/\1\./" "$TEMP_FILE"`\
 -t float \
 -u Celsius \
 -x "$INTERVAL" \
 -g other \
 -D "Temperature of `hostname`" \
 -T "Temperature"
 #gmetric -n freq \
 # -v `sed -e "s/\(^...\)/\1\./" "$FREQ_FILE"`\
 # -t float \
 # -u MHz \
 # -x "$INTERVAL" \
 # -g other \
 # -D "CPU frequency of `hostname`" \
 # -T "CPU Frequency"
 FREQ=`cat "$FREQ_FILE"`
 FREQ=`expr $FREQ / 1000`
 gmetric -n freq \
 -v $FREQ \
 -t float \
 -u MHz \
 -x "$INTERVAL" \
 -g other \
 -D "CPU frequency of `hostname`" \
 -T "CPU Frequency"
 sleep "$INTERVAL"
done ) &
root@webpi:/sys/devices/system/cpu/cpu0/cpufreq#

 

More goodness

root@webpi:/sys/devices/system/cpu/cpu0/cpufreq# ls -l
total 0
-r--r--r-- 1 root root 4096 Mar 27 11:27 affected_cpus
-r-------- 1 root root 4096 Mar 27 11:23 cpuinfo_cur_freq
-r--r--r-- 1 root root 4096 Mar 27 11:27 cpuinfo_max_freq
-r--r--r-- 1 root root 4096 Mar 27 11:27 cpuinfo_min_freq
-r--r--r-- 1 root root 4096 Mar 27 11:27 cpuinfo_transition_latency
-r--r--r-- 1 root root 4096 Mar 27 11:27 related_cpus
-r--r--r-- 1 root root 4096 Mar 27 11:27 scaling_available_frequencies
-r--r--r-- 1 root root 4096 Mar 27 11:27 scaling_available_governors
-r--r--r-- 1 root root 4096 Mar 27 11:27 scaling_cur_freq
-r--r--r-- 1 root root 4096 Mar 27 11:27 scaling_driver
-rw-r--r-- 1 root root 4096 Mar 27 11:23 scaling_governor
-rw-r--r-- 1 root root 4096 Mar 27 11:23 scaling_max_freq
-rw-r--r-- 1 root root 4096 Mar 27 11:27 scaling_min_freq
-rw-r--r-- 1 root root 4096 Mar 27 11:27 scaling_setspeed
root@webpi:/sys/devices/system/cpu/cpu0/cpufreq# cat *
0 1 2 3
600000
1200000
600000
355000
0 1 2 3
600000 1200000
conservative ondemand userspace powersave performance
600000
BCM2835 CPUFreq
ondemand
1200000
600000
<unsupported>
root@webpi:/sys/devices/system/cpu/cpu0/cpufreq#
0