forked from mtusi2026/mtusi2026lab3
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.3 KiB
5.3 KiB
| 1 | variant | config | replicas | cpus | memory_mb | workers | pool | maxconn | api_cpuset | rate | repeat | started | db_mb | messages | k6_exit | saturated | requests | rps | ok_rps | failed_ratio | dropped_iterations | p50_ms | p95_ms | p99_ms | p95_post_ms | p95_get_ms | cpu_api | cpu_postgres | cpu_lb | cpu_valkey | cpu_k6 | mem_api_mb | mem_postgres_mb | mem_k6_mb | pg_backends_max | pg_active_avg | pg_active_max | pg_idle_avg | pg_idle_tx_avg | pg_lock_avg | pg_lock_max | pg_lwlock_avg | pg_io_avg | lb_scur_max | lb_qcur_max | lb_qtime_max_ms | lb_rtime_avg_ms | cpu_vm | cpu_other | gap_s | wall_s | disturbed |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2 | before | 8x1 | 8 | 1.0 | 512 | 1 | 8 | 32 | 7-14 | 3600 | 1 | 2026-10-29T01:07:32 | 7.7 | 0 | 0 | False | 107865 | 3595.5 | 3595.5 | 0 | 139 | 2.32 | 35.71 | 110.59 | 37.02 | 28.73 | 462.6 | 136.97 | 35.01 | 8.89 | 63.33 | 131.9 | 327.6 | 295.5 | 64 | 9.27 | 57 | 51.58 | 3.15 | 6.15 | 49 | 1.77 | 0.62 | 301 | 45 | 3 | 6.45 | 759.6 | 52.8 | 5.2 | 41.8 | False |
| 3 | before | 8x1 | 8 | 1.0 | 512 | 1 | 8 | 32 | 7-14 | 5400 | 1 | 2026-10-29T01:09:22 | 125.6 | 246718 | 0 | True | 127557 | 4251.9 | 4251.9 | 0 | 34444 | 227.18 | 295.93 | 348.61 | 291.91 | 306.22 | 481.98 | 179.77 | 40.67 | 9.75 | 75.16 | 137.2 | 485.6 | 655.9 | 64 | 49.96 | 59 | 6.73 | 7.31 | 46.65 | 53 | 1.62 | 0.58 | 1000 | 744 | 211 | 59.66 | 852.6 | 65.3 | 6.2 | 41.9 | False |
| 4 | before | 8x1 | 8 | 1.0 | 512 | 1 | 8 | 32 | 7-14 | 8100 | 1 | 2026-10-29T01:12:47 | 310.0 | 636675 | 0 | True | 120041 | 4001.37 | 4001.37 | 0 | 122962 | 241.68 | 322.81 | 375.04 | 318.33 | 334.98 | 473.22 | 180.12 | 40.31 | 10.28 | 69.69 | 132.8 | 565.7 | 653.1 | 64 | 52.15 | 62 | 4.58 | 7.27 | 48.46 | 54 | 1.88 | 0.69 | 1000 | 744 | 224 | 64.59 | 871.0 | 97.4 | 4.0 | 42.0 | False |
| 5 | after | 8x1 | 8 | 1.0 | 512 | 1 | 8 | 32 | 7-14 | 3600 | 1 | 2026-10-29T01:13:45 | 368.9 | 762192 | 0 | False | 108003 | 3600.1 | 3600.1 | 0 | 0 | 1.8 | 5.35 | 22.66 | 5.82 | 4.34 | 391.42 | 101.87 | 33.83 | 8.67 | 58.2 | 128.0 | 548.7 | 281.8 | 64 | 7.54 | 63 | 56.46 | 0 | 3.38 | 53 | 2.65 | 0.65 | 72 | 0 | 0 | 1.93 | 643.5 | 49.5 | 4.0 | 41.8 | False |
| 6 | after | 8x1 | 8 | 1.0 | 512 | 1 | 8 | 32 | 7-14 | 5400 | 1 | 2026-10-29T01:17:42 | 627.2 | 1307671 | 0 | True | 134827 | 4494.23 | 4494.23 | 0 | 27174 | 215.94 | 273.17 | 308.57 | 267.68 | 286.63 | 449.0 | 174.71 | 42.33 | 10.94 | 75.22 | 136.0 | 589.2 | 667.0 | 64 | 57.23 | 64 | 6.77 | 0 | 46.38 | 54 | 8.62 | 0.73 | 999 | 743 | 187 | 56.97 | 857.6 | 105.4 | 4.0 | 41.8 | True |
| 7 | after | 8x1 | 8 | 1.0 | 512 | 1 | 8 | 32 | 7-14 | 8100 | 1 | 2026-10-29T01:22:36 | 893.8 | 1870885 | 0 | True | 138550 | 4618.33 | 4618.33 | 0 | 104453 | 209.16 | 274.92 | 333.61 | 268.9 | 287.72 | 439.06 | 169.06 | 42.6 | 10.71 | 78.58 | 131.2 | 598.3 | 666.2 | 64 | 57.81 | 63 | 6.19 | 0 | 46.31 | 52 | 9.15 | 0.85 | 1000 | 744 | 197 | 54.41 | 876.1 | 136.1 | 4.0 | 41.9 | True |
| 8 | before | 8x1 | 8 | 1.0 | 512 | 1 | 8 | 32 | 7-14 | 3600 | 2 | 2026-10-29T01:25:56 | 1072.2 | 2248478 | 0 | False | 107895 | 3596.5 | 3596.5 | 0 | 102 | 2.58 | 64.47 | 121.74 | 61.3 | 79.1 | 457.08 | 146.27 | 36.96 | 9.93 | 66.78 | 133.5 | 602.4 | 267.3 | 64 | 18.46 | 55 | 40.58 | 4.81 | 15.85 | 50 | 1.15 | 0.58 | 232 | 0 | 7 | 8.72 | 799.0 | 82.0 | 4.0 | 41.7 | False |
| 9 | before | 8x1 | 8 | 1.0 | 512 | 1 | 8 | 32 | 7-14 | 5400 | 2 | 2026-10-29T01:26:43 | 1127.1 | 2361080 | 0 | True | 121607 | 4053.57 | 4053.57 | 0 | 40392 | 238.28 | 310.74 | 368.85 | 307.06 | 319.55 | 456.26 | 176.22 | 38.64 | 9.42 | 78.27 | 134.7 | 629.1 | 654.2 | 64 | 49.85 | 59 | 7.12 | 7.04 | 45.73 | 54 | 2.27 | 0.54 | 1000 | 744 | 227 | 64.76 | 851.7 | 92.9 | 4.0 | 41.9 | False |
| 10 | before | 8x1 | 8 | 1.0 | 512 | 1 | 8 | 32 | 7-14 | 8100 | 2 | 2026-10-29T01:27:30 | 1188.2 | 2493711 | 0 | True | 123124 | 4104.13 | 4104.13 | 0 | 119877 | 236.34 | 310.95 | 364.29 | 307.53 | 320.11 | 475.43 | 177.99 | 39.41 | 9.52 | 68.62 | 136.2 | 635.4 | 659.3 | 64 | 50.89 | 64 | 6.7 | 6.41 | 47.11 | 55 | 2.11 | 0.52 | 1000 | 744 | 214 | 61.72 | 849.8 | 78.8 | 5.6 | 42.0 | False |
| 11 | after | 8x1 | 8 | 1.0 | 512 | 1 | 8 | 32 | 7-14 | 3600 | 2 | 2026-10-29T01:28:28 | 1250.5 | 2626960 | 0 | False | 108002 | 3600.07 | 3600.07 | 0 | 0 | 1.72 | 3.7 | 12.62 | 3.72 | 3.61 | 397.62 | 101.85 | 33.18 | 8.55 | 58.82 | 118.1 | 625.5 | 280.1 | 64 | 3.62 | 8 | 60.38 | 0 | 0.15 | 3 | 1.85 | 0.81 | 28 | 0 | 0 | 1.79 | 615.0 | 15.0 | 5.5 | 41.8 | False |
| 12 | after | 8x1 | 8 | 1.0 | 512 | 1 | 8 | 32 | 7-14 | 5400 | 2 | 2026-10-29T01:29:15 | 1306.1 | 2738712 | 0 | True | 146827 | 4894.23 | 4894.23 | 0 | 15174 | 197.85 | 246.02 | 278.32 | 241.53 | 255.77 | 484.61 | 178.68 | 45.91 | 11.34 | 75.67 | 136.9 | 661.0 | 660.8 | 64 | 57.38 | 63 | 6.62 | 0 | 47.04 | 56 | 7.85 | 0.88 | 1000 | 744 | 179 | 53.14 | 867.6 | 71.4 | 4.0 | 41.9 | False |
| 13 | after | 8x1 | 8 | 1.0 | 512 | 1 | 8 | 32 | 7-14 | 8100 | 2 | 2026-10-29T01:30:03 | 1380.8 | 2896760 | 0 | True | 145221 | 4840.7 | 4840.7 | 0 | 97781 | 201.69 | 253.52 | 286.71 | 249.03 | 263.92 | 462.08 | 173.54 | 44.53 | 10.79 | 75.22 | 124.9 | 659.9 | 657.7 | 64 | 56.12 | 63 | 7.88 | 0 | 45.73 | 53 | 8.08 | 0.96 | 1000 | 744 | 177 | 52.38 | 865.7 | 99.5 | 4.0 | 42.0 | False |
| 14 | before | 8x1 | 8 | 1.0 | 512 | 1 | 8 | 32 | 7-14 | 3600 | 3 | 2026-10-29T01:31:01 | 1454.5 | 3055221 | 0 | False | 107037 | 3567.9 | 3567.9 | 0 | 961 | 2.39 | 142.52 | 229.57 | 137.38 | 161.07 | 441.95 | 135.4 | 35.25 | 9.03 | 61.38 | 121.2 | 632.6 | 395.1 | 64 | 15.69 | 55 | 43.81 | 4.5 | 12.81 | 52 | 1.5 | 0.58 | 653 | 397 | 112 | 13.34 | 756.7 | 73.7 | 5.5 | 41.8 | False |
| 15 | before | 8x1 | 8 | 1.0 | 512 | 1 | 8 | 32 | 7-14 | 5400 | 3 | 2026-10-29T01:31:48 | 1507.6 | 3167779 | 0 | True | 131875 | 4395.83 | 4395.83 | 0 | 30125 | 218.92 | 287.65 | 339.51 | 284.62 | 296.18 | 474.76 | 177.86 | 41.71 | 9.94 | 65.35 | 137.5 | 653.5 | 654.3 | 64 | 54 | 62 | 3.88 | 6.12 | 49 | 54 | 2.85 | 0.65 | 1000 | 744 | 194 | 57.87 | 852.2 | 82.6 | 5.7 | 42.0 | False |
| 16 | before | 8x1 | 8 | 1.0 | 512 | 1 | 8 | 32 | 7-14 | 8100 | 3 | 2026-10-29T01:32:36 | 1571.7 | 3306800 | 0 | True | 133446 | 4448.2 | 4448.2 | 0 | 109555 | 217.23 | 285.37 | 337.77 | 283.42 | 292.02 | 495.39 | 177.45 | 40.84 | 9.81 | 68.9 | 125.2 | 660.3 | 672.8 | 64 | 49.73 | 60 | 6.65 | 7.62 | 46.62 | 56 | 1.08 | 0.5 | 1000 | 744 | 199 | 58.21 | 852.8 | 60.4 | 4.0 | 41.9 | False |
| 17 | after | 8x1 | 8 | 1.0 | 512 | 1 | 8 | 32 | 7-14 | 3600 | 3 | 2026-10-29T01:34:46 | 1639.3 | 3451957 | 0 | False | 108002 | 3600.07 | 3600.07 | 0 | 0 | 1.61 | 2.8 | 8.31 | 2.79 | 2.82 | 364.69 | 96.28 | 32.54 | 8.43 | 54.6 | 124.7 | 324.7 | 282.0 | 64 | 2.73 | 8 | 61.27 | 0 | 0.15 | 2 | 1.42 | 0.5 | 45 | 0 | 0 | 1.72 | 560.9 | 4.4 | 5.3 | 41.7 | False |
| 18 | after | 8x1 | 8 | 1.0 | 512 | 1 | 8 | 32 | 7-14 | 5400 | 3 | 2026-10-29T01:35:33 | 1694.9 | 3564745 | 0 | True | 153110 | 5103.67 | 5103.67 | 0 | 8891 | 183.89 | 239.24 | 272.47 | 235.17 | 250.39 | 478.56 | 180.31 | 47.77 | 11.62 | 83.95 | 135.9 | 423.7 | 638.0 | 64 | 56.08 | 64 | 7.92 | 0 | 45.65 | 54 | 8.54 | 0.88 | 997 | 741 | 174 | 50.59 | 874.4 | 72.2 | 5.3 | 41.8 | False |
| 19 | after | 8x1 | 8 | 1.0 | 512 | 1 | 8 | 32 | 7-14 | 8100 | 3 | 2026-10-29T01:36:20 | 1772.8 | 3729800 | 0 | True | 151365 | 5045.5 | 5045.5 | 0 | 91635 | 193.47 | 242.2 | 271.22 | 236.99 | 252.52 | 496.21 | 181.25 | 47.12 | 11.8 | 80.7 | 127.6 | 522.2 | 671.5 | 64 | 58.42 | 64 | 5.58 | 0 | 47.31 | 54 | 9.23 | 0.88 | 1000 | 744 | 176 | 51.17 | 869.0 | 51.9 | 4.0 | 41.9 | False |