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,234 @@
|
||||
ts,state,wait_event_type,wait_event,backends,max_connections
|
||||
1793225851,idle,Client,ClientRead,64,200
|
||||
1793225852,active,,,2,200
|
||||
1793225852,active,IO,WalSync,1,200
|
||||
1793225852,active,LWLock,WALWrite,5,200
|
||||
1793225852,active,Lock,transactionid,25,200
|
||||
1793225852,active,Lock,tuple,25,200
|
||||
1793225852,idle,Client,ClientRead,6,200
|
||||
1793225853,active,,,4,200
|
||||
1793225853,active,IO,WalSync,1,200
|
||||
1793225853,active,LWLock,LockManager,2,200
|
||||
1793225853,active,LWLock,WALWrite,4,200
|
||||
1793225853,active,Lock,transactionid,36,200
|
||||
1793225853,active,Lock,tuple,11,200
|
||||
1793225853,idle,,,1,200
|
||||
1793225853,idle,Client,ClientRead,5,200
|
||||
1793225854,active,,,1,200
|
||||
1793225854,active,IO,WalSync,1,200
|
||||
1793225854,active,LWLock,WALWrite,8,200
|
||||
1793225854,active,Lock,transactionid,39,200
|
||||
1793225854,active,Lock,tuple,9,200
|
||||
1793225854,idle,,,2,200
|
||||
1793225854,idle,Client,ClientRead,4,200
|
||||
1793225855,active,,,3,200
|
||||
1793225855,active,LWLock,LockManager,11,200
|
||||
1793225855,active,LWLock,WALWrite,7,200
|
||||
1793225855,active,Lock,transactionid,32,200
|
||||
1793225855,active,Lock,tuple,8,200
|
||||
1793225855,idle,Client,ClientRead,3,200
|
||||
1793225857,active,IO,WalSync,1,200
|
||||
1793225857,active,LWLock,WALWrite,9,200
|
||||
1793225857,active,Lock,transactionid,47,200
|
||||
1793225857,active,Lock,tuple,5,200
|
||||
1793225857,idle,,,1,200
|
||||
1793225857,idle,Client,ClientRead,1,200
|
||||
1793225858,active,,,1,200
|
||||
1793225858,active,Client,ClientRead,1,200
|
||||
1793225858,active,IO,WalSync,1,200
|
||||
1793225858,active,LWLock,LockManager,1,200
|
||||
1793225858,active,LWLock,WALWrite,8,200
|
||||
1793225858,active,Lock,transactionid,44,200
|
||||
1793225858,active,Lock,tuple,8,200
|
||||
1793225859,active,,,3,200
|
||||
1793225859,active,IO,WalSync,1,200
|
||||
1793225859,active,LWLock,LockManager,3,200
|
||||
1793225859,active,LWLock,WALWrite,5,200
|
||||
1793225859,active,Lock,transactionid,42,200
|
||||
1793225859,active,Lock,tuple,5,200
|
||||
1793225859,idle,Client,ClientRead,4,200
|
||||
1793225859,idle,Lock,transactionid,1,200
|
||||
1793225860,active,IO,WalSync,1,200
|
||||
1793225860,active,LWLock,WALWrite,9,200
|
||||
1793225860,active,Lock,transactionid,45,200
|
||||
1793225860,active,Lock,tuple,9,200
|
||||
1793225861,active,,,2,200
|
||||
1793225861,active,Client,ClientRead,5,200
|
||||
1793225861,active,IO,WalSync,1,200
|
||||
1793225861,active,LWLock,WALWrite,7,200
|
||||
1793225861,active,Lock,transactionid,39,200
|
||||
1793225861,active,Lock,tuple,6,200
|
||||
1793225861,idle,LWLock,WALWrite,1,200
|
||||
1793225861,idle,Lock,transactionid,1,200
|
||||
1793225861,idle,Lock,tuple,2,200
|
||||
1793225862,active,,,1,200
|
||||
1793225862,active,IO,WalWrite,1,200
|
||||
1793225862,active,LWLock,WALWrite,8,200
|
||||
1793225862,active,Lock,transactionid,42,200
|
||||
1793225862,active,Lock,tuple,4,200
|
||||
1793225862,idle,,,1,200
|
||||
1793225862,idle,Client,ClientRead,7,200
|
||||
1793225863,active,,,2,200
|
||||
1793225863,active,Client,ClientRead,1,200
|
||||
1793225863,active,IO,WalSync,1,200
|
||||
1793225863,active,LWLock,LockManager,4,200
|
||||
1793225863,active,LWLock,WALWrite,6,200
|
||||
1793225863,active,Lock,transactionid,32,200
|
||||
1793225863,active,Lock,tuple,11,200
|
||||
1793225863,idle,Client,ClientRead,7,200
|
||||
1793225865,active,,,1,200
|
||||
1793225865,active,Client,ClientRead,1,200
|
||||
1793225865,active,IO,WalSync,1,200
|
||||
1793225865,active,LWLock,WALWrite,7,200
|
||||
1793225865,active,Lock,transactionid,38,200
|
||||
1793225865,active,Lock,tuple,7,200
|
||||
1793225865,idle,,,1,200
|
||||
1793225865,idle,Client,ClientRead,8,200
|
||||
1793225866,active,,,2,200
|
||||
1793225866,active,IO,WalSync,1,200
|
||||
1793225866,active,LWLock,LockManager,3,200
|
||||
1793225866,active,LWLock,WALWrite,6,200
|
||||
1793225866,active,Lock,transactionid,37,200
|
||||
1793225866,active,Lock,tuple,11,200
|
||||
1793225866,idle,,,1,200
|
||||
1793225866,idle,Client,ClientRead,3,200
|
||||
1793225867,active,,,1,200
|
||||
1793225867,active,Client,ClientRead,1,200
|
||||
1793225867,active,LWLock,WALWrite,8,200
|
||||
1793225867,active,Lock,transactionid,42,200
|
||||
1793225867,active,Lock,tuple,7,200
|
||||
1793225867,idle,Client,ClientRead,5,200
|
||||
1793225868,active,,,1,200
|
||||
1793225868,active,Client,ClientRead,1,200
|
||||
1793225868,active,IO,WalSync,1,200
|
||||
1793225868,active,LWLock,WALWrite,8,200
|
||||
1793225868,active,Lock,transactionid,32,200
|
||||
1793225868,active,Lock,tuple,18,200
|
||||
1793225868,idle,Client,ClientRead,3,200
|
||||
1793225869,active,,,2,200
|
||||
1793225869,active,IO,WalSync,1,200
|
||||
1793225869,active,LWLock,WALWrite,8,200
|
||||
1793225869,active,Lock,transactionid,42,200
|
||||
1793225869,active,Lock,tuple,9,200
|
||||
1793225869,idle,Client,ClientRead,2,200
|
||||
1793225870,active,,,4,200
|
||||
1793225870,active,IO,WalSync,1,200
|
||||
1793225870,active,LWLock,LockManager,12,200
|
||||
1793225870,active,LWLock,WALWrite,6,200
|
||||
1793225870,active,Lock,transactionid,32,200
|
||||
1793225870,active,Lock,tuple,6,200
|
||||
1793225870,idle,Client,ClientRead,3,200
|
||||
1793225871,active,,,1,200
|
||||
1793225871,active,IO,WalSync,1,200
|
||||
1793225871,active,LWLock,WALWrite,8,200
|
||||
1793225871,active,Lock,transactionid,45,200
|
||||
1793225871,active,Lock,tuple,6,200
|
||||
1793225871,idle,Client,ClientRead,3,200
|
||||
1793225873,active,,,1,200
|
||||
1793225873,active,LWLock,WALWrite,9,200
|
||||
1793225873,active,Lock,transactionid,40,200
|
||||
1793225873,active,Lock,tuple,11,200
|
||||
1793225873,idle,Client,ClientRead,3,200
|
||||
1793225874,active,IO,WalSync,1,200
|
||||
1793225874,active,LWLock,WALWrite,9,200
|
||||
1793225874,active,Lock,transactionid,42,200
|
||||
1793225874,active,Lock,tuple,7,200
|
||||
1793225874,idle,Client,ClientRead,3,200
|
||||
1793225874,idle,Lock,transactionid,1,200
|
||||
1793225874,idle,Lock,tuple,1,200
|
||||
1793225875,active,IO,WalSync,1,200
|
||||
1793225875,active,LWLock,WALWrite,9,200
|
||||
1793225875,active,Lock,transactionid,44,200
|
||||
1793225875,active,Lock,tuple,4,200
|
||||
1793225875,idle,Client,ClientRead,5,200
|
||||
1793225875,idle,Lock,tuple,1,200
|
||||
1793225876,active,,,1,200
|
||||
1793225876,active,IO,WalSync,1,200
|
||||
1793225876,active,LWLock,WALWrite,8,200
|
||||
1793225876,active,Lock,transactionid,39,200
|
||||
1793225876,active,Lock,tuple,8,200
|
||||
1793225876,idle,Client,ClientRead,7,200
|
||||
1793225877,active,,,3,200
|
||||
1793225877,active,Client,ClientRead,1,200
|
||||
1793225877,active,LWLock,WALWrite,5,200
|
||||
1793225877,active,Lock,transactionid,28,200
|
||||
1793225877,active,Lock,tuple,19,200
|
||||
1793225877,idle,,,1,200
|
||||
1793225877,idle,Client,ClientRead,7,200
|
||||
1793225878,active,Client,ClientRead,1,200
|
||||
1793225878,active,IO,WalSync,1,200
|
||||
1793225878,active,LWLock,WALWrite,9,200
|
||||
1793225878,active,Lock,transactionid,43,200
|
||||
1793225878,active,Lock,tuple,4,200
|
||||
1793225878,idle,Client,ClientRead,6,200
|
||||
1793225879,active,IO,WalSync,1,200
|
||||
1793225879,active,LWLock,WALWrite,9,200
|
||||
1793225879,active,Lock,transactionid,40,200
|
||||
1793225879,active,Lock,tuple,13,200
|
||||
1793225879,idle,Client,ClientRead,1,200
|
||||
1793225881,active,IO,WalSync,1,200
|
||||
1793225881,active,LWLock,WALWrite,9,200
|
||||
1793225881,active,Lock,transactionid,42,200
|
||||
1793225881,active,Lock,tuple,12,200
|
||||
1793225882,active,Client,ClientRead,1,200
|
||||
1793225882,active,IO,WalSync,1,200
|
||||
1793225882,active,LWLock,WALWrite,9,200
|
||||
1793225882,active,Lock,transactionid,42,200
|
||||
1793225882,active,Lock,tuple,7,200
|
||||
1793225882,idle,,,1,200
|
||||
1793225882,idle,Client,ClientRead,3,200
|
||||
1793225883,active,,,1,200
|
||||
1793225883,active,Client,ClientRead,1,200
|
||||
1793225883,active,LWLock,WALWrite,8,200
|
||||
1793225883,active,Lock,transactionid,30,200
|
||||
1793225883,active,Lock,tuple,22,200
|
||||
1793225883,idle,,,1,200
|
||||
1793225883,idle,Client,ClientRead,1,200
|
||||
1793225884,active,,,3,200
|
||||
1793225884,active,Client,ClientRead,1,200
|
||||
1793225884,active,LWLock,LockManager,6,200
|
||||
1793225884,active,LWLock,WALWrite,8,200
|
||||
1793225884,active,Lock,transactionid,30,200
|
||||
1793225884,active,Lock,tuple,11,200
|
||||
1793225884,idle,Client,ClientRead,5,200
|
||||
1793225885,active,,,2,200
|
||||
1793225885,active,IO,WalSync,1,200
|
||||
1793225885,active,LWLock,LockManager,2,200
|
||||
1793225885,active,LWLock,WALWrite,8,200
|
||||
1793225885,active,Lock,transactionid,40,200
|
||||
1793225885,active,Lock,tuple,8,200
|
||||
1793225885,idle,Client,ClientRead,3,200
|
||||
1793225886,active,,,1,200
|
||||
1793225886,active,IO,WalSync,1,200
|
||||
1793225886,active,LWLock,WALWrite,9,200
|
||||
1793225886,active,Lock,transactionid,41,200
|
||||
1793225886,active,Lock,tuple,4,200
|
||||
1793225886,active,Timeout,SpinDelay,1,200
|
||||
1793225886,idle,Client,ClientRead,7,200
|
||||
1793225887,active,,,1,200
|
||||
1793225887,active,Client,ClientRead,1,200
|
||||
1793225887,active,IO,WalSync,1,200
|
||||
1793225887,active,LWLock,WALWrite,8,200
|
||||
1793225887,active,Lock,transactionid,27,200
|
||||
1793225887,active,Lock,tuple,24,200
|
||||
1793225887,idle,,,1,200
|
||||
1793225887,idle,Client,ClientRead,1,200
|
||||
1793225889,active,,,1,200
|
||||
1793225889,active,IO,WalSync,1,200
|
||||
1793225889,active,LWLock,WALWrite,7,200
|
||||
1793225889,active,Lock,transactionid,41,200
|
||||
1793225889,active,Lock,tuple,11,200
|
||||
1793225889,idle,,,1,200
|
||||
1793225889,idle,Client,ClientRead,2,200
|
||||
1793225890,active,,,2,200
|
||||
1793225890,active,IO,WalSync,1,200
|
||||
1793225890,active,LWLock,WALWrite,7,200
|
||||
1793225890,active,Lock,transactionid,29,200
|
||||
1793225890,active,Lock,tuple,19,200
|
||||
1793225890,idle,Client,ClientRead,6,200
|
||||
1793225891,active,Client,ClientRead,1,200
|
||||
1793225891,active,LWLock,WALWrite,9,200
|
||||
1793225891,active,Lock,transactionid,33,200
|
||||
1793225891,active,Lock,tuple,13,200
|
||||
1793225891,idle,Client,ClientRead,8,200
|
||||
1793225892,idle,Client,ClientRead,64,200
|
||||
|
Reference in New Issue
Block a user