We've been seeing some test failures because we hit RLIMIT_NOFILE in
some tests. Start having it log the rlimit we're setting before spawning
threads.
Note that this doesn't really fix anything, but we're hoping it will help
us rule some out some possible causes.
Fixes: https://tracker.ceph.com/issues/49559
Signed-off-by: Jeff Layton <jlayton@redhat.com>
ASSERT_EQ(getrlimit(RLIMIT_NOFILE, &rold), 0);
rnew = rold;
rnew.rlim_cur = rnew.rlim_max;
+
+ cout << "Setting RLIMIT_NOFILE from " << rold.rlim_cur <<
+ " to " << rnew.rlim_cur << std::endl;
+
ASSERT_EQ(setrlimit(RLIMIT_NOFILE, &rnew), 0);
for (int i = 0; i < nthreads; ++i)