diff options
| author | Arthur Hanson Rasmusson <arthur@vgpu.io> | 2026-09-29 14:47:17 -0400 |
|---|---|---|
| committer | Arthur Hanson Rasmusson <arthur@vgpu.io> | 2026-09-29 14:47:17 -0400 |
| commit | fdeb1d4ba62283210dc259141da4da024bd1cc77 (patch) | |
| tree | 830c3b759238d37eeb24d2bde22454f5e70acaa2 /tools/guest-diag/track_waits.sh | |
| parent | a83a42df71c235c5f9f8eaeb3b62053a75fe30c7 (diff) | |
| download | open-iov-fdeb1d4ba62283210dc259141da4da024bd1cc77.tar.gz open-iov-fdeb1d4ba62283210dc259141da4da024bd1cc77.zip | |
guest-diag: cheaper trace read, optional push sampler, bigger pagemap batches
Under load the semfix poll grepped the whole (growing) trace file and the
track_waits push block spawned three guest processes per sample, both of
which slowed the pin path into the client's failure window. The trace read
now tails 128 KB; track_waits.sh gates the push dump behind PUSH=0; the
pagemap helper reads 32 KB chunks.
Diffstat (limited to 'tools/guest-diag/track_waits.sh')
| -rw-r--r-- | tools/guest-diag/track_waits.sh | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/tools/guest-diag/track_waits.sh b/tools/guest-diag/track_waits.sh index 45a9a66..6ae9154 100644 --- a/tools/guest-diag/track_waits.sh +++ b/tools/guest-diag/track_waits.sh @@ -16,6 +16,7 @@ PAGE_VA="${PAGE_VA:-0x20400f000}" COUNT="${COUNT:-20}" STRIDE="${STRIDE:-16}" OFFSET="${OFFSET:-0xec0}" +PUSH="${PUSH:-1}" : > /tmp/trk.log : > /tmp/cnt.log @@ -58,14 +59,16 @@ for i in $(seq 1 "$N"); do | grep -vE "^\[|Reading symbols|^0x[0-9a-f]+ in |warning:" >> /tmp/trk.log fi - { - echo "=== $TS push pages ===" - python3 /tmp/guest_pmap.py "$PID" 0x201000000 0x203400000 0x203400020 2>&1 - for va in 0x201000000 0x203400000 0x203400020; do - echo "--- $va" - timeout 5 python3 /tmp/read_va.py "$PID" "$va" 64 --u32 2>&1 - done - } >> /tmp/push.log + if [ "$PUSH" = "1" ]; then + { + echo "=== $TS push pages ===" + python3 /tmp/guest_pmap.py "$PID" 0x201000000 0x203400000 0x203400020 2>&1 + for va in 0x201000000 0x203400000 0x203400020; do + echo "--- $va" + timeout 5 python3 /tmp/read_va.py "$PID" "$va" 64 --u32 2>&1 + done + } >> /tmp/push.log + fi sleep "$SLEEP" done |
