From b928c7777c58fc0db9bea8b1638bdda1f07106df Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 22 Aug 2018 19:49:57 +0800 Subject: 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 --- run-make-check.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'run-make-check.sh') 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 -- cgit v1.2.3