Skip to content

Commit

Permalink
Fix instance_dd_tests.sh always reading 1MiB
Browse files Browse the repository at this point in the history
The dummy test script `instance_dd_test.sh' used for
`boot_runcommand_delete' reads only 1MiB disregarding thus reporting
wrong read performance.

Change-Id: I37f2913d6b525e7d65396e5db96a233987cc6679
Closes-Bug: #1448300
  • Loading branch information
Pavel Boldin committed Apr 24, 2015
1 parent 3e87f23 commit 62c1f40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rally-jobs/extra/instance_dd_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ time_seconds(){ (time -p $1 ) 2>&1 |awk '/real/{print $2}'; }
file=/tmp/test.img
c=100 #100M
write_seq=$(time_seconds "dd if=/dev/zero of=$file bs=1M count=$c")
read_seq=$(time_seconds "dd if=$file of=/dev/null bs=1M")
read_seq=$(time_seconds "dd if=$file of=/dev/null bs=1M count=$c")
[ -f $file ] && rm $file

echo "{
Expand Down
2 changes: 1 addition & 1 deletion samples/tasks/support/instance_dd_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ time_seconds(){ (time -p $1 ) 2>&1 |awk '/real/{print $2}'; }
file=/tmp/test.img
c=1000 #1GB
write_seq_1gb=$(time_seconds "dd if=/dev/zero of=$file bs=1M count=$c")
read_seq_1gb=$(time_seconds "dd if=$file of=/dev/null bs=1M")
read_seq_1gb=$(time_seconds "dd if=$file of=/dev/null bs=1M count=$c")
[ -f $file ] && rm $file

echo "{
Expand Down

0 comments on commit 62c1f40

Please sign in to comment.