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
5.0 KiB
5.0 KiB
| 1 | ts | state | wait_event_type | wait_event | backends | max_connections |
|---|---|---|---|---|---|---|
| 2 | 1793225614 | idle | Client | ClientRead | 8 | 200 |
| 3 | 1793225615 | active | 2 | 200 | ||
| 4 | 1793225615 | active | Client | ClientRead | 2 | 200 |
| 5 | 1793225615 | active | IO | WalSync | 1 | 200 |
| 6 | 1793225615 | active | LWLock | WALWrite | 8 | 200 |
| 7 | 1793225615 | active | Lock | transactionid | 30 | 200 |
| 8 | 1793225615 | active | Lock | tuple | 10 | 200 |
| 9 | 1793225615 | idle | Client | ClientRead | 5 | 200 |
| 10 | 1793225617 | active | IO | WalSync | 1 | 200 |
| 11 | 1793225617 | active | LWLock | WALWrite | 1 | 200 |
| 12 | 1793225617 | idle | Client | ClientRead | 61 | 200 |
| 13 | 1793225617 | idle | LWLock | WALWrite | 1 | 200 |
| 14 | 1793225618 | active | 2 | 200 | ||
| 15 | 1793225618 | active | IO | WalSync | 1 | 200 |
| 16 | 1793225618 | idle | Client | ClientRead | 61 | 200 |
| 17 | 1793225619 | active | Client | ClientRead | 2 | 200 |
| 18 | 1793225619 | active | IO | WalSync | 1 | 200 |
| 19 | 1793225619 | idle | Client | ClientRead | 61 | 200 |
| 20 | 1793225620 | active | IO | WalSync | 1 | 200 |
| 21 | 1793225620 | active | LWLock | WALWrite | 3 | 200 |
| 22 | 1793225620 | idle | 1 | 200 | ||
| 23 | 1793225620 | idle | Client | ClientRead | 59 | 200 |
| 24 | 1793225621 | idle | Client | ClientRead | 64 | 200 |
| 25 | 1793225622 | active | Client | ClientRead | 1 | 200 |
| 26 | 1793225622 | active | IO | WalSync | 1 | 200 |
| 27 | 1793225622 | active | LWLock | WALWrite | 2 | 200 |
| 28 | 1793225622 | idle | Client | ClientRead | 60 | 200 |
| 29 | 1793225623 | active | 1 | 200 | ||
| 30 | 1793225623 | active | LWLock | ProcArray | 1 | 200 |
| 31 | 1793225623 | idle | 1 | 200 | ||
| 32 | 1793225623 | idle | Client | ClientRead | 61 | 200 |
| 33 | 1793225625 | active | 1 | 200 | ||
| 34 | 1793225625 | active | IO | WalSync | 1 | 200 |
| 35 | 1793225625 | active | LWLock | WALWrite | 5 | 200 |
| 36 | 1793225625 | idle | 2 | 200 | ||
| 37 | 1793225625 | idle | Client | ClientRead | 55 | 200 |
| 38 | 1793225626 | active | 2 | 200 | ||
| 39 | 1793225626 | idle | 1 | 200 | ||
| 40 | 1793225626 | idle | Client | ClientRead | 61 | 200 |
| 41 | 1793225627 | active | IO | WalSync | 1 | 200 |
| 42 | 1793225627 | active | LWLock | WALWrite | 4 | 200 |
| 43 | 1793225627 | idle | Client | ClientRead | 59 | 200 |
| 44 | 1793225628 | active | IO | WalSync | 1 | 200 |
| 45 | 1793225628 | active | LWLock | WALWrite | 6 | 200 |
| 46 | 1793225628 | idle | Client | ClientRead | 57 | 200 |
| 47 | 1793225629 | active | 1 | 200 | ||
| 48 | 1793225629 | active | IO | WalSync | 1 | 200 |
| 49 | 1793225629 | active | LWLock | WALWrite | 3 | 200 |
| 50 | 1793225629 | idle | Client | ClientRead | 59 | 200 |
| 51 | 1793225630 | active | IO | WalSync | 1 | 200 |
| 52 | 1793225630 | active | LWLock | WALWrite | 8 | 200 |
| 53 | 1793225630 | active | Lock | transactionid | 4 | 200 |
| 54 | 1793225630 | active | Lock | tuple | 1 | 200 |
| 55 | 1793225630 | idle | 1 | 200 | ||
| 56 | 1793225630 | idle | Client | ClientRead | 49 | 200 |
| 57 | 1793225631 | active | IO | WalSync | 1 | 200 |
| 58 | 1793225631 | active | LWLock | WALWrite | 4 | 200 |
| 59 | 1793225631 | idle | 1 | 200 | ||
| 60 | 1793225631 | idle | Client | ClientRead | 58 | 200 |
| 61 | 1793225633 | active | 1 | 200 | ||
| 62 | 1793225633 | active | IO | WalSync | 1 | 200 |
| 63 | 1793225633 | active | LWLock | WALWrite | 1 | 200 |
| 64 | 1793225633 | idle | 1 | 200 | ||
| 65 | 1793225633 | idle | Client | ClientRead | 60 | 200 |
| 66 | 1793225634 | active | Client | ClientRead | 1 | 200 |
| 67 | 1793225634 | active | IO | WalSync | 1 | 200 |
| 68 | 1793225634 | active | LWLock | WALWrite | 2 | 200 |
| 69 | 1793225634 | idle | 1 | 200 | ||
| 70 | 1793225634 | idle | Client | ClientRead | 59 | 200 |
| 71 | 1793225635 | active | 2 | 200 | ||
| 72 | 1793225635 | active | IO | WalSync | 1 | 200 |
| 73 | 1793225635 | active | LWLock | WALWrite | 6 | 200 |
| 74 | 1793225635 | active | Lock | transactionid | 17 | 200 |
| 75 | 1793225635 | active | Lock | tuple | 6 | 200 |
| 76 | 1793225635 | idle | Client | ClientRead | 32 | 200 |
| 77 | 1793225636 | idle | Client | ClientRead | 64 | 200 |
| 78 | 1793225637 | active | IO | WalSync | 1 | 200 |
| 79 | 1793225637 | active | LWLock | WALWrite | 4 | 200 |
| 80 | 1793225637 | idle | Client | ClientRead | 59 | 200 |
| 81 | 1793225638 | active | 1 | 200 | ||
| 82 | 1793225638 | active | Client | ClientRead | 3 | 200 |
| 83 | 1793225638 | idle | 1 | 200 | ||
| 84 | 1793225638 | idle | Client | ClientRead | 57 | 200 |
| 85 | 1793225638 | idle | LWLock | WALWrite | 2 | 200 |
| 86 | 1793225639 | active | 1 | 200 | ||
| 87 | 1793225639 | active | IO | WalSync | 1 | 200 |
| 88 | 1793225639 | active | LWLock | WALWrite | 1 | 200 |
| 89 | 1793225639 | idle | 1 | 200 | ||
| 90 | 1793225639 | idle | Client | ClientRead | 60 | 200 |
| 91 | 1793225641 | active | 1 | 200 | ||
| 92 | 1793225641 | idle | Client | ClientRead | 63 | 200 |
| 93 | 1793225642 | idle | Client | ClientRead | 64 | 200 |
| 94 | 1793225643 | active | 1 | 200 | ||
| 95 | 1793225643 | active | IO | WalSync | 1 | 200 |
| 96 | 1793225643 | active | LWLock | WALWrite | 1 | 200 |
| 97 | 1793225643 | idle | 1 | 200 | ||
| 98 | 1793225643 | idle | Client | ClientRead | 60 | 200 |
| 99 | 1793225644 | idle | Client | ClientRead | 64 | 200 |
| 100 | 1793225645 | active | 1 | 200 | ||
| 101 | 1793225645 | active | Client | ClientRead | 2 | 200 |
| 102 | 1793225645 | active | LWLock | WALWrite | 1 | 200 |
| 103 | 1793225645 | active | Lock | transactionid | 1 | 200 |
| 104 | 1793225645 | idle | 2 | 200 | ||
| 105 | 1793225645 | idle | Client | ClientRead | 57 | 200 |
| 106 | 1793225646 | active | IO | WalSync | 1 | 200 |
| 107 | 1793225646 | active | LWLock | WALWrite | 9 | 200 |
| 108 | 1793225646 | active | Lock | transactionid | 47 | 200 |
| 109 | 1793225646 | active | Lock | tuple | 6 | 200 |
| 110 | 1793225646 | idle | Client | ClientRead | 1 | 200 |
| 111 | 1793225647 | active | 2 | 200 | ||
| 112 | 1793225647 | idle | 1 | 200 | ||
| 113 | 1793225647 | idle | Client | ClientRead | 61 | 200 |
| 114 | 1793225649 | active | 1 | 200 | ||
| 115 | 1793225649 | active | IO | WalSync | 1 | 200 |
| 116 | 1793225649 | active | LWLock | WALWrite | 4 | 200 |
| 117 | 1793225649 | active | Lock | transactionid | 3 | 200 |
| 118 | 1793225649 | idle | Client | ClientRead | 55 | 200 |
| 119 | 1793225650 | active | 2 | 200 | ||
| 120 | 1793225650 | active | IO | WalSync | 1 | 200 |
| 121 | 1793225650 | active | LWLock | WALWrite | 2 | 200 |
| 122 | 1793225650 | idle | Client | ClientRead | 59 | 200 |
| 123 | 1793225651 | active | IO | WalSync | 1 | 200 |
| 124 | 1793225651 | active | LWLock | BufferContent | 1 | 200 |
| 125 | 1793225651 | active | LWLock | WALWrite | 2 | 200 |
| 126 | 1793225651 | active | Lock | transactionid | 2 | 200 |
| 127 | 1793225651 | idle | 2 | 200 | ||
| 128 | 1793225651 | idle | Client | ClientRead | 56 | 200 |
| 129 | 1793225652 | active | Client | ClientRead | 1 | 200 |
| 130 | 1793225652 | active | IO | WalSync | 1 | 200 |
| 131 | 1793225652 | active | LWLock | WALWrite | 7 | 200 |
| 132 | 1793225652 | active | Lock | transactionid | 1 | 200 |
| 133 | 1793225652 | idle | 1 | 200 | ||
| 134 | 1793225652 | idle | Client | ClientRead | 53 | 200 |
| 135 | 1793225653 | active | 1 | 200 | ||
| 136 | 1793225653 | active | IO | WalSync | 1 | 200 |
| 137 | 1793225653 | active | LWLock | WALWrite | 1 | 200 |
| 138 | 1793225653 | idle | Client | ClientRead | 61 | 200 |
| 139 | 1793225654 | idle | Client | ClientRead | 64 | 200 |
| 140 | 1793225656 | idle | Client | ClientRead | 64 | 200 |