bassamanator
Posts: 91
Joined: Wed Jun 10, 2020 7:04 am

prime95 equivalent for Raspberry pi OS?

Wed Jun 10, 2020 7:19 am

I've been stressing my rpi8gb with a sysbench script that loops over and over again.

Code: Select all

#!/bin/bash
clear
for f in {1..7}
do
    vcgencmd measure_temp
    sysbench --test=cpu --cpu-max-prime=25000 --num-threads=4 run >/dev/null 2>&1
done
vcgencmd measure_temp
I've got 4 instances running (though I don't think that makes a difference) along with youtube playing. Video is choppy but the audio is steady. Been running for the past hour or so.

I want to stress/check stability using prime95 the way I do on my PC. But it's not running on my rpi.

Code: Select all

$ ./mprime -m
bash: ./mprime: cannot execute binary file: Exec format error
I wonder if it's because this is an ARM cpu?

In any case, is there a prime95 equivalent for raspberry pi OS 32 bit?

Thanks!
| Raspberry Pi 4-8GB | 2.0GHz | over_voltage@5 |
| Raspberry Pi OS 32bit |
| https://github.com/bassamanator/raspberrypi-scripts |

User avatar
RPIgoodSBC
Posts: 127
Joined: Tue Mar 20, 2018 11:37 am

Re: prime95 equivalent for Raspberry pi OS?

Fri Jun 12, 2020 2:22 pm

RPi zero...

Code: Select all

wget https://raw.githubusercontent.com/ssvb/cpuburn-arm/master/cpuburn-a7.S
gcc -o cpuburn-a7 cpuburn-a7.S
./cpuburn-a7
RPi...

Code: Select all

wget https://raw.githubusercontent.com/ssvb/cpuburn-arm/master/cpuburn-a53.S
gcc -o cpuburn-a53 cpuburn-a53.S
./cpuburn-a53

Code: Select all

sudo apt-get install stress
stress -c 4

Code: Select all

sudo watch vcgencmd measure_temp
https://github.com/ssvb/cpuburn-arm

ejolson
Posts: 6620
Joined: Tue Mar 18, 2014 11:47 am

Re: prime95 equivalent for Raspberry pi OS?

Fri Jun 12, 2020 9:47 pm

RPIgoodSBC wrote:
Fri Jun 12, 2020 2:22 pm
RPi zero...

Code: Select all

wget https://raw.githubusercontent.com/ssvb/cpuburn-arm/master/cpuburn-a7.S
gcc -o cpuburn-a7 cpuburn-a7.S
./cpuburn-a7
RPi...

Code: Select all

wget https://raw.githubusercontent.com/ssvb/cpuburn-arm/master/cpuburn-a53.S
gcc -o cpuburn-a53 cpuburn-a53.S
./cpuburn-a53

Code: Select all

sudo apt-get install stress
stress -c 4

Code: Select all

sudo watch vcgencmd measure_temp
https://github.com/ssvb/cpuburn-arm
The cpuburn programs work well for testing the cooling, but do not include consistency checks like prime95 does to determine whether the processor is actually functioning properly.

My recommendation is you use the high performance Linpack program. This program uncovered a problem with the original Pi 3B. It is a highly tuned and widely used measure of performance. More information is at

viewtopic.php?f=63&t=276089

Return to “General discussion”