summaryrefslogtreecommitdiffstats
path: root/scripts/oe-time-dd-test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/oe-time-dd-test.sh')
-rwxr-xr-xscripts/oe-time-dd-test.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/oe-time-dd-test.sh b/scripts/oe-time-dd-test.sh
index 970a86dff0..5b25e6bd97 100755
--- a/scripts/oe-time-dd-test.sh
+++ b/scripts/oe-time-dd-test.sh
@@ -13,11 +13,16 @@ usage() {
13 echo "Usage: $0 <count>" 13 echo "Usage: $0 <count>"
14} 14}
15 15
16TIMEOUT=5
17
16if [ $# -ne 1 ]; then 18if [ $# -ne 1 ]; then
17 usage 19 usage
18 exit 1 20 exit 1
19fi 21fi
20 22
21uptime 23uptime
22/usr/bin/time -f "%e" dd if=/dev/zero of=foo bs=1024 count=$1 conv=fsync 24timeout ${TIMEOUT} dd if=/dev/zero of=oe-time-dd-test.dat bs=1024 count=$1 conv=fsync
23top -b -n 1 | grep -v "0 0 0" | grep -E ' [RSD] ' | cut -c 46-47 | sort | uniq -c 25if [ $? -ne 0 ]; then
26 echo "Timeout used: ${TIMEOUT}"
27 top -c -b -n1 -w 512
28fi