the solution was suggested by Yingxin Cheng. otherwise we could have
EAGAIN returned by io_setup(2).
Signed-off-by: Kefu Chai <kchai@redhat.com>
echo "***ulimit -n too small, better bigger than 1024 for test***"
return 1
fi
-
+
+ # increase the aio-max-nr, which is by default 65536. we could reach this
+ # limit while running seastar tests and bluestore tests.
+ $DRY_RUN sysctl -q -w fs.aio-max-nr=$((65536 * 16))
+
if ! $DRY_RUN ctest $CHECK_MAKEOPTS --output-on-failure; then
rm -fr ${TMPDIR:-/tmp}/ceph-asok.*
return 1