From: Kefu Chai Date: Wed, 22 Aug 2018 11:49:57 +0000 (+0800) Subject: run-make-check: increase fs.aio-max-nr to 1048576 X-Git-Tag: v14.0.1~521^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=b928c7777c58fc0db9bea8b1638bdda1f07106df;p=ceph.git run-make-check: increase fs.aio-max-nr to 1048576 the solution was suggested by Yingxin Cheng. otherwise we could have EAGAIN returned by io_setup(2). Signed-off-by: Kefu Chai --- diff --git a/run-make-check.sh b/run-make-check.sh index c69d00c3f6cf6..eb56b4060400d 100755 --- a/run-make-check.sh +++ b/run-make-check.sh @@ -137,7 +137,11 @@ EOM 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