From 8fddf8e4c27659f3184a672257c492f4100b6fed Mon Sep 17 00:00:00 2001 From: Arthur She Date: Wed, 10 Feb 2016 18:43:42 -0800 Subject: Add stress-ng-tests.sh for 6 hours of various stress-ng test --- stress-ng-tests.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 stress-ng-tests.sh diff --git a/stress-ng-tests.sh b/stress-ng-tests.sh new file mode 100755 index 0000000..200cce9 --- /dev/null +++ b/stress-ng-tests.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +stress-ng --help > /dev/null 2>&1 +if [ $? -ne 0 ];then + sudo apt-get update + sudo apt-get -y install stress-ng +fi + +# To run ${cpu_no} workers might cause hikey board +# overheat and result in system shutdown +cpu_no=`grep "^processor" /proc/cpuinfo | wc -l` +worker_no=$((${cpu_no}/2)) + +stress-ng --random ${worker_no} --timeout 6h -- cgit v1.2.3