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,246 @@
|
||||
ts,state,wait_event_type,wait_event,backends,max_connections
|
||||
1793226145,idle,Client,ClientRead,64,200
|
||||
1793226146,active,,,2,200
|
||||
1793226146,active,Client,ClientRead,1,200
|
||||
1793226146,active,IO,WalSync,1,200
|
||||
1793226146,active,LWLock,LockManager,1,200
|
||||
1793226146,active,LWLock,WALWrite,7,200
|
||||
1793226146,active,Lock,transactionid,25,200
|
||||
1793226146,active,Lock,tuple,23,200
|
||||
1793226146,idle,Client,ClientRead,4,200
|
||||
1793226147,active,,,2,200
|
||||
1793226147,active,Client,ClientRead,4,200
|
||||
1793226147,active,IO,WalSync,1,200
|
||||
1793226147,active,LWLock,LockManager,3,200
|
||||
1793226147,active,LWLock,WALWrite,8,200
|
||||
1793226147,active,Lock,transactionid,37,200
|
||||
1793226147,active,Lock,tuple,6,200
|
||||
1793226147,idle,Lock,transactionid,1,200
|
||||
1793226147,idle,Lock,tuple,2,200
|
||||
1793226149,active,,,1,200
|
||||
1793226149,active,IO,WalSync,1,200
|
||||
1793226149,active,LWLock,WALWrite,9,200
|
||||
1793226149,active,Lock,transactionid,41,200
|
||||
1793226149,active,Lock,tuple,5,200
|
||||
1793226149,idle,Client,ClientRead,7,200
|
||||
1793226150,active,IO,WalSync,1,200
|
||||
1793226150,active,LWLock,WALWrite,9,200
|
||||
1793226150,active,Lock,transactionid,43,200
|
||||
1793226150,active,Lock,tuple,5,200
|
||||
1793226150,idle,,,1,200
|
||||
1793226150,idle,Client,ClientRead,5,200
|
||||
1793226151,active,,,1,200
|
||||
1793226151,active,IO,WalSync,1,200
|
||||
1793226151,active,LWLock,WALWrite,7,200
|
||||
1793226151,active,Lock,transactionid,39,200
|
||||
1793226151,active,Lock,tuple,5,200
|
||||
1793226151,idle,,,1,200
|
||||
1793226151,idle,Client,ClientRead,10,200
|
||||
1793226152,active,IO,WalSync,1,200
|
||||
1793226152,active,LWLock,WALWrite,9,200
|
||||
1793226152,active,Lock,transactionid,36,200
|
||||
1793226152,active,Lock,tuple,17,200
|
||||
1793226152,idle,Client,ClientRead,1,200
|
||||
1793226153,active,,,1,200
|
||||
1793226153,active,IO,WalSync,1,200
|
||||
1793226153,active,LWLock,WALWrite,7,200
|
||||
1793226153,active,Lock,transactionid,43,200
|
||||
1793226153,active,Lock,tuple,5,200
|
||||
1793226153,idle,Client,ClientRead,7,200
|
||||
1793226154,active,,,2,200
|
||||
1793226154,active,Client,ClientRead,1,200
|
||||
1793226154,active,IO,WalSync,1,200
|
||||
1793226154,active,LWLock,LockManager,4,200
|
||||
1793226154,active,LWLock,WALWrite,6,200
|
||||
1793226154,active,Lock,transactionid,31,200
|
||||
1793226154,active,Lock,tuple,11,200
|
||||
1793226154,idle,,,1,200
|
||||
1793226154,idle,Client,ClientRead,7,200
|
||||
1793226155,active,,,2,200
|
||||
1793226155,active,Client,ClientRead,1,200
|
||||
1793226155,active,IO,WalSync,1,200
|
||||
1793226155,active,LWLock,LockManager,1,200
|
||||
1793226155,active,LWLock,WALWrite,6,200
|
||||
1793226155,active,Lock,transactionid,36,200
|
||||
1793226155,active,Lock,tuple,12,200
|
||||
1793226155,idle,,,1,200
|
||||
1793226155,idle,Client,ClientRead,4,200
|
||||
1793226157,active,,,1,200
|
||||
1793226157,active,Client,ClientRead,1,200
|
||||
1793226157,active,IO,WalSync,1,200
|
||||
1793226157,active,LWLock,WALWrite,8,200
|
||||
1793226157,active,Lock,transactionid,42,200
|
||||
1793226157,active,Lock,tuple,7,200
|
||||
1793226157,idle,Client,ClientRead,4,200
|
||||
1793226158,active,Client,ClientRead,1,200
|
||||
1793226158,active,IO,WalSync,1,200
|
||||
1793226158,active,LWLock,WALWrite,8,200
|
||||
1793226158,active,Lock,transactionid,35,200
|
||||
1793226158,active,Lock,tuple,10,200
|
||||
1793226158,idle,,,2,200
|
||||
1793226158,idle,Client,ClientRead,7,200
|
||||
1793226159,active,,,1,200
|
||||
1793226159,active,IO,WalSync,1,200
|
||||
1793226159,active,LWLock,WALWrite,8,200
|
||||
1793226159,active,Lock,transactionid,37,200
|
||||
1793226159,active,Lock,tuple,11,200
|
||||
1793226159,idle,Client,ClientRead,6,200
|
||||
1793226160,active,,,1,200
|
||||
1793226160,active,IO,WalSync,1,200
|
||||
1793226160,active,LWLock,LockManager,1,200
|
||||
1793226160,active,LWLock,WALWrite,7,200
|
||||
1793226160,active,Lock,transactionid,36,200
|
||||
1793226160,active,Lock,tuple,14,200
|
||||
1793226160,idle,Client,ClientRead,4,200
|
||||
1793226161,active,,,1,200
|
||||
1793226161,active,Client,ClientRead,1,200
|
||||
1793226161,active,IO,WalSync,1,200
|
||||
1793226161,active,LWLock,LockManager,4,200
|
||||
1793226161,active,LWLock,WALWrite,7,200
|
||||
1793226161,active,Lock,transactionid,40,200
|
||||
1793226161,active,Lock,tuple,6,200
|
||||
1793226161,idle,Client,ClientRead,4,200
|
||||
1793226162,active,,,3,200
|
||||
1793226162,active,IO,WalSync,1,200
|
||||
1793226162,active,LWLock,WALWrite,7,200
|
||||
1793226162,active,Lock,transactionid,45,200
|
||||
1793226162,active,Lock,tuple,5,200
|
||||
1793226162,idle,Client,ClientRead,3,200
|
||||
1793226164,active,IO,WalSync,1,200
|
||||
1793226164,active,LWLock,WALWrite,9,200
|
||||
1793226164,active,Lock,transactionid,42,200
|
||||
1793226164,active,Lock,tuple,5,200
|
||||
1793226164,idle,,,1,200
|
||||
1793226164,idle,Client,ClientRead,6,200
|
||||
1793226165,active,,,1,200
|
||||
1793226165,active,Client,ClientRead,1,200
|
||||
1793226165,active,IO,WalSync,1,200
|
||||
1793226165,active,LWLock,LockManager,1,200
|
||||
1793226165,active,LWLock,WALWrite,8,200
|
||||
1793226165,active,Lock,transactionid,42,200
|
||||
1793226165,active,Lock,tuple,9,200
|
||||
1793226165,idle,Client,ClientRead,1,200
|
||||
1793226166,active,IO,WalWrite,1,200
|
||||
1793226166,active,LWLock,WALWrite,7,200
|
||||
1793226166,active,Lock,transactionid,41,200
|
||||
1793226166,active,Lock,tuple,7,200
|
||||
1793226166,idle,Client,ClientRead,7,200
|
||||
1793226166,idle,Lock,tuple,1,200
|
||||
1793226167,active,,,1,200
|
||||
1793226167,active,LWLock,WALWrite,8,200
|
||||
1793226167,active,Lock,transactionid,39,200
|
||||
1793226167,active,Lock,tuple,10,200
|
||||
1793226167,idle,,,1,200
|
||||
1793226167,idle,Client,ClientRead,5,200
|
||||
1793226168,active,,,2,200
|
||||
1793226168,active,IO,WalSync,1,200
|
||||
1793226168,active,LWLock,LockManager,1,200
|
||||
1793226168,active,LWLock,WALWrite,8,200
|
||||
1793226168,active,Lock,transactionid,25,200
|
||||
1793226168,active,Lock,tuple,17,200
|
||||
1793226168,idle,Client,ClientRead,10,200
|
||||
1793226169,active,Client,ClientRead,1,200
|
||||
1793226169,active,IO,WalSync,1,200
|
||||
1793226169,active,LWLock,WALWrite,9,200
|
||||
1793226169,active,Lock,transactionid,36,200
|
||||
1793226169,active,Lock,tuple,9,200
|
||||
1793226169,idle,,,1,200
|
||||
1793226169,idle,Client,ClientRead,6,200
|
||||
1793226169,idle,Lock,transactionid,1,200
|
||||
1793226170,active,,,1,200
|
||||
1793226170,active,IO,WalSync,1,200
|
||||
1793226170,active,LWLock,WALWrite,9,200
|
||||
1793226170,active,Lock,transactionid,39,200
|
||||
1793226170,active,Lock,tuple,9,200
|
||||
1793226170,idle,,,1,200
|
||||
1793226170,idle,Client,ClientRead,4,200
|
||||
1793226172,active,IO,WalSync,1,200
|
||||
1793226172,active,LWLock,WALWrite,9,200
|
||||
1793226172,active,Lock,transactionid,46,200
|
||||
1793226172,active,Lock,tuple,6,200
|
||||
1793226172,idle,,,1,200
|
||||
1793226172,idle,Client,ClientRead,1,200
|
||||
1793226173,active,,,1,200
|
||||
1793226173,active,LWLock,WALWrite,8,200
|
||||
1793226173,active,Lock,transactionid,30,200
|
||||
1793226173,active,Lock,tuple,11,200
|
||||
1793226173,idle,,,1,200
|
||||
1793226173,idle,Client,ClientRead,12,200
|
||||
1793226173,idle,Lock,tuple,1,200
|
||||
1793226174,active,,,3,200
|
||||
1793226174,active,LWLock,WALWrite,7,200
|
||||
1793226174,active,Lock,transactionid,39,200
|
||||
1793226174,active,Lock,tuple,12,200
|
||||
1793226174,idle,Client,ClientRead,3,200
|
||||
1793226175,active,,,2,200
|
||||
1793226175,active,LWLock,LockManager,11,200
|
||||
1793226175,active,LWLock,WALWrite,5,200
|
||||
1793226175,active,Lock,transactionid,26,200
|
||||
1793226175,active,Lock,tuple,14,200
|
||||
1793226175,idle,Client,ClientRead,6,200
|
||||
1793226176,active,,,1,200
|
||||
1793226176,active,Client,ClientRead,1,200
|
||||
1793226176,active,IO,WalSync,1,200
|
||||
1793226176,active,LWLock,WALWrite,8,200
|
||||
1793226176,active,Lock,transactionid,31,200
|
||||
1793226176,active,Lock,tuple,19,200
|
||||
1793226176,idle,Client,ClientRead,3,200
|
||||
1793226177,active,,,1,200
|
||||
1793226177,active,IO,WalSync,1,200
|
||||
1793226177,active,LWLock,WALWrite,8,200
|
||||
1793226177,active,Lock,transactionid,37,200
|
||||
1793226177,active,Lock,tuple,8,200
|
||||
1793226177,idle,Client,ClientRead,9,200
|
||||
1793226179,active,,,2,200
|
||||
1793226179,active,IO,WalSync,1,200
|
||||
1793226179,active,LWLock,LockManager,3,200
|
||||
1793226179,active,LWLock,WALWrite,6,200
|
||||
1793226179,active,Lock,transactionid,36,200
|
||||
1793226179,active,Lock,tuple,8,200
|
||||
1793226179,idle,Client,ClientRead,8,200
|
||||
1793226180,active,,,2,200
|
||||
1793226180,active,IO,WalSync,1,200
|
||||
1793226180,active,LWLock,LockManager,19,200
|
||||
1793226180,active,LWLock,WALWrite,8,200
|
||||
1793226180,active,Lock,transactionid,23,200
|
||||
1793226180,active,Lock,tuple,4,200
|
||||
1793226180,idle,,,1,200
|
||||
1793226180,idle,Client,ClientRead,6,200
|
||||
1793226181,active,IO,WalSync,1,200
|
||||
1793226181,active,LWLock,WALWrite,9,200
|
||||
1793226181,active,Lock,transactionid,35,200
|
||||
1793226181,active,Lock,tuple,13,200
|
||||
1793226181,idle,,,1,200
|
||||
1793226181,idle,Client,ClientRead,5,200
|
||||
1793226182,active,,,1,200
|
||||
1793226182,active,Client,ClientRead,3,200
|
||||
1793226182,active,IO,WalSync,1,200
|
||||
1793226182,active,LWLock,WALWrite,5,200
|
||||
1793226182,active,Lock,transactionid,35,200
|
||||
1793226182,active,Lock,tuple,12,200
|
||||
1793226182,idle,Client,ClientRead,5,200
|
||||
1793226182,idle,Lock,transactionid,1,200
|
||||
1793226182,idle,Lock,tuple,1,200
|
||||
1793226183,active,,,1,200
|
||||
1793226183,active,Client,ClientRead,1,200
|
||||
1793226183,active,IO,WalSync,1,200
|
||||
1793226183,active,LWLock,WALWrite,6,200
|
||||
1793226183,active,Lock,transactionid,29,200
|
||||
1793226183,active,Lock,tuple,12,200
|
||||
1793226183,idle,,,1,200
|
||||
1793226183,idle,Client,ClientRead,13,200
|
||||
1793226184,active,,,4,200
|
||||
1793226184,active,IO,WalSync,1,200
|
||||
1793226184,active,LWLock,LockManager,2,200
|
||||
1793226184,active,LWLock,WALWrite,7,200
|
||||
1793226184,active,Lock,transactionid,39,200
|
||||
1793226184,active,Lock,tuple,8,200
|
||||
1793226184,idle,Client,ClientRead,3,200
|
||||
1793226185,active,,,1,200
|
||||
1793226185,active,Client,ClientRead,3,200
|
||||
1793226185,active,IO,WalSync,1,200
|
||||
1793226185,active,LWLock,WALWrite,7,200
|
||||
1793226185,active,Lock,transactionid,34,200
|
||||
1793226185,active,Lock,tuple,14,200
|
||||
1793226185,idle,Client,ClientRead,4,200
|
||||
1793226187,idle,Client,ClientRead,64,200
|
||||
|
Reference in New Issue
Block a user