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,221 @@
|
||||
ts,state,wait_event_type,wait_event,backends,max_connections
|
||||
1793226922,idle,Client,ClientRead,64,200
|
||||
1793226923,active,Client,ClientRead,1,200
|
||||
1793226923,active,IO,WalSync,1,200
|
||||
1793226923,active,LWLock,WALWrite,9,200
|
||||
1793226923,active,Lock,transactionid,40,200
|
||||
1793226923,active,Lock,tuple,9,200
|
||||
1793226923,idle,Client,ClientRead,4,200
|
||||
1793226924,active,,,3,200
|
||||
1793226924,active,Client,ClientRead,1,200
|
||||
1793226924,active,IO,WalSync,1,200
|
||||
1793226924,active,LWLock,WALWrite,5,200
|
||||
1793226924,active,Lock,transactionid,36,200
|
||||
1793226924,active,Lock,tuple,10,200
|
||||
1793226924,idle,Client,ClientRead,8,200
|
||||
1793226925,active,,,2,200
|
||||
1793226925,active,IO,WalSync,1,200
|
||||
1793226925,active,LWLock,LockManager,2,200
|
||||
1793226925,active,LWLock,WALWrite,9,200
|
||||
1793226925,active,Lock,transactionid,37,200
|
||||
1793226925,active,Lock,tuple,6,200
|
||||
1793226925,idle,,,1,200
|
||||
1793226925,idle,Client,ClientRead,6,200
|
||||
1793226926,active,LWLock,WALWrite,9,200
|
||||
1793226926,active,Lock,transactionid,48,200
|
||||
1793226926,active,Lock,tuple,3,200
|
||||
1793226926,idle,Client,ClientRead,3,200
|
||||
1793226926,idle,Lock,transactionid,1,200
|
||||
1793226928,active,IO,WalSync,1,200
|
||||
1793226928,active,LWLock,WALWrite,8,200
|
||||
1793226928,active,Lock,transactionid,42,200
|
||||
1793226928,active,Lock,tuple,10,200
|
||||
1793226928,idle,Client,ClientRead,3,200
|
||||
1793226929,active,,,2,200
|
||||
1793226929,active,IO,WalSync,2,200
|
||||
1793226929,active,LWLock,WALWrite,7,200
|
||||
1793226929,active,Lock,transactionid,37,200
|
||||
1793226929,active,Lock,tuple,9,200
|
||||
1793226929,idle,Client,ClientRead,6,200
|
||||
1793226929,idle,Lock,tuple,1,200
|
||||
1793226930,active,,,2,200
|
||||
1793226930,active,Client,ClientRead,1,200
|
||||
1793226930,active,IO,WalSync,1,200
|
||||
1793226930,active,LWLock,WALWrite,7,200
|
||||
1793226930,active,Lock,transactionid,34,200
|
||||
1793226930,active,Lock,tuple,16,200
|
||||
1793226930,idle,Client,ClientRead,3,200
|
||||
1793226931,active,,,1,200
|
||||
1793226931,active,IO,WalSync,1,200
|
||||
1793226931,active,LWLock,WALWrite,8,200
|
||||
1793226931,active,Lock,transactionid,42,200
|
||||
1793226931,active,Lock,tuple,8,200
|
||||
1793226931,idle,Client,ClientRead,3,200
|
||||
1793226931,idle,Lock,transactionid,1,200
|
||||
1793226932,active,LWLock,WALWrite,7,200
|
||||
1793226932,active,Lock,transactionid,24,200
|
||||
1793226932,active,Lock,tuple,25,200
|
||||
1793226932,idle,Client,ClientRead,8,200
|
||||
1793226933,active,,,1,200
|
||||
1793226933,active,IO,WalSync,1,200
|
||||
1793226933,active,LWLock,WALWrite,8,200
|
||||
1793226933,active,Lock,transactionid,38,200
|
||||
1793226933,active,Lock,tuple,11,200
|
||||
1793226933,idle,Client,ClientRead,5,200
|
||||
1793226935,active,,,2,200
|
||||
1793226935,active,IO,WalSync,1,200
|
||||
1793226935,active,LWLock,WALWrite,7,200
|
||||
1793226935,active,Lock,transactionid,37,200
|
||||
1793226935,active,Lock,tuple,11,200
|
||||
1793226935,idle,Client,ClientRead,6,200
|
||||
1793226936,active,Client,ClientRead,1,200
|
||||
1793226936,active,IO,WalSync,1,200
|
||||
1793226936,active,LWLock,WALWrite,8,200
|
||||
1793226936,active,Lock,transactionid,38,200
|
||||
1793226936,active,Lock,tuple,11,200
|
||||
1793226936,idle,Client,ClientRead,5,200
|
||||
1793226937,active,Client,ClientRead,1,200
|
||||
1793226937,active,IO,WalSync,1,200
|
||||
1793226937,active,LWLock,WALWrite,9,200
|
||||
1793226937,active,Lock,transactionid,32,200
|
||||
1793226937,active,Lock,tuple,11,200
|
||||
1793226937,idle,,,1,200
|
||||
1793226937,idle,Client,ClientRead,9,200
|
||||
1793226938,active,,,2,200
|
||||
1793226938,active,LWLock,BufferContent,3,200
|
||||
1793226938,active,LWLock,WALWrite,6,200
|
||||
1793226938,active,Lock,transactionid,27,200
|
||||
1793226938,active,Lock,tuple,21,200
|
||||
1793226938,idle,Client,ClientRead,5,200
|
||||
1793226939,active,IO,WalSync,1,200
|
||||
1793226939,active,LWLock,WALWrite,9,200
|
||||
1793226939,active,Lock,transactionid,45,200
|
||||
1793226939,active,Lock,tuple,4,200
|
||||
1793226939,idle,Client,ClientRead,5,200
|
||||
1793226940,active,IO,WalSync,1,200
|
||||
1793226940,active,LWLock,WALWrite,8,200
|
||||
1793226940,active,Lock,transactionid,43,200
|
||||
1793226940,active,Lock,tuple,7,200
|
||||
1793226940,idle,,,1,200
|
||||
1793226940,idle,Client,ClientRead,4,200
|
||||
1793226941,active,,,1,200
|
||||
1793226941,active,IO,WalSync,1,200
|
||||
1793226941,active,LWLock,WALWrite,7,200
|
||||
1793226941,active,Lock,transactionid,43,200
|
||||
1793226941,active,Lock,tuple,7,200
|
||||
1793226941,idle,Client,ClientRead,5,200
|
||||
1793226943,active,Client,ClientRead,1,200
|
||||
1793226943,active,IO,WalSync,1,200
|
||||
1793226943,active,LWLock,WALWrite,8,200
|
||||
1793226943,active,Lock,transactionid,39,200
|
||||
1793226943,active,Lock,tuple,10,200
|
||||
1793226943,idle,Client,ClientRead,4,200
|
||||
1793226943,idle,Lock,transactionid,1,200
|
||||
1793226944,active,IO,WalSync,1,200
|
||||
1793226944,active,LWLock,WALWrite,8,200
|
||||
1793226944,active,Lock,transactionid,40,200
|
||||
1793226944,active,Lock,tuple,7,200
|
||||
1793226944,idle,Client,ClientRead,8,200
|
||||
1793226945,active,,,3,200
|
||||
1793226945,active,IO,WalSync,1,200
|
||||
1793226945,active,LWLock,LockManager,1,200
|
||||
1793226945,active,LWLock,WALWrite,7,200
|
||||
1793226945,active,Lock,transactionid,39,200
|
||||
1793226945,active,Lock,tuple,9,200
|
||||
1793226945,idle,Client,ClientRead,4,200
|
||||
1793226946,active,,,2,200
|
||||
1793226946,active,LWLock,WALWrite,8,200
|
||||
1793226946,active,Lock,transactionid,44,200
|
||||
1793226946,active,Lock,tuple,6,200
|
||||
1793226946,idle,Client,ClientRead,4,200
|
||||
1793226947,active,,,1,200
|
||||
1793226947,active,Client,ClientRead,1,200
|
||||
1793226947,active,IO,WalSync,1,200
|
||||
1793226947,active,LWLock,WALWrite,8,200
|
||||
1793226947,active,Lock,transactionid,35,200
|
||||
1793226947,active,Lock,tuple,13,200
|
||||
1793226947,idle,Client,ClientRead,5,200
|
||||
1793226948,active,IO,WalSync,1,200
|
||||
1793226948,active,LWLock,WALWrite,6,200
|
||||
1793226948,active,Lock,transactionid,35,200
|
||||
1793226948,active,Lock,tuple,4,200
|
||||
1793226948,idle,,,3,200
|
||||
1793226948,idle,Client,ClientRead,15,200
|
||||
1793226949,active,,,2,200
|
||||
1793226949,active,IO,WalSync,1,200
|
||||
1793226949,active,LWLock,WALWrite,8,200
|
||||
1793226949,active,Lock,transactionid,33,200
|
||||
1793226949,active,Lock,tuple,15,200
|
||||
1793226949,idle,Client,ClientRead,5,200
|
||||
1793226951,active,,,1,200
|
||||
1793226951,active,Client,ClientRead,1,200
|
||||
1793226951,active,IO,WalSync,1,200
|
||||
1793226951,active,LWLock,WALWrite,8,200
|
||||
1793226951,active,Lock,transactionid,28,200
|
||||
1793226951,active,Lock,tuple,12,200
|
||||
1793226951,idle,Client,ClientRead,13,200
|
||||
1793226952,active,Client,ClientRead,2,200
|
||||
1793226952,active,IO,WalSync,1,200
|
||||
1793226952,active,LWLock,WALWrite,8,200
|
||||
1793226952,active,Lock,transactionid,35,200
|
||||
1793226952,active,Lock,tuple,14,200
|
||||
1793226952,idle,,,1,200
|
||||
1793226952,idle,Client,ClientRead,3,200
|
||||
1793226953,active,IO,WalSync,1,200
|
||||
1793226953,active,LWLock,WALWrite,9,200
|
||||
1793226953,active,Lock,transactionid,35,200
|
||||
1793226953,active,Lock,tuple,15,200
|
||||
1793226953,idle,Client,ClientRead,3,200
|
||||
1793226953,idle,Lock,transactionid,1,200
|
||||
1793226954,active,,,1,200
|
||||
1793226954,active,IO,WalSync,1,200
|
||||
1793226954,active,LWLock,LockManager,5,200
|
||||
1793226954,active,LWLock,WALWrite,8,200
|
||||
1793226954,active,Lock,transactionid,39,200
|
||||
1793226954,active,Lock,tuple,7,200
|
||||
1793226954,idle,Client,ClientRead,3,200
|
||||
1793226955,active,IO,WalSync,1,200
|
||||
1793226955,active,LWLock,WALWrite,9,200
|
||||
1793226955,active,Lock,transactionid,48,200
|
||||
1793226955,active,Lock,tuple,6,200
|
||||
1793226956,active,,,1,200
|
||||
1793226956,active,IO,WalSync,1,200
|
||||
1793226956,active,LWLock,LockManager,2,200
|
||||
1793226956,active,LWLock,WALWrite,7,200
|
||||
1793226956,active,Lock,transactionid,36,200
|
||||
1793226956,active,Lock,tuple,13,200
|
||||
1793226956,idle,,,1,200
|
||||
1793226956,idle,Client,ClientRead,3,200
|
||||
1793226958,active,,,1,200
|
||||
1793226958,active,IO,WalSync,1,200
|
||||
1793226958,active,LWLock,WALWrite,8,200
|
||||
1793226958,active,Lock,transactionid,34,200
|
||||
1793226958,active,Lock,tuple,15,200
|
||||
1793226958,idle,,,1,200
|
||||
1793226958,idle,Client,ClientRead,4,200
|
||||
1793226959,active,Client,ClientRead,1,200
|
||||
1793226959,active,IO,WalSync,1,200
|
||||
1793226959,active,LWLock,WALWrite,8,200
|
||||
1793226959,active,Lock,transactionid,37,200
|
||||
1793226959,active,Lock,tuple,7,200
|
||||
1793226959,idle,,,1,200
|
||||
1793226959,idle,Client,ClientRead,9,200
|
||||
1793226960,active,,,1,200
|
||||
1793226960,active,IO,WalSync,1,200
|
||||
1793226960,active,LWLock,WALWrite,8,200
|
||||
1793226960,active,Lock,transactionid,41,200
|
||||
1793226960,active,Lock,tuple,12,200
|
||||
1793226960,idle,Client,ClientRead,1,200
|
||||
1793226961,active,IO,WalSync,1,200
|
||||
1793226961,active,LWLock,WALWrite,8,200
|
||||
1793226961,active,Lock,transactionid,43,200
|
||||
1793226961,active,Lock,tuple,8,200
|
||||
1793226961,idle,Client,ClientRead,4,200
|
||||
1793226962,active,,,2,200
|
||||
1793226962,active,IO,WalSync,1,200
|
||||
1793226962,active,LWLock,LockManager,15,200
|
||||
1793226962,active,LWLock,WALWrite,8,200
|
||||
1793226962,active,Lock,transactionid,29,200
|
||||
1793226962,active,Lock,tuple,5,200
|
||||
1793226962,idle,Client,ClientRead,4,200
|
||||
1793226963,idle,Client,ClientRead,64,200
|
||||
|
Reference in New Issue
Block a user