forked from mtusi2026/mtusi2026lab2
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:
co-authored by
Claude Opus 5.5
parent
296e070eba
commit
dde113b4ed
@@ -0,0 +1,237 @@
|
||||
ts,state,wait_event_type,wait_event,backends,max_connections
|
||||
1793226544,idle,Client,ClientRead,64,200
|
||||
1793226545,active,,,2,200
|
||||
1793226545,active,IO,WalSync,1,200
|
||||
1793226545,active,LWLock,WALWrite,6,200
|
||||
1793226545,active,Lock,transactionid,45,200
|
||||
1793226545,active,Lock,tuple,2,200
|
||||
1793226545,idle,Client,ClientRead,7,200
|
||||
1793226545,idle,Lock,tuple,1,200
|
||||
1793226546,active,,,1,200
|
||||
1793226546,active,Client,ClientRead,1,200
|
||||
1793226546,active,IO,WalSync,1,200
|
||||
1793226546,active,LWLock,WALWrite,7,200
|
||||
1793226546,active,Lock,transactionid,33,200
|
||||
1793226546,active,Lock,tuple,17,200
|
||||
1793226546,idle,,,1,200
|
||||
1793226546,idle,Client,ClientRead,3,200
|
||||
1793226548,active,,,1,200
|
||||
1793226548,active,IO,WalSync,1,200
|
||||
1793226548,active,LWLock,BufferContent,2,200
|
||||
1793226548,active,LWLock,ProcArray,1,200
|
||||
1793226548,active,LWLock,WALWrite,5,200
|
||||
1793226548,active,Lock,transactionid,35,200
|
||||
1793226548,active,Lock,tuple,14,200
|
||||
1793226548,idle,,,1,200
|
||||
1793226548,idle,Client,ClientRead,4,200
|
||||
1793226549,active,,,2,200
|
||||
1793226549,active,Client,ClientRead,1,200
|
||||
1793226549,active,LWLock,WALWrite,8,200
|
||||
1793226549,active,Lock,transactionid,44,200
|
||||
1793226549,active,Lock,tuple,5,200
|
||||
1793226549,idle,,,1,200
|
||||
1793226549,idle,Client,ClientRead,3,200
|
||||
1793226550,active,,,1,200
|
||||
1793226550,active,IO,WalSync,1,200
|
||||
1793226550,active,LWLock,WALWrite,7,200
|
||||
1793226550,active,Lock,transactionid,46,200
|
||||
1793226550,active,Lock,tuple,4,200
|
||||
1793226550,idle,Client,ClientRead,5,200
|
||||
1793226551,active,,,2,200
|
||||
1793226551,active,IO,WalSync,1,200
|
||||
1793226551,active,LWLock,WALWrite,8,200
|
||||
1793226551,active,Lock,transactionid,34,200
|
||||
1793226551,active,Lock,tuple,16,200
|
||||
1793226551,idle,Client,ClientRead,3,200
|
||||
1793226552,active,,,2,200
|
||||
1793226552,active,LWLock,LockManager,8,200
|
||||
1793226552,active,LWLock,WALWrite,6,200
|
||||
1793226552,active,Lock,transactionid,26,200
|
||||
1793226552,active,Lock,tuple,14,200
|
||||
1793226552,idle,Client,ClientRead,8,200
|
||||
1793226553,active,IO,WalSync,1,200
|
||||
1793226553,active,LWLock,LockManager,2,200
|
||||
1793226553,active,LWLock,WALWrite,8,200
|
||||
1793226553,active,Lock,transactionid,33,200
|
||||
1793226553,active,Lock,tuple,13,200
|
||||
1793226553,idle,,,1,200
|
||||
1793226553,idle,Client,ClientRead,5,200
|
||||
1793226553,idle,Lock,tuple,1,200
|
||||
1793226555,active,,,1,200
|
||||
1793226555,active,LWLock,WALWrite,9,200
|
||||
1793226555,active,Lock,transactionid,36,200
|
||||
1793226555,active,Lock,tuple,15,200
|
||||
1793226555,idle,Client,ClientRead,3,200
|
||||
1793226556,active,,,2,200
|
||||
1793226556,active,IO,WalSync,1,200
|
||||
1793226556,active,LWLock,WALWrite,8,200
|
||||
1793226556,active,Lock,transactionid,42,200
|
||||
1793226556,active,Lock,tuple,8,200
|
||||
1793226556,idle,Client,ClientRead,3,200
|
||||
1793226557,active,,,2,200
|
||||
1793226557,active,IO,WalSync,1,200
|
||||
1793226557,active,LWLock,WALWrite,5,200
|
||||
1793226557,active,Lock,transactionid,34,200
|
||||
1793226557,active,Lock,tuple,19,200
|
||||
1793226557,idle,Client,ClientRead,3,200
|
||||
1793226558,active,LWLock,WALWrite,8,200
|
||||
1793226558,active,Lock,transactionid,49,200
|
||||
1793226558,active,Lock,tuple,6,200
|
||||
1793226558,idle,Lock,tuple,1,200
|
||||
1793226559,active,,,1,200
|
||||
1793226559,active,IO,WalSync,1,200
|
||||
1793226559,active,LWLock,WALWrite,8,200
|
||||
1793226559,active,Lock,transactionid,42,200
|
||||
1793226559,active,Lock,tuple,5,200
|
||||
1793226559,idle,Client,ClientRead,7,200
|
||||
1793226560,active,IO,WalSync,1,200
|
||||
1793226560,active,LWLock,WALWrite,9,200
|
||||
1793226560,active,Lock,transactionid,32,200
|
||||
1793226560,active,Lock,tuple,9,200
|
||||
1793226560,idle,,,1,200
|
||||
1793226560,idle,Client,ClientRead,12,200
|
||||
1793226561,active,,,3,200
|
||||
1793226561,active,IO,WalSync,1,200
|
||||
1793226561,active,LWLock,WALWrite,5,200
|
||||
1793226561,active,Lock,transactionid,36,200
|
||||
1793226561,active,Lock,tuple,11,200
|
||||
1793226561,idle,,,1,200
|
||||
1793226561,idle,Client,ClientRead,7,200
|
||||
1793226563,active,,,2,200
|
||||
1793226563,active,IO,WalSync,1,200
|
||||
1793226563,active,LWLock,WALWrite,8,200
|
||||
1793226563,active,Lock,transactionid,38,200
|
||||
1793226563,active,Lock,tuple,8,200
|
||||
1793226563,idle,Client,ClientRead,7,200
|
||||
1793226564,active,,,2,200
|
||||
1793226564,active,IO,WalSync,1,200
|
||||
1793226564,active,LWLock,WALWrite,7,200
|
||||
1793226564,active,Lock,transactionid,34,200
|
||||
1793226564,active,Lock,tuple,15,200
|
||||
1793226564,idle,Client,ClientRead,4,200
|
||||
1793226564,idle,Lock,transactionid,1,200
|
||||
1793226565,active,,,1,200
|
||||
1793226565,active,IO,WalSync,1,200
|
||||
1793226565,active,LWLock,WALWrite,9,200
|
||||
1793226565,active,Lock,transactionid,40,200
|
||||
1793226565,active,Lock,tuple,10,200
|
||||
1793226565,idle,Client,ClientRead,2,200
|
||||
1793226565,idle,Lock,tuple,1,200
|
||||
1793226566,active,,,2,200
|
||||
1793226566,active,Client,ClientRead,6,200
|
||||
1793226566,active,IO,WalSync,1,200
|
||||
1793226566,active,LWLock,WALWrite,5,200
|
||||
1793226566,active,Lock,transactionid,34,200
|
||||
1793226566,active,Lock,tuple,11,200
|
||||
1793226566,idle,,,1,200
|
||||
1793226566,idle,Client,ClientRead,1,200
|
||||
1793226566,idle,Lock,transactionid,2,200
|
||||
1793226566,idle,Lock,tuple,1,200
|
||||
1793226567,active,,,2,200
|
||||
1793226567,active,Client,ClientRead,1,200
|
||||
1793226567,active,IO,WalSync,1,200
|
||||
1793226567,active,LWLock,LockManager,8,200
|
||||
1793226567,active,LWLock,WALWrite,6,200
|
||||
1793226567,active,Lock,transactionid,20,200
|
||||
1793226567,active,Lock,tuple,15,200
|
||||
1793226567,idle,Client,ClientRead,11,200
|
||||
1793226568,active,,,2,200
|
||||
1793226568,active,Client,ClientRead,1,200
|
||||
1793226568,active,IO,WalSync,1,200
|
||||
1793226568,active,LWLock,WALWrite,6,200
|
||||
1793226568,active,Lock,transactionid,41,200
|
||||
1793226568,active,Lock,tuple,5,200
|
||||
1793226568,idle,Client,ClientRead,7,200
|
||||
1793226568,idle,Lock,tuple,1,200
|
||||
1793226569,active,,,1,200
|
||||
1793226569,active,Client,ClientRead,1,200
|
||||
1793226569,active,IO,WalSync,1,200
|
||||
1793226569,active,LWLock,LockManager,4,200
|
||||
1793226569,active,LWLock,WALWrite,6,200
|
||||
1793226569,active,Lock,transactionid,44,200
|
||||
1793226569,active,Lock,tuple,4,200
|
||||
1793226569,idle,,,1,200
|
||||
1793226569,idle,Client,ClientRead,2,200
|
||||
1793226571,active,,,1,200
|
||||
1793226571,active,Client,ClientRead,1,200
|
||||
1793226571,active,LWLock,WALWrite,9,200
|
||||
1793226571,active,Lock,transactionid,32,200
|
||||
1793226571,active,Lock,tuple,3,200
|
||||
1793226571,idle,Client,ClientRead,18,200
|
||||
1793226572,active,Client,ClientRead,1,200
|
||||
1793226572,active,IO,WalSync,1,200
|
||||
1793226572,active,LWLock,WALWrite,9,200
|
||||
1793226572,active,Lock,transactionid,43,200
|
||||
1793226572,active,Lock,tuple,5,200
|
||||
1793226572,idle,Client,ClientRead,5,200
|
||||
1793226573,active,,,1,200
|
||||
1793226573,active,IO,WalSync,1,200
|
||||
1793226573,active,LWLock,WALWrite,7,200
|
||||
1793226573,active,Lock,transactionid,44,200
|
||||
1793226573,active,Lock,tuple,7,200
|
||||
1793226573,idle,Client,ClientRead,4,200
|
||||
1793226574,active,,,2,200
|
||||
1793226574,active,IO,WalSync,1,200
|
||||
1793226574,active,LWLock,WALWrite,8,200
|
||||
1793226574,active,Lock,transactionid,41,200
|
||||
1793226574,active,Lock,tuple,9,200
|
||||
1793226574,idle,Client,ClientRead,3,200
|
||||
1793226575,active,,,3,200
|
||||
1793226575,active,IO,WalSync,1,200
|
||||
1793226575,active,LWLock,WALWrite,5,200
|
||||
1793226575,active,Lock,transactionid,39,200
|
||||
1793226575,active,Lock,tuple,10,200
|
||||
1793226575,idle,Client,ClientRead,6,200
|
||||
1793226576,active,,,2,200
|
||||
1793226576,active,IO,WalSync,1,200
|
||||
1793226576,active,LWLock,WALWrite,7,200
|
||||
1793226576,active,Lock,transactionid,39,200
|
||||
1793226576,active,Lock,tuple,10,200
|
||||
1793226576,idle,,,1,200
|
||||
1793226576,idle,Client,ClientRead,4,200
|
||||
1793226578,active,,,1,200
|
||||
1793226578,active,IO,WalSync,1,200
|
||||
1793226578,active,LWLock,LockManager,2,200
|
||||
1793226578,active,LWLock,WALWrite,9,200
|
||||
1793226578,active,Lock,transactionid,31,200
|
||||
1793226578,active,Lock,tuple,10,200
|
||||
1793226578,idle,,,1,200
|
||||
1793226578,idle,Client,ClientRead,9,200
|
||||
1793226579,active,IO,WalSync,1,200
|
||||
1793226579,active,LWLock,WALWrite,9,200
|
||||
1793226579,active,Lock,transactionid,48,200
|
||||
1793226579,active,Lock,tuple,5,200
|
||||
1793226579,idle,Client,ClientRead,1,200
|
||||
1793226580,active,,,1,200
|
||||
1793226580,active,IO,WalSync,1,200
|
||||
1793226580,active,LWLock,WALWrite,7,200
|
||||
1793226580,active,Lock,transactionid,41,200
|
||||
1793226580,active,Lock,tuple,10,200
|
||||
1793226580,idle,,,2,200
|
||||
1793226580,idle,Client,ClientRead,2,200
|
||||
1793226581,active,,,2,200
|
||||
1793226581,active,IO,WalSync,1,200
|
||||
1793226581,active,LWLock,WALWrite,7,200
|
||||
1793226581,active,Lock,transactionid,32,200
|
||||
1793226581,active,Lock,tuple,3,200
|
||||
1793226581,idle,,,1,200
|
||||
1793226581,idle,Client,ClientRead,18,200
|
||||
1793226582,active,,,1,200
|
||||
1793226582,active,IO,WalSync,1,200
|
||||
1793226582,active,LWLock,WALWrite,7,200
|
||||
1793226582,active,Lock,transactionid,35,200
|
||||
1793226582,active,Lock,tuple,11,200
|
||||
1793226582,idle,Client,ClientRead,9,200
|
||||
1793226583,active,,,3,200
|
||||
1793226583,active,LWLock,WALWrite,8,200
|
||||
1793226583,active,Lock,transactionid,35,200
|
||||
1793226583,active,Lock,tuple,13,200
|
||||
1793226583,idle,Client,ClientRead,5,200
|
||||
1793226584,active,,,1,200
|
||||
1793226584,active,IO,WalSync,1,200
|
||||
1793226584,active,LWLock,WALWrite,8,200
|
||||
1793226584,active,Lock,transactionid,35,200
|
||||
1793226584,active,Lock,tuple,13,200
|
||||
1793226584,idle,,,1,200
|
||||
1793226584,idle,Client,ClientRead,5,200
|
||||
1793226586,idle,Client,ClientRead,64,200
|
||||
|
Reference in New Issue
Block a user