added usage to measure_temp.sh
run-cpu-stress.sh uses the job file in fio.
This commit is contained in:
@@ -1,6 +1,21 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
START=$(date +%s)
|
START=$(date +%s)
|
||||||
|
|
||||||
|
usage() {
|
||||||
|
local name=${0##*/}
|
||||||
|
|
||||||
|
cat <<-EOF
|
||||||
|
Usage: ${name} [-h || --help]
|
||||||
|
|
||||||
|
measures the pu core temperature an echoes with a squenence number to stdout.
|
||||||
|
EOF
|
||||||
|
}
|
||||||
|
|
||||||
|
if [[ "$1" == "-h" || "$1" == "--help" ]]; then
|
||||||
|
usage
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
NOW=$(date +%s)
|
NOW=$(date +%s)
|
||||||
TS=$((NOW - START))
|
TS=$((NOW - START))
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
temp_data.sh > temp.log &
|
temp_data.sh > temp.log &
|
||||||
TPID=$!
|
TPID=$!
|
||||||
fio ~/git/fio/jobs/fio_cpu
|
fio fio/fio_cpu
|
||||||
kill $TPID
|
kill $TPID
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user