diff --git a/scripts/oe-time-dd-test.sh b/scripts/oe-time-dd-test.sh index ccdd55e66e..df36c0b297 100755 --- a/scripts/oe-time-dd-test.sh +++ b/scripts/oe-time-dd-test.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # oe-time-dd-test records how much time it takes to # write number of kilobytes to the filesystem. @@ -8,23 +8,25 @@ # The purporse of this script is to find which part of # the build system puts stress on the filesystem io and # log all the processes. - usage() { - echo "Usage: $0 " + echo "$0 is used to detect i/o latency and runs commands to display host information." + echo "The following commands are run in order:" + echo "1) top -c -b -n1 -w 512" + echo "2) iostat -y -z -x 5 1" + echo "3) tail -30 tmp*/log/cooker/*/console-latest.log to gather cooker log." + echo " " + echo "Options:" + echo "-c | --count dd (transfer) KiB of data within specified timeout to detect latency." + echo " Must enable -t option." + echo "-t | --timeout