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,116 @@
ts,state,wait_event_type,wait_event,backends,max_connections
1793226875,idle,Client,ClientRead,8,200
1793226876,active,,,1,200
1793226876,active,IO,WalSync,1,200
1793226876,active,LWLock,WALWrite,9,200
1793226876,active,Lock,transactionid,41,200
1793226876,active,Lock,tuple,10,200
1793226876,idle,Client,ClientRead,2,200
1793226877,idle,,,1,200
1793226877,idle,Client,ClientRead,63,200
1793226878,active,,,2,200
1793226878,active,Client,ClientRead,1,200
1793226878,active,IO,WalSync,1,200
1793226878,active,LWLock,WALWrite,2,200
1793226878,idle,Client,ClientRead,58,200
1793226879,active,Client,ClientRead,1,200
1793226879,active,IO,WalSync,1,200
1793226879,active,LWLock,WALWrite,1,200
1793226879,idle,Client,ClientRead,61,200
1793226881,active,IO,WalSync,1,200
1793226881,active,LWLock,WALWrite,1,200
1793226881,idle,Client,ClientRead,62,200
1793226882,active,IO,WalSync,1,200
1793226882,active,LWLock,WALWrite,1,200
1793226882,idle,Client,ClientRead,62,200
1793226883,active,,,1,200
1793226883,idle,Client,ClientRead,63,200
1793226884,active,IO,WalSync,1,200
1793226884,idle,,,1,200
1793226884,idle,Client,ClientRead,62,200
1793226885,idle,,,1,200
1793226885,idle,Client,ClientRead,63,200
1793226886,idle,Client,ClientRead,64,200
1793226887,active,,,1,200
1793226887,active,IO,WalSync,1,200
1793226887,active,LWLock,WALWrite,5,200
1793226887,idle,Client,ClientRead,57,200
1793226889,active,Client,ClientRead,1,200
1793226889,active,LWLock,WALWrite,1,200
1793226889,idle,Client,ClientRead,62,200
1793226890,active,Client,ClientRead,1,200
1793226890,active,IO,WalSync,1,200
1793226890,active,LWLock,WALWrite,3,200
1793226890,idle,Client,ClientRead,59,200
1793226891,active,IO,WalSync,1,200
1793226891,active,LWLock,WALWrite,3,200
1793226891,idle,Client,ClientRead,60,200
1793226892,active,Client,ClientRead,1,200
1793226892,active,IO,WalSync,1,200
1793226892,idle,,,1,200
1793226892,idle,Client,ClientRead,61,200
1793226893,active,LWLock,WALWrite,1,200
1793226893,idle,,,1,200
1793226893,idle,Client,ClientRead,62,200
1793226894,active,IO,WalSync,1,200
1793226894,active,LWLock,WALWrite,3,200
1793226894,idle,,,1,200
1793226894,idle,Client,ClientRead,59,200
1793226895,active,IO,WalSync,1,200
1793226895,active,LWLock,WALWrite,1,200
1793226895,idle,,,1,200
1793226895,idle,Client,ClientRead,61,200
1793226897,active,,,1,200
1793226897,active,IO,WalSync,1,200
1793226897,active,LWLock,WALWrite,4,200
1793226897,active,Lock,transactionid,2,200
1793226897,idle,,,1,200
1793226897,idle,Client,ClientRead,55,200
1793226898,active,,,1,200
1793226898,active,IO,WalSync,1,200
1793226898,active,LWLock,WALWrite,1,200
1793226898,idle,,,1,200
1793226898,idle,Client,ClientRead,60,200
1793226899,idle,Client,ClientRead,64,200
1793226900,idle,Client,ClientRead,64,200
1793226901,active,IO,WalSync,1,200
1793226901,active,LWLock,WALWrite,3,200
1793226901,idle,,,1,200
1793226901,idle,Client,ClientRead,59,200
1793226902,idle,Client,ClientRead,64,200
1793226903,active,Client,ClientRead,1,200
1793226903,active,IO,WalSync,1,200
1793226903,idle,Client,ClientRead,62,200
1793226905,active,,,1,200
1793226905,active,LWLock,WALWrite,1,200
1793226905,idle,Client,ClientRead,62,200
1793226906,active,IO,WalSync,1,200
1793226906,active,LWLock,WALWrite,3,200
1793226906,active,Lock,transactionid,2,200
1793226906,idle,,,1,200
1793226906,idle,Client,ClientRead,57,200
1793226907,active,,,1,200
1793226907,idle,,,2,200
1793226907,idle,Client,ClientRead,61,200
1793226908,active,,,2,200
1793226908,active,Client,ClientRead,2,200
1793226908,active,LWLock,WALWrite,1,200
1793226908,idle,Client,ClientRead,59,200
1793226909,active,Client,ClientRead,1,200
1793226909,active,LWLock,WALWrite,1,200
1793226909,idle,Client,ClientRead,62,200
1793226910,active,IO,WalSync,1,200
1793226910,active,LWLock,WALWrite,1,200
1793226910,idle,,,1,200
1793226910,idle,Client,ClientRead,61,200
1793226911,active,IO,WalSync,1,200
1793226911,active,LWLock,WALWrite,4,200
1793226911,idle,Client,ClientRead,59,200
1793226913,idle,Client,ClientRead,64,200
1793226914,active,Client,ClientRead,2,200
1793226914,idle,,,1,200
1793226914,idle,Client,ClientRead,61,200
1793226915,active,,,1,200
1793226915,active,LWLock,WALWrite,1,200
1793226915,idle,Client,ClientRead,62,200
1793226916,idle,Client,ClientRead,64,200
1 ts state wait_event_type wait_event backends max_connections
2 1793226875 idle Client ClientRead 8 200
3 1793226876 active 1 200
4 1793226876 active IO WalSync 1 200
5 1793226876 active LWLock WALWrite 9 200
6 1793226876 active Lock transactionid 41 200
7 1793226876 active Lock tuple 10 200
8 1793226876 idle Client ClientRead 2 200
9 1793226877 idle 1 200
10 1793226877 idle Client ClientRead 63 200
11 1793226878 active 2 200
12 1793226878 active Client ClientRead 1 200
13 1793226878 active IO WalSync 1 200
14 1793226878 active LWLock WALWrite 2 200
15 1793226878 idle Client ClientRead 58 200
16 1793226879 active Client ClientRead 1 200
17 1793226879 active IO WalSync 1 200
18 1793226879 active LWLock WALWrite 1 200
19 1793226879 idle Client ClientRead 61 200
20 1793226881 active IO WalSync 1 200
21 1793226881 active LWLock WALWrite 1 200
22 1793226881 idle Client ClientRead 62 200
23 1793226882 active IO WalSync 1 200
24 1793226882 active LWLock WALWrite 1 200
25 1793226882 idle Client ClientRead 62 200
26 1793226883 active 1 200
27 1793226883 idle Client ClientRead 63 200
28 1793226884 active IO WalSync 1 200
29 1793226884 idle 1 200
30 1793226884 idle Client ClientRead 62 200
31 1793226885 idle 1 200
32 1793226885 idle Client ClientRead 63 200
33 1793226886 idle Client ClientRead 64 200
34 1793226887 active 1 200
35 1793226887 active IO WalSync 1 200
36 1793226887 active LWLock WALWrite 5 200
37 1793226887 idle Client ClientRead 57 200
38 1793226889 active Client ClientRead 1 200
39 1793226889 active LWLock WALWrite 1 200
40 1793226889 idle Client ClientRead 62 200
41 1793226890 active Client ClientRead 1 200
42 1793226890 active IO WalSync 1 200
43 1793226890 active LWLock WALWrite 3 200
44 1793226890 idle Client ClientRead 59 200
45 1793226891 active IO WalSync 1 200
46 1793226891 active LWLock WALWrite 3 200
47 1793226891 idle Client ClientRead 60 200
48 1793226892 active Client ClientRead 1 200
49 1793226892 active IO WalSync 1 200
50 1793226892 idle 1 200
51 1793226892 idle Client ClientRead 61 200
52 1793226893 active LWLock WALWrite 1 200
53 1793226893 idle 1 200
54 1793226893 idle Client ClientRead 62 200
55 1793226894 active IO WalSync 1 200
56 1793226894 active LWLock WALWrite 3 200
57 1793226894 idle 1 200
58 1793226894 idle Client ClientRead 59 200
59 1793226895 active IO WalSync 1 200
60 1793226895 active LWLock WALWrite 1 200
61 1793226895 idle 1 200
62 1793226895 idle Client ClientRead 61 200
63 1793226897 active 1 200
64 1793226897 active IO WalSync 1 200
65 1793226897 active LWLock WALWrite 4 200
66 1793226897 active Lock transactionid 2 200
67 1793226897 idle 1 200
68 1793226897 idle Client ClientRead 55 200
69 1793226898 active 1 200
70 1793226898 active IO WalSync 1 200
71 1793226898 active LWLock WALWrite 1 200
72 1793226898 idle 1 200
73 1793226898 idle Client ClientRead 60 200
74 1793226899 idle Client ClientRead 64 200
75 1793226900 idle Client ClientRead 64 200
76 1793226901 active IO WalSync 1 200
77 1793226901 active LWLock WALWrite 3 200
78 1793226901 idle 1 200
79 1793226901 idle Client ClientRead 59 200
80 1793226902 idle Client ClientRead 64 200
81 1793226903 active Client ClientRead 1 200
82 1793226903 active IO WalSync 1 200
83 1793226903 idle Client ClientRead 62 200
84 1793226905 active 1 200
85 1793226905 active LWLock WALWrite 1 200
86 1793226905 idle Client ClientRead 62 200
87 1793226906 active IO WalSync 1 200
88 1793226906 active LWLock WALWrite 3 200
89 1793226906 active Lock transactionid 2 200
90 1793226906 idle 1 200
91 1793226906 idle Client ClientRead 57 200
92 1793226907 active 1 200
93 1793226907 idle 2 200
94 1793226907 idle Client ClientRead 61 200
95 1793226908 active 2 200
96 1793226908 active Client ClientRead 2 200
97 1793226908 active LWLock WALWrite 1 200
98 1793226908 idle Client ClientRead 59 200
99 1793226909 active Client ClientRead 1 200
100 1793226909 active LWLock WALWrite 1 200
101 1793226909 idle Client ClientRead 62 200
102 1793226910 active IO WalSync 1 200
103 1793226910 active LWLock WALWrite 1 200
104 1793226910 idle 1 200
105 1793226910 idle Client ClientRead 61 200
106 1793226911 active IO WalSync 1 200
107 1793226911 active LWLock WALWrite 4 200
108 1793226911 idle Client ClientRead 59 200
109 1793226913 idle Client ClientRead 64 200
110 1793226914 active Client ClientRead 2 200
111 1793226914 idle 1 200
112 1793226914 idle Client ClientRead 61 200
113 1793226915 active 1 200
114 1793226915 active LWLock WALWrite 1 200
115 1793226915 idle Client ClientRead 62 200
116 1793226916 idle Client ClientRead 64 200