Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #
- # 4.4W @ cpuburn-a7 / 816MHz / uboot 2009.11
- sleeptime=30
- o=6
- for cpufreq in 648 816 1008 1200 ; do
- echo ${cpufreq}000 >/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
- echo ${cpufreq}000 >/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
- echo performance >/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
- # idle 180 sec
- sleep 180
- i=2
- while [ $i -le $o ]; do
- sysbench --test=cpu --cpu-max-prime=20000 run --num-threads=4--num-threads=1 &
- sleep ${sleeptime}
- sleeptime=$(( ${sleeptime} + 10 ))
- (( i++ ))
- done
- pkill sysbench
- (( o-- ))
- done
- cpuburn-a7
- sleep 120
- pkill cpuburn-a7
Advertisement
Add Comment
Please, Sign In to add comment