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,238 @@
|
||||
ts,state,wait_event_type,wait_event,backends,max_connections
|
||||
1793226969,idle,Client,ClientRead,64,200
|
||||
1793226970,active,,,1,200
|
||||
1793226970,active,Client,ClientRead,1,200
|
||||
1793226970,active,LWLock,WALWrite,9,200
|
||||
1793226970,active,Lock,transactionid,46,200
|
||||
1793226970,active,Lock,tuple,1,200
|
||||
1793226970,idle,Client,ClientRead,6,200
|
||||
1793226971,active,IO,WalSync,1,200
|
||||
1793226971,active,LWLock,WALWrite,8,200
|
||||
1793226971,active,Lock,transactionid,32,200
|
||||
1793226971,active,Lock,tuple,16,200
|
||||
1793226971,idle,,,1,200
|
||||
1793226971,idle,Client,ClientRead,6,200
|
||||
1793226973,active,,,1,200
|
||||
1793226973,active,Client,ClientRead,1,200
|
||||
1793226973,active,LWLock,WALWrite,6,200
|
||||
1793226973,active,Lock,transactionid,34,200
|
||||
1793226973,active,Lock,tuple,17,200
|
||||
1793226973,idle,Client,ClientRead,5,200
|
||||
1793226974,active,,,1,200
|
||||
1793226974,active,IO,WalSync,1,200
|
||||
1793226974,active,LWLock,WALWrite,8,200
|
||||
1793226974,active,Lock,transactionid,35,200
|
||||
1793226974,active,Lock,tuple,9,200
|
||||
1793226974,idle,Client,ClientRead,10,200
|
||||
1793226975,active,,,3,200
|
||||
1793226975,active,LWLock,LockManager,1,200
|
||||
1793226975,active,LWLock,WALWrite,8,200
|
||||
1793226975,active,Lock,transactionid,43,200
|
||||
1793226975,active,Lock,tuple,8,200
|
||||
1793226975,idle,Client,ClientRead,1,200
|
||||
1793226976,active,,,1,200
|
||||
1793226976,active,Client,ClientRead,1,200
|
||||
1793226976,active,IO,WalSync,1,200
|
||||
1793226976,active,LWLock,LockManager,4,200
|
||||
1793226976,active,LWLock,WALWrite,7,200
|
||||
1793226976,active,Lock,transactionid,31,200
|
||||
1793226976,active,Lock,tuple,12,200
|
||||
1793226976,idle,Client,ClientRead,7,200
|
||||
1793226977,active,IO,WalSync,1,200
|
||||
1793226977,active,LWLock,WALWrite,8,200
|
||||
1793226977,active,Lock,transactionid,46,200
|
||||
1793226977,active,Lock,tuple,2,200
|
||||
1793226977,idle,,,2,200
|
||||
1793226977,idle,Client,ClientRead,5,200
|
||||
1793226978,active,,,2,200
|
||||
1793226978,active,IO,WalSync,1,200
|
||||
1793226978,active,LWLock,WALWrite,8,200
|
||||
1793226978,active,Lock,transactionid,33,200
|
||||
1793226978,active,Lock,tuple,16,200
|
||||
1793226978,idle,Client,ClientRead,4,200
|
||||
1793226980,active,,,3,200
|
||||
1793226980,active,Client,ClientRead,1,200
|
||||
1793226980,active,IO,WalSync,1,200
|
||||
1793226980,active,LWLock,WALWrite,6,200
|
||||
1793226980,active,Lock,transactionid,28,200
|
||||
1793226980,active,Lock,tuple,14,200
|
||||
1793226980,idle,,,1,200
|
||||
1793226980,idle,Client,ClientRead,10,200
|
||||
1793226981,active,Client,ClientRead,3,200
|
||||
1793226981,active,LWLock,WALWrite,12,200
|
||||
1793226981,active,Lock,transactionid,40,200
|
||||
1793226981,active,Lock,tuple,7,200
|
||||
1793226981,idle,Client,ClientRead,1,200
|
||||
1793226981,idle,Lock,tuple,1,200
|
||||
1793226982,active,,,1,200
|
||||
1793226982,active,IO,WalSync,1,200
|
||||
1793226982,active,LWLock,WALWrite,8,200
|
||||
1793226982,active,Lock,transactionid,42,200
|
||||
1793226982,active,Lock,tuple,2,200
|
||||
1793226982,idle,Client,ClientRead,10,200
|
||||
1793226983,active,,,4,200
|
||||
1793226983,active,LWLock,LockManager,5,200
|
||||
1793226983,active,LWLock,WALWrite,6,200
|
||||
1793226983,active,Lock,transactionid,33,200
|
||||
1793226983,active,Lock,tuple,13,200
|
||||
1793226983,idle,Client,ClientRead,3,200
|
||||
1793226984,active,IO,WalSync,1,200
|
||||
1793226984,active,LWLock,WALWrite,8,200
|
||||
1793226984,active,Lock,transactionid,42,200
|
||||
1793226984,active,Lock,tuple,9,200
|
||||
1793226984,idle,,,1,200
|
||||
1793226984,idle,Client,ClientRead,3,200
|
||||
1793226985,active,LWLock,WALWrite,9,200
|
||||
1793226985,active,Lock,transactionid,43,200
|
||||
1793226985,active,Lock,tuple,11,200
|
||||
1793226985,idle,Client,ClientRead,1,200
|
||||
1793226986,active,,,1,200
|
||||
1793226986,active,IO,WalWrite,1,200
|
||||
1793226986,active,LWLock,WALWrite,8,200
|
||||
1793226986,active,Lock,transactionid,42,200
|
||||
1793226986,active,Lock,tuple,7,200
|
||||
1793226986,idle,Client,ClientRead,5,200
|
||||
1793226988,active,IO,WalSync,1,200
|
||||
1793226988,active,LWLock,WALWrite,9,200
|
||||
1793226988,active,Lock,transactionid,42,200
|
||||
1793226988,active,Lock,tuple,5,200
|
||||
1793226988,idle,Client,ClientRead,6,200
|
||||
1793226988,idle,Lock,transactionid,1,200
|
||||
1793226989,active,IO,WalSync,1,200
|
||||
1793226989,active,LWLock,LockManager,3,200
|
||||
1793226989,active,LWLock,WALWrite,8,200
|
||||
1793226989,active,Lock,transactionid,43,200
|
||||
1793226989,active,Lock,tuple,6,200
|
||||
1793226989,idle,Client,ClientRead,3,200
|
||||
1793226990,active,,,2,200
|
||||
1793226990,active,Client,ClientRead,2,200
|
||||
1793226990,active,IO,WalSync,1,200
|
||||
1793226990,active,LWLock,WALWrite,9,200
|
||||
1793226990,active,Lock,transactionid,30,200
|
||||
1793226990,active,Lock,tuple,18,200
|
||||
1793226990,idle,Lock,transactionid,1,200
|
||||
1793226990,idle,Lock,tuple,1,200
|
||||
1793226991,active,,,2,200
|
||||
1793226991,active,IO,WalSync,1,200
|
||||
1793226991,active,LWLock,LockManager,6,200
|
||||
1793226991,active,LWLock,WALWrite,8,200
|
||||
1793226991,active,Lock,transactionid,32,200
|
||||
1793226991,active,Lock,tuple,9,200
|
||||
1793226991,idle,,,1,200
|
||||
1793226991,idle,Client,ClientRead,5,200
|
||||
1793226992,active,,,1,200
|
||||
1793226992,active,Client,ClientRead,4,200
|
||||
1793226992,active,IO,WalSync,1,200
|
||||
1793226992,active,LWLock,LockManager,2,200
|
||||
1793226992,active,LWLock,WALWrite,8,200
|
||||
1793226992,active,Lock,transactionid,31,200
|
||||
1793226992,active,Lock,tuple,13,200
|
||||
1793226992,idle,Client,ClientRead,3,200
|
||||
1793226992,idle,Lock,transactionid,1,200
|
||||
1793226993,active,,,1,200
|
||||
1793226993,active,Client,ClientRead,2,200
|
||||
1793226993,active,IO,WalSync,1,200
|
||||
1793226993,active,LWLock,WALWrite,10,200
|
||||
1793226993,active,Lock,transactionid,33,200
|
||||
1793226993,active,Lock,tuple,10,200
|
||||
1793226993,idle,,,1,200
|
||||
1793226993,idle,Client,ClientRead,1,200
|
||||
1793226993,idle,Lock,transactionid,2,200
|
||||
1793226993,idle,Lock,tuple,3,200
|
||||
1793226994,active,,,1,200
|
||||
1793226994,active,IO,WalSync,1,200
|
||||
1793226994,active,LWLock,LockManager,1,200
|
||||
1793226994,active,LWLock,WALWrite,6,200
|
||||
1793226994,active,Lock,transactionid,37,200
|
||||
1793226994,active,Lock,tuple,7,200
|
||||
1793226994,idle,,,1,200
|
||||
1793226994,idle,Client,ClientRead,10,200
|
||||
1793226996,active,,,1,200
|
||||
1793226996,active,Client,ClientRead,1,200
|
||||
1793226996,active,IO,WalSync,1,200
|
||||
1793226996,active,LWLock,WALWrite,8,200
|
||||
1793226996,active,Lock,transactionid,41,200
|
||||
1793226996,active,Lock,tuple,8,200
|
||||
1793226996,idle,Client,ClientRead,4,200
|
||||
1793226997,active,IO,WalSync,1,200
|
||||
1793226997,active,LWLock,WALWrite,9,200
|
||||
1793226997,active,Lock,transactionid,36,200
|
||||
1793226997,active,Lock,tuple,14,200
|
||||
1793226997,idle,Client,ClientRead,2,200
|
||||
1793226997,idle,Lock,transactionid,1,200
|
||||
1793226997,idle,Lock,tuple,1,200
|
||||
1793226998,active,Client,ClientRead,1,200
|
||||
1793226998,active,IO,WalSync,2,200
|
||||
1793226998,active,LWLock,LockManager,4,200
|
||||
1793226998,active,LWLock,WALWrite,7,200
|
||||
1793226998,active,Lock,transactionid,23,200
|
||||
1793226998,active,Lock,tuple,15,200
|
||||
1793226998,idle,,,1,200
|
||||
1793226998,idle,Client,ClientRead,10,200
|
||||
1793226998,idle,Lock,transactionid,1,200
|
||||
1793226999,active,,,1,200
|
||||
1793226999,active,IO,WalSync,1,200
|
||||
1793226999,active,LWLock,LockManager,8,200
|
||||
1793226999,active,LWLock,WALWrite,6,200
|
||||
1793226999,active,Lock,transactionid,28,200
|
||||
1793226999,active,Lock,tuple,14,200
|
||||
1793226999,idle,,,1,200
|
||||
1793226999,idle,Client,ClientRead,5,200
|
||||
1793227000,active,Client,ClientRead,1,200
|
||||
1793227000,active,IO,WalSync,1,200
|
||||
1793227000,active,LWLock,WALWrite,9,200
|
||||
1793227000,active,Lock,transactionid,27,200
|
||||
1793227000,active,Lock,tuple,7,200
|
||||
1793227000,idle,Client,ClientRead,19,200
|
||||
1793227001,active,,,2,200
|
||||
1793227001,active,IO,WalSync,1,200
|
||||
1793227001,active,LWLock,WALWrite,8,200
|
||||
1793227001,active,Lock,transactionid,34,200
|
||||
1793227001,active,Lock,tuple,16,200
|
||||
1793227001,idle,Client,ClientRead,3,200
|
||||
1793227003,active,IO,WalSync,1,200
|
||||
1793227003,active,LWLock,WALWrite,9,200
|
||||
1793227003,active,Lock,transactionid,37,200
|
||||
1793227003,active,Lock,tuple,9,200
|
||||
1793227003,idle,,,1,200
|
||||
1793227003,idle,Client,ClientRead,5,200
|
||||
1793227003,idle,Lock,tuple,2,200
|
||||
1793227004,active,IO,WalSync,1,200
|
||||
1793227004,active,LWLock,WALWrite,9,200
|
||||
1793227004,active,Lock,transactionid,46,200
|
||||
1793227004,active,Lock,tuple,8,200
|
||||
1793227005,active,,,2,200
|
||||
1793227005,active,LWLock,WALWrite,5,200
|
||||
1793227005,active,Lock,transactionid,43,200
|
||||
1793227005,active,Lock,tuple,11,200
|
||||
1793227005,idle,,,1,200
|
||||
1793227005,idle,Client,ClientRead,2,200
|
||||
1793227006,active,,,2,200
|
||||
1793227006,active,Client,ClientRead,1,200
|
||||
1793227006,active,IO,WalSync,1,200
|
||||
1793227006,active,LWLock,WALWrite,7,200
|
||||
1793227006,active,Lock,transactionid,45,200
|
||||
1793227006,active,Lock,tuple,5,200
|
||||
1793227006,idle,Client,ClientRead,3,200
|
||||
1793227007,active,,,3,200
|
||||
1793227007,active,IO,WalSync,1,200
|
||||
1793227007,active,LWLock,LockManager,1,200
|
||||
1793227007,active,LWLock,WALWrite,6,200
|
||||
1793227007,active,Lock,transactionid,36,200
|
||||
1793227007,active,Lock,tuple,10,200
|
||||
1793227007,idle,Client,ClientRead,7,200
|
||||
1793227008,active,Client,ClientRead,2,200
|
||||
1793227008,active,IO,WalSync,1,200
|
||||
1793227008,active,LWLock,WALWrite,8,200
|
||||
1793227008,active,Lock,transactionid,41,200
|
||||
1793227008,active,Lock,tuple,5,200
|
||||
1793227008,idle,Client,ClientRead,6,200
|
||||
1793227008,idle,LWLock,WALWrite,1,200
|
||||
1793227009,active,,,1,200
|
||||
1793227009,active,IO,WalSync,1,200
|
||||
1793227009,active,LWLock,LockManager,1,200
|
||||
1793227009,active,LWLock,WALWrite,8,200
|
||||
1793227009,active,Lock,transactionid,37,200
|
||||
1793227009,active,Lock,tuple,12,200
|
||||
1793227009,idle,Client,ClientRead,4,200
|
||||
1793227011,idle,Client,ClientRead,64,200
|
||||
|
Reference in New Issue
Block a user