Files
mtusi2026lab3/evidence/track1/compare/after-8x1_rate3600_rep1/pg_activity.csv
T
ArtyomandClaude Opus 5.5 dde113b4ed Record the before and after comparison of track 1
8x1 with the image of edc091d (before) and the one-statement write
(after), alternating per repeat, three repeats at 3 600, 5 400 and
8 100 rps. At 3 600 rps, below the knee, p95 falls from 64.5 ms
(35.7..142.5) to 3.7 ms (2.8..5.4) and p99 from 122 to 13 ms; the API
spends 391 instead of 457 % CPU and PostgreSQL 102 instead of 137 %;
connections waiting for a chat lock drop from 12.8 to 0.15 and none is
idle in transaction any more. Past the knee the peak rises from 4 252
(4 054..4 396) to 4 894 rps (4 494..5 104), +15 %, and at 8 100 rps
from 4 104 to 4 841 (+18 %); the ranges do not overlap. Saturated, the
lock holders now wait for the WAL flush (LWLock WALWrite) instead of
the application.

The switch to the after image for the third repeat failed in compose
while another lab was running tests on the shared VM, so that repeat
was run alone with --first-repeat 3 on the same database; apply now
retries compose up twice and prints its stderr. Two after rows were
still marked disturbed after three reruns and are kept; they are the
lower ones.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V1d3RLHNBBMA6UqBLLJv27
2026-10-29 01:37:34 +03:00

5.0 KiB

1tsstatewait_event_typewait_eventbackendsmax_connections
21793225614idleClientClientRead8200
31793225615active2200
41793225615activeClientClientRead2200
51793225615activeIOWalSync1200
61793225615activeLWLockWALWrite8200
71793225615activeLocktransactionid30200
81793225615activeLocktuple10200
91793225615idleClientClientRead5200
101793225617activeIOWalSync1200
111793225617activeLWLockWALWrite1200
121793225617idleClientClientRead61200
131793225617idleLWLockWALWrite1200
141793225618active2200
151793225618activeIOWalSync1200
161793225618idleClientClientRead61200
171793225619activeClientClientRead2200
181793225619activeIOWalSync1200
191793225619idleClientClientRead61200
201793225620activeIOWalSync1200
211793225620activeLWLockWALWrite3200
221793225620idle1200
231793225620idleClientClientRead59200
241793225621idleClientClientRead64200
251793225622activeClientClientRead1200
261793225622activeIOWalSync1200
271793225622activeLWLockWALWrite2200
281793225622idleClientClientRead60200
291793225623active1200
301793225623activeLWLockProcArray1200
311793225623idle1200
321793225623idleClientClientRead61200
331793225625active1200
341793225625activeIOWalSync1200
351793225625activeLWLockWALWrite5200
361793225625idle2200
371793225625idleClientClientRead55200
381793225626active2200
391793225626idle1200
401793225626idleClientClientRead61200
411793225627activeIOWalSync1200
421793225627activeLWLockWALWrite4200
431793225627idleClientClientRead59200
441793225628activeIOWalSync1200
451793225628activeLWLockWALWrite6200
461793225628idleClientClientRead57200
471793225629active1200
481793225629activeIOWalSync1200
491793225629activeLWLockWALWrite3200
501793225629idleClientClientRead59200
511793225630activeIOWalSync1200
521793225630activeLWLockWALWrite8200
531793225630activeLocktransactionid4200
541793225630activeLocktuple1200
551793225630idle1200
561793225630idleClientClientRead49200
571793225631activeIOWalSync1200
581793225631activeLWLockWALWrite4200
591793225631idle1200
601793225631idleClientClientRead58200
611793225633active1200
621793225633activeIOWalSync1200
631793225633activeLWLockWALWrite1200
641793225633idle1200
651793225633idleClientClientRead60200
661793225634activeClientClientRead1200
671793225634activeIOWalSync1200
681793225634activeLWLockWALWrite2200
691793225634idle1200
701793225634idleClientClientRead59200
711793225635active2200
721793225635activeIOWalSync1200
731793225635activeLWLockWALWrite6200
741793225635activeLocktransactionid17200
751793225635activeLocktuple6200
761793225635idleClientClientRead32200
771793225636idleClientClientRead64200
781793225637activeIOWalSync1200
791793225637activeLWLockWALWrite4200
801793225637idleClientClientRead59200
811793225638active1200
821793225638activeClientClientRead3200
831793225638idle1200
841793225638idleClientClientRead57200
851793225638idleLWLockWALWrite2200
861793225639active1200
871793225639activeIOWalSync1200
881793225639activeLWLockWALWrite1200
891793225639idle1200
901793225639idleClientClientRead60200
911793225641active1200
921793225641idleClientClientRead63200
931793225642idleClientClientRead64200
941793225643active1200
951793225643activeIOWalSync1200
961793225643activeLWLockWALWrite1200
971793225643idle1200
981793225643idleClientClientRead60200
991793225644idleClientClientRead64200
1001793225645active1200
1011793225645activeClientClientRead2200
1021793225645activeLWLockWALWrite1200
1031793225645activeLocktransactionid1200
1041793225645idle2200
1051793225645idleClientClientRead57200
1061793225646activeIOWalSync1200
1071793225646activeLWLockWALWrite9200
1081793225646activeLocktransactionid47200
1091793225646activeLocktuple6200
1101793225646idleClientClientRead1200
1111793225647active2200
1121793225647idle1200
1131793225647idleClientClientRead61200
1141793225649active1200
1151793225649activeIOWalSync1200
1161793225649activeLWLockWALWrite4200
1171793225649activeLocktransactionid3200
1181793225649idleClientClientRead55200
1191793225650active2200
1201793225650activeIOWalSync1200
1211793225650activeLWLockWALWrite2200
1221793225650idleClientClientRead59200
1231793225651activeIOWalSync1200
1241793225651activeLWLockBufferContent1200
1251793225651activeLWLockWALWrite2200
1261793225651activeLocktransactionid2200
1271793225651idle2200
1281793225651idleClientClientRead56200
1291793225652activeClientClientRead1200
1301793225652activeIOWalSync1200
1311793225652activeLWLockWALWrite7200
1321793225652activeLocktransactionid1200
1331793225652idle1200
1341793225652idleClientClientRead53200
1351793225653active1200
1361793225653activeIOWalSync1200
1371793225653activeLWLockWALWrite1200
1381793225653idleClientClientRead61200
1391793225654idleClientClientRead64200
1401793225656idleClientClientRead64200