User Tools

Site Tools


voltage_cpu_and_temperature

How to heck voltage, cpu and temperature on raspberry pi - sysbench - benchmark (cpu stress)

First, install tools :

- cmake -

$apt-get install cmake
- Sysbench -
$apt-get install sysbench
- vcgencmd -
$git clone https://github.com/raspberrypi/userland
$cd userland 
$./buildme

For example, you can run this (for 4 cores) :

$sysbench --test=cpu --cpu-max-prime=20000 --num-threads=4 run


Get global temperature :

$vcgencmd measure_temp

Get frequences :

$cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
$cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
$cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

Get cpu clock :

$vcgencmd measure_clock arm

Get voltages :

vcgencmd measure_volts core


Bash script for get :

- Display all clock -

alls_cpu_clock.sh
#!/bin/bash
for src in arm core h264 isp v3d uart pwm emmc pixel vec hdmi dpi ; do \
echo -e "$src:\t$(vcgencmd measure_clock $src)" ; \
done

- Display all voltage -

alls_voltage.sh
#!/bin/bash
for id in core sdram_c sdram_i sdram_p ; do \
echo -e "$id:\t$(vcgencmd measure_volts $id)" ; \
done

!!! IMPORTANT !!!

If your raspberry get stuck at 600 mhz :

#update firmware
$rpi-update
#install utils cpu
$apt-get install cpufrequtils


Source : don't remember


- created date : 2017.02.21 -

voltage_cpu_and_temperature.txt · Last modified: 2017/03/27 21:07 (external edit)