Skip to content

Commit

Permalink
comment out sysrq and blktrace lines
Browse files Browse the repository at this point in the history
Leave them as debug aids when there comes a need.
  • Loading branch information
Fengguang Wu committed Apr 21, 2012
1 parent 9a45855 commit d9c62ab
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions dd-common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ run_fio() {
sleep 1; ps -eo pid,tid,class,rtprio,ni,pri,psr,pcpu,stat,wchan:48,comm >> ps
sleep 1; ps -eo pid,tid,class,rtprio,ni,pri,psr,pcpu,stat,wchan:48,comm >> ps
sleep 1; ps -eo pid,tid,class,rtprio,ni,pri,psr,pcpu,stat,wchan:48,comm >> ps
sleep 1; echo w > /proc/sysrq-trigger
blktrace /dev/sda -w1
# echo w > /proc/sysrq-trigger
# blktrace /dev/sda -w1

wait $pid
}
Expand All @@ -41,7 +41,8 @@ run_dd() {
sleep $((RUNTIME/5)); ps -eo pid,tid,class,rtprio,ni,pri,psr,pcpu,stat,wchan:48,comm >> ps
sleep $((RUNTIME/5)); ps -eo pid,tid,class,rtprio,ni,pri,psr,pcpu,stat,wchan:48,comm >> ps
sleep $((RUNTIME/5)); ps -eo pid,tid,class,rtprio,ni,pri,psr,pcpu,stat,wchan:48,comm >> ps
sleep $((RUNTIME/5)); echo w > /proc/sysrq-trigger; blktrace /dev/sda -w1
sleep $((RUNTIME/5));
# echo w > /proc/sysrq-trigger; blktrace /dev/sda -w1
}

run_test() {
Expand Down

0 comments on commit d9c62ab

Please sign in to comment.