dispvm: sleep as long as there is any disk activity (#82)
This commit is contained in:
parent
30301440c4
commit
80acac0c4b
@ -10,7 +10,15 @@ for app in $apps ; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
echo "Sleeping..."
|
echo "Sleeping..."
|
||||||
sleep 60
|
PREV_IO=0
|
||||||
|
while true; do
|
||||||
|
IO=`vmstat -D | awk '/read|write/ {IOs+=$1} END {print IOs}'`
|
||||||
|
if [ $IO -lt $[ $PREV_IO + 50 ] ]; then
|
||||||
|
break;
|
||||||
|
fi
|
||||||
|
PREV_IO=$IO
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
|
||||||
ps ax > /tmp/dispvm-prerun-proclist.log
|
ps ax > /tmp/dispvm-prerun-proclist.log
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user