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
This commit is contained in:
Artyom
2026-10-29 01:37:34 +03:00
co-authored by Claude Opus 5.5
parent 296e070eba
commit dde113b4ed
131 changed files with 20158 additions and 3 deletions
@@ -0,0 +1,196 @@
ts,state,wait_event_type,wait_event,backends,max_connections
1793226345,idle,Client,ClientRead,64,200
1793226346,active,,,1,200
1793226346,idle,,,1,200
1793226346,idle,Client,ClientRead,59,200
1793226346,idle in transaction,Client,ClientRead,3,200
1793226347,active,IO,WalSync,1,200
1793226347,active,LWLock,WALWrite,2,200
1793226347,active,Lock,transactionid,2,200
1793226347,idle,Client,ClientRead,53,200
1793226347,idle in transaction,,,1,200
1793226347,idle in transaction,Client,ClientRead,5,200
1793226348,active,,,1,200
1793226348,active,Client,ClientRead,1,200
1793226348,active,IO,WalSync,1,200
1793226348,active,Lock,transactionid,1,200
1793226348,idle,Client,ClientRead,57,200
1793226348,idle in transaction,Client,ClientRead,3,200
1793226349,active,,,1,200
1793226349,active,LWLock,WALWrite,1,200
1793226349,active,Lock,transactionid,1,200
1793226349,idle,Client,ClientRead,56,200
1793226349,idle in transaction,Client,ClientRead,5,200
1793226350,active,,,1,200
1793226350,active,Client,ClientRead,1,200
1793226350,idle,Client,ClientRead,58,200
1793226350,idle in transaction,,,1,200
1793226350,idle in transaction,Client,ClientRead,3,200
1793226351,active,,,1,200
1793226351,active,Client,ClientRead,1,200
1793226351,idle,,,1,200
1793226351,idle,Client,ClientRead,57,200
1793226351,idle in transaction,Client,ClientRead,4,200
1793226353,active,Client,ClientRead,1,200
1793226353,idle,Client,ClientRead,58,200
1793226353,idle in transaction,Client,ClientRead,5,200
1793226354,active,,,2,200
1793226354,active,Client,ClientRead,1,200
1793226354,active,IO,WalSync,1,200
1793226354,active,Lock,transactionid,12,200
1793226354,active,Lock,tuple,7,200
1793226354,idle,Client,ClientRead,34,200
1793226354,idle in transaction,Client,ClientRead,7,200
1793226355,active,IO,WalSync,1,200
1793226355,active,Lock,transactionid,6,200
1793226355,active,Lock,tuple,37,200
1793226355,idle,Client,ClientRead,12,200
1793226355,idle in transaction,Client,ClientRead,7,200
1793226355,idle in transaction,LWLock,WALWrite,1,200
1793226356,active,Client,ClientRead,1,200
1793226356,idle,Client,ClientRead,60,200
1793226356,idle in transaction,,,1,200
1793226356,idle in transaction,Client,ClientRead,2,200
1793226357,active,,,1,200
1793226357,active,IO,WalSync,1,200
1793226357,active,Lock,transactionid,11,200
1793226357,active,Lock,tuple,39,200
1793226357,idle,,,1,200
1793226357,idle,Client,ClientRead,2,200
1793226357,idle in transaction,Client,ClientRead,9,200
1793226358,active,,,1,200
1793226358,active,IO,WalSync,1,200
1793226358,active,LWLock,WALWrite,1,200
1793226358,idle,Client,ClientRead,57,200
1793226358,idle in transaction,Client,ClientRead,4,200
1793226360,active,,,1,200
1793226360,active,IO,WalSync,1,200
1793226360,active,LWLock,WALWrite,2,200
1793226360,idle,Client,ClientRead,59,200
1793226360,idle in transaction,,,1,200
1793226361,active,,,1,200
1793226361,active,Client,ClientRead,1,200
1793226361,idle,Client,ClientRead,60,200
1793226361,idle in transaction,Client,ClientRead,2,200
1793226362,active,,,2,200
1793226362,active,Client,ClientRead,2,200
1793226362,active,LWLock,WALWrite,5,200
1793226362,active,Lock,transactionid,3,200
1793226362,idle,Client,ClientRead,51,200
1793226362,idle in transaction,Client,ClientRead,1,200
1793226363,active,,,1,200
1793226363,active,Client,ClientRead,1,200
1793226363,active,LWLock,WALWrite,1,200
1793226363,active,Lock,transactionid,13,200
1793226363,active,Lock,tuple,11,200
1793226363,idle,Client,ClientRead,29,200
1793226363,idle in transaction,Client,ClientRead,8,200
1793226364,active,,,1,200
1793226364,active,IO,WalSync,1,200
1793226364,idle,Client,ClientRead,57,200
1793226364,idle in transaction,Client,ClientRead,5,200
1793226365,active,Client,ClientRead,1,200
1793226365,active,Lock,transactionid,10,200
1793226365,active,Lock,tuple,34,200
1793226365,idle,Client,ClientRead,9,200
1793226365,idle in transaction,,,2,200
1793226365,idle in transaction,Client,ClientRead,8,200
1793226366,active,Client,ClientRead,1,200
1793226366,active,IO,WalSync,1,200
1793226366,active,LWLock,WALWrite,1,200
1793226366,idle,,,1,200
1793226366,idle,Client,ClientRead,57,200
1793226366,idle in transaction,Client,ClientRead,3,200
1793226368,active,,,2,200
1793226368,active,Client,ClientRead,1,200
1793226368,active,IO,WalSync,1,200
1793226368,active,LWLock,WALWrite,1,200
1793226368,active,Lock,transactionid,15,200
1793226368,active,Lock,tuple,35,200
1793226368,idle,,,1,200
1793226368,idle,Client,ClientRead,2,200
1793226368,idle in transaction,Client,ClientRead,6,200
1793226369,active,,,1,200
1793226369,idle,Client,ClientRead,60,200
1793226369,idle in transaction,Client,ClientRead,3,200
1793226370,active,IO,WalSync,1,200
1793226370,active,Lock,transactionid,5,200
1793226370,idle,Client,ClientRead,53,200
1793226370,idle in transaction,,,1,200
1793226370,idle in transaction,Client,ClientRead,4,200
1793226371,active,IO,WalSync,1,200
1793226371,active,Lock,transactionid,8,200
1793226371,active,Lock,tuple,4,200
1793226371,idle,Client,ClientRead,44,200
1793226371,idle in transaction,Client,ClientRead,7,200
1793226372,active,Client,ClientRead,4,200
1793226372,idle,Client,ClientRead,58,200
1793226372,idle in transaction,Client,ClientRead,2,200
1793226373,active,IO,WalSync,1,200
1793226373,active,LWLock,WALWrite,1,200
1793226373,idle,Client,ClientRead,61,200
1793226373,idle in transaction,,,1,200
1793226374,active,,,1,200
1793226374,active,IO,WalSync,1,200
1793226374,active,Lock,transactionid,13,200
1793226374,active,Lock,tuple,36,200
1793226374,idle,Client,ClientRead,5,200
1793226374,idle in transaction,Client,ClientRead,8,200
1793226376,active,IO,WalSync,1,200
1793226376,active,LWLock,WALWrite,3,200
1793226376,active,Lock,transactionid,9,200
1793226376,active,Lock,tuple,39,200
1793226376,idle,,,1,200
1793226376,idle,Client,ClientRead,5,200
1793226376,idle in transaction,,,1,200
1793226376,idle in transaction,Client,ClientRead,4,200
1793226376,idle in transaction,LWLock,WALWrite,1,200
1793226377,active,Lock,transactionid,13,200
1793226377,active,Lock,tuple,30,200
1793226377,idle,Client,ClientRead,7,200
1793226377,idle in transaction,,,2,200
1793226377,idle in transaction,Client,ClientRead,12,200
1793226378,idle,Client,ClientRead,61,200
1793226378,idle in transaction,,,1,200
1793226378,idle in transaction,Client,ClientRead,2,200
1793226379,active,IO,WalSync,1,200
1793226379,active,LWLock,WALWrite,3,200
1793226379,active,Lock,transactionid,2,200
1793226379,idle,Client,ClientRead,55,200
1793226379,idle in transaction,,,1,200
1793226379,idle in transaction,Client,ClientRead,1,200
1793226380,active,Client,ClientRead,1,200
1793226380,active,Lock,transactionid,1,200
1793226380,active,Lock,tuple,18,200
1793226380,idle,,,1,200
1793226380,idle,Client,ClientRead,37,200
1793226380,idle in transaction,Client,ClientRead,3,200
1793226380,idle in transaction,LWLock,WALWrite,1,200
1793226381,active,IO,WalSync,1,200
1793226381,active,LWLock,WALWrite,2,200
1793226381,active,Lock,transactionid,1,200
1793226381,active,Lock,tuple,13,200
1793226381,idle,Client,ClientRead,41,200
1793226381,idle in transaction,,,1,200
1793226381,idle in transaction,Client,ClientRead,5,200
1793226383,active,,,2,200
1793226383,active,Client,ClientRead,1,200
1793226383,active,Lock,transactionid,10,200
1793226383,active,Lock,tuple,14,200
1793226383,idle,Client,ClientRead,32,200
1793226383,idle in transaction,,,1,200
1793226383,idle in transaction,Client,ClientRead,4,200
1793226384,active,IO,WalSync,1,200
1793226384,active,LWLock,WALWrite,2,200
1793226384,active,Lock,transactionid,13,200
1793226384,active,Lock,tuple,10,200
1793226384,idle,Client,ClientRead,31,200
1793226384,idle in transaction,Client,ClientRead,4,200
1793226384,idle in transaction,LWLock,WALWrite,3,200
1793226385,active,,,1,200
1793226385,active,IO,WalSync,1,200
1793226385,active,LWLock,WALWrite,3,200
1793226385,active,Lock,transactionid,2,200
1793226385,idle,Client,ClientRead,54,200
1793226385,idle in transaction,Client,ClientRead,3,200
1793226386,idle,Client,ClientRead,63,200
1 ts state wait_event_type wait_event backends max_connections
2 1793226345 idle Client ClientRead 64 200
3 1793226346 active 1 200
4 1793226346 idle 1 200
5 1793226346 idle Client ClientRead 59 200
6 1793226346 idle in transaction Client ClientRead 3 200
7 1793226347 active IO WalSync 1 200
8 1793226347 active LWLock WALWrite 2 200
9 1793226347 active Lock transactionid 2 200
10 1793226347 idle Client ClientRead 53 200
11 1793226347 idle in transaction 1 200
12 1793226347 idle in transaction Client ClientRead 5 200
13 1793226348 active 1 200
14 1793226348 active Client ClientRead 1 200
15 1793226348 active IO WalSync 1 200
16 1793226348 active Lock transactionid 1 200
17 1793226348 idle Client ClientRead 57 200
18 1793226348 idle in transaction Client ClientRead 3 200
19 1793226349 active 1 200
20 1793226349 active LWLock WALWrite 1 200
21 1793226349 active Lock transactionid 1 200
22 1793226349 idle Client ClientRead 56 200
23 1793226349 idle in transaction Client ClientRead 5 200
24 1793226350 active 1 200
25 1793226350 active Client ClientRead 1 200
26 1793226350 idle Client ClientRead 58 200
27 1793226350 idle in transaction 1 200
28 1793226350 idle in transaction Client ClientRead 3 200
29 1793226351 active 1 200
30 1793226351 active Client ClientRead 1 200
31 1793226351 idle 1 200
32 1793226351 idle Client ClientRead 57 200
33 1793226351 idle in transaction Client ClientRead 4 200
34 1793226353 active Client ClientRead 1 200
35 1793226353 idle Client ClientRead 58 200
36 1793226353 idle in transaction Client ClientRead 5 200
37 1793226354 active 2 200
38 1793226354 active Client ClientRead 1 200
39 1793226354 active IO WalSync 1 200
40 1793226354 active Lock transactionid 12 200
41 1793226354 active Lock tuple 7 200
42 1793226354 idle Client ClientRead 34 200
43 1793226354 idle in transaction Client ClientRead 7 200
44 1793226355 active IO WalSync 1 200
45 1793226355 active Lock transactionid 6 200
46 1793226355 active Lock tuple 37 200
47 1793226355 idle Client ClientRead 12 200
48 1793226355 idle in transaction Client ClientRead 7 200
49 1793226355 idle in transaction LWLock WALWrite 1 200
50 1793226356 active Client ClientRead 1 200
51 1793226356 idle Client ClientRead 60 200
52 1793226356 idle in transaction 1 200
53 1793226356 idle in transaction Client ClientRead 2 200
54 1793226357 active 1 200
55 1793226357 active IO WalSync 1 200
56 1793226357 active Lock transactionid 11 200
57 1793226357 active Lock tuple 39 200
58 1793226357 idle 1 200
59 1793226357 idle Client ClientRead 2 200
60 1793226357 idle in transaction Client ClientRead 9 200
61 1793226358 active 1 200
62 1793226358 active IO WalSync 1 200
63 1793226358 active LWLock WALWrite 1 200
64 1793226358 idle Client ClientRead 57 200
65 1793226358 idle in transaction Client ClientRead 4 200
66 1793226360 active 1 200
67 1793226360 active IO WalSync 1 200
68 1793226360 active LWLock WALWrite 2 200
69 1793226360 idle Client ClientRead 59 200
70 1793226360 idle in transaction 1 200
71 1793226361 active 1 200
72 1793226361 active Client ClientRead 1 200
73 1793226361 idle Client ClientRead 60 200
74 1793226361 idle in transaction Client ClientRead 2 200
75 1793226362 active 2 200
76 1793226362 active Client ClientRead 2 200
77 1793226362 active LWLock WALWrite 5 200
78 1793226362 active Lock transactionid 3 200
79 1793226362 idle Client ClientRead 51 200
80 1793226362 idle in transaction Client ClientRead 1 200
81 1793226363 active 1 200
82 1793226363 active Client ClientRead 1 200
83 1793226363 active LWLock WALWrite 1 200
84 1793226363 active Lock transactionid 13 200
85 1793226363 active Lock tuple 11 200
86 1793226363 idle Client ClientRead 29 200
87 1793226363 idle in transaction Client ClientRead 8 200
88 1793226364 active 1 200
89 1793226364 active IO WalSync 1 200
90 1793226364 idle Client ClientRead 57 200
91 1793226364 idle in transaction Client ClientRead 5 200
92 1793226365 active Client ClientRead 1 200
93 1793226365 active Lock transactionid 10 200
94 1793226365 active Lock tuple 34 200
95 1793226365 idle Client ClientRead 9 200
96 1793226365 idle in transaction 2 200
97 1793226365 idle in transaction Client ClientRead 8 200
98 1793226366 active Client ClientRead 1 200
99 1793226366 active IO WalSync 1 200
100 1793226366 active LWLock WALWrite 1 200
101 1793226366 idle 1 200
102 1793226366 idle Client ClientRead 57 200
103 1793226366 idle in transaction Client ClientRead 3 200
104 1793226368 active 2 200
105 1793226368 active Client ClientRead 1 200
106 1793226368 active IO WalSync 1 200
107 1793226368 active LWLock WALWrite 1 200
108 1793226368 active Lock transactionid 15 200
109 1793226368 active Lock tuple 35 200
110 1793226368 idle 1 200
111 1793226368 idle Client ClientRead 2 200
112 1793226368 idle in transaction Client ClientRead 6 200
113 1793226369 active 1 200
114 1793226369 idle Client ClientRead 60 200
115 1793226369 idle in transaction Client ClientRead 3 200
116 1793226370 active IO WalSync 1 200
117 1793226370 active Lock transactionid 5 200
118 1793226370 idle Client ClientRead 53 200
119 1793226370 idle in transaction 1 200
120 1793226370 idle in transaction Client ClientRead 4 200
121 1793226371 active IO WalSync 1 200
122 1793226371 active Lock transactionid 8 200
123 1793226371 active Lock tuple 4 200
124 1793226371 idle Client ClientRead 44 200
125 1793226371 idle in transaction Client ClientRead 7 200
126 1793226372 active Client ClientRead 4 200
127 1793226372 idle Client ClientRead 58 200
128 1793226372 idle in transaction Client ClientRead 2 200
129 1793226373 active IO WalSync 1 200
130 1793226373 active LWLock WALWrite 1 200
131 1793226373 idle Client ClientRead 61 200
132 1793226373 idle in transaction 1 200
133 1793226374 active 1 200
134 1793226374 active IO WalSync 1 200
135 1793226374 active Lock transactionid 13 200
136 1793226374 active Lock tuple 36 200
137 1793226374 idle Client ClientRead 5 200
138 1793226374 idle in transaction Client ClientRead 8 200
139 1793226376 active IO WalSync 1 200
140 1793226376 active LWLock WALWrite 3 200
141 1793226376 active Lock transactionid 9 200
142 1793226376 active Lock tuple 39 200
143 1793226376 idle 1 200
144 1793226376 idle Client ClientRead 5 200
145 1793226376 idle in transaction 1 200
146 1793226376 idle in transaction Client ClientRead 4 200
147 1793226376 idle in transaction LWLock WALWrite 1 200
148 1793226377 active Lock transactionid 13 200
149 1793226377 active Lock tuple 30 200
150 1793226377 idle Client ClientRead 7 200
151 1793226377 idle in transaction 2 200
152 1793226377 idle in transaction Client ClientRead 12 200
153 1793226378 idle Client ClientRead 61 200
154 1793226378 idle in transaction 1 200
155 1793226378 idle in transaction Client ClientRead 2 200
156 1793226379 active IO WalSync 1 200
157 1793226379 active LWLock WALWrite 3 200
158 1793226379 active Lock transactionid 2 200
159 1793226379 idle Client ClientRead 55 200
160 1793226379 idle in transaction 1 200
161 1793226379 idle in transaction Client ClientRead 1 200
162 1793226380 active Client ClientRead 1 200
163 1793226380 active Lock transactionid 1 200
164 1793226380 active Lock tuple 18 200
165 1793226380 idle 1 200
166 1793226380 idle Client ClientRead 37 200
167 1793226380 idle in transaction Client ClientRead 3 200
168 1793226380 idle in transaction LWLock WALWrite 1 200
169 1793226381 active IO WalSync 1 200
170 1793226381 active LWLock WALWrite 2 200
171 1793226381 active Lock transactionid 1 200
172 1793226381 active Lock tuple 13 200
173 1793226381 idle Client ClientRead 41 200
174 1793226381 idle in transaction 1 200
175 1793226381 idle in transaction Client ClientRead 5 200
176 1793226383 active 2 200
177 1793226383 active Client ClientRead 1 200
178 1793226383 active Lock transactionid 10 200
179 1793226383 active Lock tuple 14 200
180 1793226383 idle Client ClientRead 32 200
181 1793226383 idle in transaction 1 200
182 1793226383 idle in transaction Client ClientRead 4 200
183 1793226384 active IO WalSync 1 200
184 1793226384 active LWLock WALWrite 2 200
185 1793226384 active Lock transactionid 13 200
186 1793226384 active Lock tuple 10 200
187 1793226384 idle Client ClientRead 31 200
188 1793226384 idle in transaction Client ClientRead 4 200
189 1793226384 idle in transaction LWLock WALWrite 3 200
190 1793226385 active 1 200
191 1793226385 active IO WalSync 1 200
192 1793226385 active LWLock WALWrite 3 200
193 1793226385 active Lock transactionid 2 200
194 1793226385 idle Client ClientRead 54 200
195 1793226385 idle in transaction Client ClientRead 3 200
196 1793226386 idle Client ClientRead 63 200