max_rpcs_in_flight for osc is limited to 256. sanity.sh:test_115()
tries to set it to ost.OSS.ost_io.threads_started * 4. The test should
make sure that it does not exceed 256.
HPE-bug-id: LUS-5917
Signed-off-by: Vladimir Saveliev <vlaidimir.saveliev@hpe.com>
Change-Id: I38929e1ed0fe7855e7e60ea43742740c01ae1bd8
Reviewed-on: https://review.whamcloud.com/39687
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Elena Gryaznova <elena.gryaznova@hpe.com>
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
echo "Starting with $OSTIO_pre threads"
local thread_max=$((OSTIO_pre * 2))
local rpc_in_flight=$((thread_max * 2))
+ # this is limited to OSC_MAX_RIF_MAX (256)
+ [ $rpc_in_flight -gt 256 ] && rpc_in_flight=256
+ thread_max=$((rpc_in_flight / 2))
+ [ $thread_max -le $OSTIO_pre ] && skip "Too many ost_io threads" &&
+ return
+
# Number of I/O Process proposed to be started.
local nfiles
local facets=$(get_facets OST)