summaryrefslogtreecommitdiffstats
path: root/run-make-check.sh
diff options
context:
space:
mode:
authorKefu Chai <kchai@redhat.com>2018-08-22 13:49:57 +0200
committerKefu Chai <kchai@redhat.com>2018-08-22 13:52:46 +0200
commitb928c7777c58fc0db9bea8b1638bdda1f07106df (patch)
treee603de7811dd1005c6fb6bd88b21b263c560e5b2 /run-make-check.sh
parentMerge PR #23635 into master (diff)
downloadceph-b928c7777c58fc0db9bea8b1638bdda1f07106df.tar.xz
ceph-b928c7777c58fc0db9bea8b1638bdda1f07106df.zip
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 <kchai@redhat.com>
Diffstat (limited to 'run-make-check.sh')
-rwxr-xr-xrun-make-check.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/run-make-check.sh b/run-make-check.sh
index c69d00c3f6c..eb56b406040 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