Giter Site home page Giter Site logo

junglert / rpi-stresstest Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 107 KB

CPU Stresstest for Raspberry Pi´s

License: GNU General Public License v3.0

Shell 100.00%
raspberrypi bash-script bash stresstest raspberry stress stability rpi-stresstest cpu-stresstest raspberry-stresstest

rpi-stresstest's Introduction

rpi-stresstest

CPU Stresstest for Raspberry Pi´s

This is a bash based script. It´s maxing all cores to the highest frequency over a set time (in seconds) and saves the results in a CSV-file.

I tested this script on the Pi Zero W, Pi 1b, 2b, 3b, b+ and Pi 4b.

This repo is usefull for monitoring cpu temperatures of your Pi over a certain amount of time.

Check out the Wiki and the manual


How to:

Install this git-repo:

     git clone https://github.com/junglert/rpi-stresstest.git

Exec the script, you may have to change the permissions with

     chmod +x stresstest.sh

After you changed the permissions execute the script:

      ./stresstest.sh

You will notice, that the script is not executing, instead the script is showing its usage:

      Usage: 1. sudo ./stresstest -s or --start  | to start the script     
             2. ./stresstest -h or --help        | for help page
             3. ./stresstest.sh                  | for usage

Starting the script:

      sudo ./stresstest -s or --start

After you started the script, it will automatically check if stress is installed. If stress is not installed, it´s going to be installed. If stress is installed the script will go on with the following prompts:

    Runtime in seconds:     Enter the amount of time, in seconds, that you want the script to run
    Filename.csv:           Enter your filename with .csv at the end 
                            (the file is created in the source folder of the script)

Enter your wanted amount of time and a name.

The script will now start to stress your Raspberry Pi and log all stats into a CSV-file.


Future plans:

  • changing temperature command to something else that does not need sudo

  • user input for time and file ✔

  • automatically installes stress if not already installed ✔

  • script creates own alias maybe in the near future, have to find a good way to implement

  • help-page ✔

  • testing on other Pi´s ✔

    • RaspberryPi 4 ✔
    • RaspberryPi 3b and b+ ✔
    • RaspberryPi 2b ✔
    • RaspberryPi 1b ✔
    • RaspberryPi Zero W ✔
  • creating a wiki / manual ✔

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.