Files
mtusi2026lab2/evidence/track1/compare/after-8x1_rate3600_rep3/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

4.2 KiB

1tsstatewait_event_typewait_eventbackendsmax_connections
21793226875idleClientClientRead8200
31793226876active1200
41793226876activeIOWalSync1200
51793226876activeLWLockWALWrite9200
61793226876activeLocktransactionid41200
71793226876activeLocktuple10200
81793226876idleClientClientRead2200
91793226877idle1200
101793226877idleClientClientRead63200
111793226878active2200
121793226878activeClientClientRead1200
131793226878activeIOWalSync1200
141793226878activeLWLockWALWrite2200
151793226878idleClientClientRead58200
161793226879activeClientClientRead1200
171793226879activeIOWalSync1200
181793226879activeLWLockWALWrite1200
191793226879idleClientClientRead61200
201793226881activeIOWalSync1200
211793226881activeLWLockWALWrite1200
221793226881idleClientClientRead62200
231793226882activeIOWalSync1200
241793226882activeLWLockWALWrite1200
251793226882idleClientClientRead62200
261793226883active1200
271793226883idleClientClientRead63200
281793226884activeIOWalSync1200
291793226884idle1200
301793226884idleClientClientRead62200
311793226885idle1200
321793226885idleClientClientRead63200
331793226886idleClientClientRead64200
341793226887active1200
351793226887activeIOWalSync1200
361793226887activeLWLockWALWrite5200
371793226887idleClientClientRead57200
381793226889activeClientClientRead1200
391793226889activeLWLockWALWrite1200
401793226889idleClientClientRead62200
411793226890activeClientClientRead1200
421793226890activeIOWalSync1200
431793226890activeLWLockWALWrite3200
441793226890idleClientClientRead59200
451793226891activeIOWalSync1200
461793226891activeLWLockWALWrite3200
471793226891idleClientClientRead60200
481793226892activeClientClientRead1200
491793226892activeIOWalSync1200
501793226892idle1200
511793226892idleClientClientRead61200
521793226893activeLWLockWALWrite1200
531793226893idle1200
541793226893idleClientClientRead62200
551793226894activeIOWalSync1200
561793226894activeLWLockWALWrite3200
571793226894idle1200
581793226894idleClientClientRead59200
591793226895activeIOWalSync1200
601793226895activeLWLockWALWrite1200
611793226895idle1200
621793226895idleClientClientRead61200
631793226897active1200
641793226897activeIOWalSync1200
651793226897activeLWLockWALWrite4200
661793226897activeLocktransactionid2200
671793226897idle1200
681793226897idleClientClientRead55200
691793226898active1200
701793226898activeIOWalSync1200
711793226898activeLWLockWALWrite1200
721793226898idle1200
731793226898idleClientClientRead60200
741793226899idleClientClientRead64200
751793226900idleClientClientRead64200
761793226901activeIOWalSync1200
771793226901activeLWLockWALWrite3200
781793226901idle1200
791793226901idleClientClientRead59200
801793226902idleClientClientRead64200
811793226903activeClientClientRead1200
821793226903activeIOWalSync1200
831793226903idleClientClientRead62200
841793226905active1200
851793226905activeLWLockWALWrite1200
861793226905idleClientClientRead62200
871793226906activeIOWalSync1200
881793226906activeLWLockWALWrite3200
891793226906activeLocktransactionid2200
901793226906idle1200
911793226906idleClientClientRead57200
921793226907active1200
931793226907idle2200
941793226907idleClientClientRead61200
951793226908active2200
961793226908activeClientClientRead2200
971793226908activeLWLockWALWrite1200
981793226908idleClientClientRead59200
991793226909activeClientClientRead1200
1001793226909activeLWLockWALWrite1200
1011793226909idleClientClientRead62200
1021793226910activeIOWalSync1200
1031793226910activeLWLockWALWrite1200
1041793226910idle1200
1051793226910idleClientClientRead61200
1061793226911activeIOWalSync1200
1071793226911activeLWLockWALWrite4200
1081793226911idleClientClientRead59200
1091793226913idleClientClientRead64200
1101793226914activeClientClientRead2200
1111793226914idle1200
1121793226914idleClientClientRead61200
1131793226915active1200
1141793226915activeLWLockWALWrite1200
1151793226915idleClientClientRead62200
1161793226916idleClientClientRead64200