summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Abrahams <jonathan@mongodb.com>2017-03-08 14:08:51 -0500
committerJonathan Abrahams <jonathan@mongodb.com>2017-04-13 09:10:31 -0400
commit02d0399d1dc531858d525ee718b5e86046974e53 (patch)
tree943d798b4e4c215a75b42fe2b83fadc9a4006929
parent48d1e1bd6f56f3c20c018332fabafc147bfafc3b (diff)
downloadmongo-02d0399d1dc531858d525ee718b5e86046974e53.tar.gz
SERVER-28091 Disk stats collection on OS X only captures I/O utilization averaged over the uptime of the machine
(cherry picked from commit ca672940f81c3ea82a935aaa87def6101ff5ac62)
-rw-r--r--etc/evergreen.yml8
1 files changed, 1 insertions, 7 deletions
diff --git a/etc/evergreen.yml b/etc/evergreen.yml
index 2d922c07703..7a3b7edacf0 100644
--- a/etc/evergreen.yml
+++ b/etc/evergreen.yml
@@ -221,13 +221,7 @@ functions:
iostat -tdmx 5 > mongo-diskstats
# OSX: Simulate the iostat timestamp.
elif iostat -d > /dev/null 2>&1; then
- while [ 1 ]
- do
- date +'%m/%d/%Y %I:%M:%S %p' >> mongo-diskstats
- iostat -d >> mongo-diskstats
- printf "\n" >> mongo-diskstats
- sleep 5
- done
+ iostat -d -w 5 | while IFS= read -r line; do printf '%s %s\n' "$(date +'%m/%d/%Y %H:%M:%S')" "$line" >> mongo-diskstats; done
# Check if vmstat -t is available.
elif vmstat -td > /dev/null 2>&1; then
vmstat -td 5 > mongo-diskstats