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 | |
parent | 6b42cd2d2dabc1e31ea81414b56e1cc728bf820c (diff) | |
download | mongo-2007feb28131ecefd25d0f0cbd3f69cbe06ab197.tar.gz |
SERVER-60288 Dump ulimit information before running tests on Linux and Mac
-rw-r--r-- | etc/evergreen.yml | 10 | ||||
-rwxr-xr-x | evergreen/functions/ulimit_info_collect.sh | 11 |
2 files changed, 21 insertions, 0 deletions
diff --git a/etc/evergreen.yml b/etc/evergreen.yml index 4e0dd5accbe..cc9359adc00 100644 --- a/etc/evergreen.yml +++ b/etc/evergreen.yml @@ -648,6 +648,15 @@ functions: args: - "./src/evergreen/functions/system_resource_info_collect.sh" + "collect ulimit info": &collect_ulimit_info + command: subprocess.exec + params: + background: true + system_log: true + binary: bash + args: + - "./src/evergreen/functions/ulimit_info_collect.sh" + # Run a monitor process as a background, system task to periodically # display how many threads interesting processes are using. "monitor process threads": &monitor_process_threads @@ -877,6 +886,7 @@ functions: - *run_diskstats - *monitor_process_threads - *collect_system_resource_info + - *collect_ulimit_info "do non-compile setup": - command: manifest.load 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 |