Skip to content

Commit c67e553

Browse files
committed
Print /proc/cpuinfo and /proc/meminfo before starting to build.
1 parent b8cd6e5 commit c67e553

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/ci/run.sh

+8
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,19 @@ make check-bootstrap
9191
travis_fold end check-bootstrap
9292
travis_time_finish
9393

94+
# Display the CPU and memory information. This helps us know why the CI timing
95+
# is fluctuating.
96+
travis_fold start log-system-info
9497
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
98+
system_profiler SPHardwareDataType || true
99+
sysctl hw || true
95100
ncpus=$(sysctl -n hw.ncpu)
96101
else
102+
cat /proc/cpuinfo || true
103+
cat /proc/meminfo || true
97104
ncpus=$(grep processor /proc/cpuinfo | wc -l)
98105
fi
106+
travis_fold end log-system-info
99107

100108
if [ ! -z "$SCRIPT" ]; then
101109
sh -x -c "$SCRIPT"

0 commit comments

Comments
 (0)