From: Jeff Layton Date: Wed, 17 Mar 2021 15:52:05 +0000 (-0400) Subject: test: reduce number of threads to 32 in LibCephFS.ShutdownRace X-Git-Tag: v17.1.0~2509^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5aec283a1c33b6c21f877a27f57a1bc03b4894a0;p=ceph.git test: reduce number of threads to 32 in LibCephFS.ShutdownRace We're still occasionally hitting file descriptor limits when running this test. Reduce the thread count to 32 for now, since it was possible to reproduce the original problem with 10 or so threads. Fixes: https://tracker.ceph.com/issues/49559 Signed-off-by: Jeff Layton --- diff --git a/src/test/libcephfs/test.cc b/src/test/libcephfs/test.cc index b6bcf75d5317d..1dd28024b3e28 100644 --- a/src/test/libcephfs/test.cc +++ b/src/test/libcephfs/test.cc @@ -2028,7 +2028,7 @@ static void shutdown_racer_func() // See tracker #20988 TEST(LibCephFS, ShutdownRace) { - const int nthreads = 128; + const int nthreads = 32; std::thread threads[nthreads]; // Need a bunch of fd's for this test