From b181a36dafef65df51d7eb9c7489c742a7b65ad3 Mon Sep 17 00:00:00 2001 From: Elena Gryaznova Date: Tue, 6 Apr 2021 11:05:02 +0300 Subject: [PATCH] LU-14586 tests: set mpi np correctly The number of mpi processes is to be calculated based on the number of clients in clients subset. Fixes: 9ecb000 ("LU-13281 tests: ha.sh improvements") Test-Parameters: trivial Signed-off-by: Elenai Gryaznova HPE-bug-id: LUS-9716 Reviewed-by: Andriy Skulysh Reviewed-by: Alexander Boyko Change-Id: If574743e2e29a309a8d7a021056fa726495fa959 Reviewed-on: https://review.whamcloud.com/43217 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Vladimir Saveliev Reviewed-by: Oleg Drokin --- lustre/tests/ha.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/tests/ha.sh b/lustre/tests/ha.sh index 411337a..f356345 100755 --- a/lustre/tests/ha.sh +++ b/lustre/tests/ha.sh @@ -479,7 +479,7 @@ ha_repeat_mpi_load() ha_on $client $LFS getstripe $dir && ha_on $client chmod a+xwr $dir && ha_on $client "su $mpiuser sh -c \" $mpirun $mpirunoptions \ - -np $((${#ha_clients[@]} * mpi_threads_per_client )) \ + -np $((${#ha_clients[@]} * mpi_threads_per_client / ha_nclientsset)) \ $machines $cmd \" " || rc=$? [[ -n "$ha_postcmd" ]] && ha_info "$ha_postcmd" && ha_on $client "$ha_postcmd" >>"$log" 2>&1 -- 1.8.3.1