run-make-check: increase fs.aio-max-nr to 1048576 23689/head
authorKefu Chai <kchai@redhat.com>
Wed, 22 Aug 2018 11:49:57 +0000 (19:49 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 22 Aug 2018 11:52:46 +0000 (19:52 +0800)
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>
run-make-check.sh

index c69d00c3f6cf69a26565db7f11e48fdc6215083f..eb56b4060400d20775a15eeba4e5d35f69c234d9 100755 (executable)
@@ -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