aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNadav Amit <namit@vmware.com>2016-10-21 03:46:52 -0700
committerFengguang Wu <fengguang.wu@intel.com>2017-05-24 09:37:15 +0800
commit67505517cd515758f7f9fbfd53dcfe1c45916bb6 (patch)
treeb035f3a630ab8107eb93719974dbd3d37b3c8d3c
parent0e9966617e76245ce98d8dbac22b54d765098dd7 (diff)
downloadvm-scalability-67505517cd515758f7f9fbfd53dcfe1c45916bb6.tar.gz
case-migrate test did not migrate back from last node
The case-migrate test did not migrate back from the last node to the first node. In addition, the counter of the migrations did not advance. Acked-by: Aaron Lu <aaron.lu@intel.com> Signed-off-by: Nadav Amit <namit@vmware.com> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
-rwxr-xr-xcase-migrate6
1 files changed, 3 insertions, 3 deletions
diff --git a/case-migrate b/case-migrate
index c77bdc1..e944a50 100755
--- a/case-migrate
+++ b/case-migrate
@@ -17,12 +17,12 @@ start_time=${start_time%???}
count=0
while :
do
- for i in `seq $((nr_node-1))`
+ for i in `seq $nr_node`
do
- migratepages $pid $((i-1)) $i
+ migratepages $pid $((i-1)) $(($i%$nr_node))
now=$(date +%s%N)
now=${now%???}
- [ -n "$count++" -a "$count++" != 0 ]
+ count=$((count+1))
usecs=$(( now - start_time ))
[ "$usecs" -gt ${runtime}000000 ] && break 2
done