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

8.5 KiB

1tsstatewait_event_typewait_eventbackendsmax_connections
21793226544idleClientClientRead64200
31793226545active2200
41793226545activeIOWalSync1200
51793226545activeLWLockWALWrite6200
61793226545activeLocktransactionid45200
71793226545activeLocktuple2200
81793226545idleClientClientRead7200
91793226545idleLocktuple1200
101793226546active1200
111793226546activeClientClientRead1200
121793226546activeIOWalSync1200
131793226546activeLWLockWALWrite7200
141793226546activeLocktransactionid33200
151793226546activeLocktuple17200
161793226546idle1200
171793226546idleClientClientRead3200
181793226548active1200
191793226548activeIOWalSync1200
201793226548activeLWLockBufferContent2200
211793226548activeLWLockProcArray1200
221793226548activeLWLockWALWrite5200
231793226548activeLocktransactionid35200
241793226548activeLocktuple14200
251793226548idle1200
261793226548idleClientClientRead4200
271793226549active2200
281793226549activeClientClientRead1200
291793226549activeLWLockWALWrite8200
301793226549activeLocktransactionid44200
311793226549activeLocktuple5200
321793226549idle1200
331793226549idleClientClientRead3200
341793226550active1200
351793226550activeIOWalSync1200
361793226550activeLWLockWALWrite7200
371793226550activeLocktransactionid46200
381793226550activeLocktuple4200
391793226550idleClientClientRead5200
401793226551active2200
411793226551activeIOWalSync1200
421793226551activeLWLockWALWrite8200
431793226551activeLocktransactionid34200
441793226551activeLocktuple16200
451793226551idleClientClientRead3200
461793226552active2200
471793226552activeLWLockLockManager8200
481793226552activeLWLockWALWrite6200
491793226552activeLocktransactionid26200
501793226552activeLocktuple14200
511793226552idleClientClientRead8200
521793226553activeIOWalSync1200
531793226553activeLWLockLockManager2200
541793226553activeLWLockWALWrite8200
551793226553activeLocktransactionid33200
561793226553activeLocktuple13200
571793226553idle1200
581793226553idleClientClientRead5200
591793226553idleLocktuple1200
601793226555active1200
611793226555activeLWLockWALWrite9200
621793226555activeLocktransactionid36200
631793226555activeLocktuple15200
641793226555idleClientClientRead3200
651793226556active2200
661793226556activeIOWalSync1200
671793226556activeLWLockWALWrite8200
681793226556activeLocktransactionid42200
691793226556activeLocktuple8200
701793226556idleClientClientRead3200
711793226557active2200
721793226557activeIOWalSync1200
731793226557activeLWLockWALWrite5200
741793226557activeLocktransactionid34200
751793226557activeLocktuple19200
761793226557idleClientClientRead3200
771793226558activeLWLockWALWrite8200
781793226558activeLocktransactionid49200
791793226558activeLocktuple6200
801793226558idleLocktuple1200
811793226559active1200
821793226559activeIOWalSync1200
831793226559activeLWLockWALWrite8200
841793226559activeLocktransactionid42200
851793226559activeLocktuple5200
861793226559idleClientClientRead7200
871793226560activeIOWalSync1200
881793226560activeLWLockWALWrite9200
891793226560activeLocktransactionid32200
901793226560activeLocktuple9200
911793226560idle1200
921793226560idleClientClientRead12200
931793226561active3200
941793226561activeIOWalSync1200
951793226561activeLWLockWALWrite5200
961793226561activeLocktransactionid36200
971793226561activeLocktuple11200
981793226561idle1200
991793226561idleClientClientRead7200
1001793226563active2200
1011793226563activeIOWalSync1200
1021793226563activeLWLockWALWrite8200
1031793226563activeLocktransactionid38200
1041793226563activeLocktuple8200
1051793226563idleClientClientRead7200
1061793226564active2200
1071793226564activeIOWalSync1200
1081793226564activeLWLockWALWrite7200
1091793226564activeLocktransactionid34200
1101793226564activeLocktuple15200
1111793226564idleClientClientRead4200
1121793226564idleLocktransactionid1200
1131793226565active1200
1141793226565activeIOWalSync1200
1151793226565activeLWLockWALWrite9200
1161793226565activeLocktransactionid40200
1171793226565activeLocktuple10200
1181793226565idleClientClientRead2200
1191793226565idleLocktuple1200
1201793226566active2200
1211793226566activeClientClientRead6200
1221793226566activeIOWalSync1200
1231793226566activeLWLockWALWrite5200
1241793226566activeLocktransactionid34200
1251793226566activeLocktuple11200
1261793226566idle1200
1271793226566idleClientClientRead1200
1281793226566idleLocktransactionid2200
1291793226566idleLocktuple1200
1301793226567active2200
1311793226567activeClientClientRead1200
1321793226567activeIOWalSync1200
1331793226567activeLWLockLockManager8200
1341793226567activeLWLockWALWrite6200
1351793226567activeLocktransactionid20200
1361793226567activeLocktuple15200
1371793226567idleClientClientRead11200
1381793226568active2200
1391793226568activeClientClientRead1200
1401793226568activeIOWalSync1200
1411793226568activeLWLockWALWrite6200
1421793226568activeLocktransactionid41200
1431793226568activeLocktuple5200
1441793226568idleClientClientRead7200
1451793226568idleLocktuple1200
1461793226569active1200
1471793226569activeClientClientRead1200
1481793226569activeIOWalSync1200
1491793226569activeLWLockLockManager4200
1501793226569activeLWLockWALWrite6200
1511793226569activeLocktransactionid44200
1521793226569activeLocktuple4200
1531793226569idle1200
1541793226569idleClientClientRead2200
1551793226571active1200
1561793226571activeClientClientRead1200
1571793226571activeLWLockWALWrite9200
1581793226571activeLocktransactionid32200
1591793226571activeLocktuple3200
1601793226571idleClientClientRead18200
1611793226572activeClientClientRead1200
1621793226572activeIOWalSync1200
1631793226572activeLWLockWALWrite9200
1641793226572activeLocktransactionid43200
1651793226572activeLocktuple5200
1661793226572idleClientClientRead5200
1671793226573active1200
1681793226573activeIOWalSync1200
1691793226573activeLWLockWALWrite7200
1701793226573activeLocktransactionid44200
1711793226573activeLocktuple7200
1721793226573idleClientClientRead4200
1731793226574active2200
1741793226574activeIOWalSync1200
1751793226574activeLWLockWALWrite8200
1761793226574activeLocktransactionid41200
1771793226574activeLocktuple9200
1781793226574idleClientClientRead3200
1791793226575active3200
1801793226575activeIOWalSync1200
1811793226575activeLWLockWALWrite5200
1821793226575activeLocktransactionid39200
1831793226575activeLocktuple10200
1841793226575idleClientClientRead6200
1851793226576active2200
1861793226576activeIOWalSync1200
1871793226576activeLWLockWALWrite7200
1881793226576activeLocktransactionid39200
1891793226576activeLocktuple10200
1901793226576idle1200
1911793226576idleClientClientRead4200
1921793226578active1200
1931793226578activeIOWalSync1200
1941793226578activeLWLockLockManager2200
1951793226578activeLWLockWALWrite9200
1961793226578activeLocktransactionid31200
1971793226578activeLocktuple10200
1981793226578idle1200
1991793226578idleClientClientRead9200
2001793226579activeIOWalSync1200
2011793226579activeLWLockWALWrite9200
2021793226579activeLocktransactionid48200
2031793226579activeLocktuple5200
2041793226579idleClientClientRead1200
2051793226580active1200
2061793226580activeIOWalSync1200
2071793226580activeLWLockWALWrite7200
2081793226580activeLocktransactionid41200
2091793226580activeLocktuple10200
2101793226580idle2200
2111793226580idleClientClientRead2200
2121793226581active2200
2131793226581activeIOWalSync1200
2141793226581activeLWLockWALWrite7200
2151793226581activeLocktransactionid32200
2161793226581activeLocktuple3200
2171793226581idle1200
2181793226581idleClientClientRead18200
2191793226582active1200
2201793226582activeIOWalSync1200
2211793226582activeLWLockWALWrite7200
2221793226582activeLocktransactionid35200
2231793226582activeLocktuple11200
2241793226582idleClientClientRead9200
2251793226583active3200
2261793226583activeLWLockWALWrite8200
2271793226583activeLocktransactionid35200
2281793226583activeLocktuple13200
2291793226583idleClientClientRead5200
2301793226584active1200
2311793226584activeIOWalSync1200
2321793226584activeLWLockWALWrite8200
2331793226584activeLocktransactionid35200
2341793226584activeLocktuple13200
2351793226584idle1200
2361793226584idleClientClientRead5200
2371793226586idleClientClientRead64200