Skip to content

Commit 283430e

Browse files
committed
(debug) Temporary RAM-use sampler in build step, for the whole-VM-OOM investigation.
1 parent 6da1ce1 commit 283430e

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -870,8 +870,18 @@ jobs:
870870
run: |
871871
# Build libraries and demos/tests with Conan.
872872
${{ env.setup-run-env }}
873+
#XXXtemp-debug!
874+
# Sample RAM use in the background, so its output interleaves with the log as we go: post-mortem evidence
875+
# regarding sporadic whole-VM kills (runner-shutdown message from GitHub) observed when several jumbo test
876+
# TUs compile simultaneously in `-g` configs -- apparent OOM of the 16 GiB runner.
877+
( while true; do echo "[mem-sample] $(free -m | grep Mem:)"; sleep 15; done ) &
878+
MEM_SAMPLER_PID=$!
879+
#XXXtemp-debug-end
873880
# At least capnp compiler binary is built with our build-settings, so $BUILD_CMD_PREFIX is required.
874881
$BUILT_CMD_PREFIX conan build .
882+
#XXXtemp-debug!
883+
kill $MEM_SAMPLER_PID
884+
#XXXtemp-debug-end
875885
876886
- name: Install built targets with Makefile
877887
if: env.cell-selected == 'true'

0 commit comments

Comments
 (0)