Guest User

Untitled

a guest
Feb 18th, 2016
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. #!/bin/bash
  2. #
  3. # 4.4W @ cpuburn-a7 / 816MHz / uboot 2009.11
  4.  
  5. sleeptime=30
  6. o=6
  7. for cpufreq in 648 816 1008 1200 ; do
  8. echo ${cpufreq}000 >/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
  9. echo ${cpufreq}000 >/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
  10. echo performance >/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
  11. # idle 180 sec
  12. sleep 180
  13. i=2
  14. while [ $i -le $o ]; do
  15. sysbench --test=cpu --cpu-max-prime=20000 run --num-threads=4--num-threads=1 &
  16. sleep ${sleeptime}
  17. sleeptime=$(( ${sleeptime} + 10 ))
  18. (( i++ ))
  19. done
  20. pkill sysbench
  21. (( o-- ))
  22. done
  23. cpuburn-a7
  24. sleep 120
  25. pkill cpuburn-a7
Advertisement
Add Comment
Please, Sign In to add comment