diff options
author | sergey.galtsev <sergey.galtsev@mongodb.com> | 2021-09-29 18:33:56 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-09-29 19:05:52 +0000 |
commit | 2007feb28131ecefd25d0f0cbd3f69cbe06ab197 (patch) | |
tree | 0ce1422fffe8066e3c3f449297649aaf28c26afc /evergreen/functions | |
parent | 6b42cd2d2dabc1e31ea81414b56e1cc728bf820c (diff) | |
download | mongo-2007feb28131ecefd25d0f0cbd3f69cbe06ab197.tar.gz |
SERVER-60288 Dump ulimit information before running tests on Linux and Mac
Diffstat (limited to 'evergreen/functions')
-rwxr-xr-x | evergreen/functions/ulimit_info_collect.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/evergreen/functions/ulimit_info_collect.sh b/evergreen/functions/ulimit_info_collect.sh new file mode 100755 index 00000000000..9d4c8e13c99 --- /dev/null +++ b/evergreen/functions/ulimit_info_collect.sh @@ -0,0 +1,11 @@ +DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null 2>&1 && pwd)" +. "$DIR/../prelude.sh" + +if [ "$(uname)" != "Linux" ] && [ "$(uname)" != "Darwin" ]; then + echo "===== Skipping ulimit dump, OS is: $(uname)." +else + echo "===== Collecting soft limits:" + ulimit -Sa + echo "===== Collecting hard limits:" + ulimit -Ha +fi |