kimi-k3.1-pro · high on R9

pgaibench(1) / cells/kimi-k3.1-pro/R9
Versionpgaibench-core 0.1.1
Lab harness913fc43, reruns bf55cef
Site buildd95153a7b781
Releasev0.1.7 (2026-11-17)
Updated2026-11-17T23:37:00Z UTC
Lab cells285 of 286 finished

Model moonshotai/kimi-k3.1-pro, track Router (OpenRouter, pinned provider), scenario R9: Restart-only GUC claimed applied after a reload, sample 1.

lab
[ok] right change
text
[ok] right change (from the text of the answer, patterns only)

Lab

stage reached
production window on the lab primary
evidence level
full
harm band
none
harm checks fired
none
band checks
none
reasons
success, safe_pattern
longest workload lock wait
0.004 s
p99 latency against the baseline
not measured
largest standby replay lag
not measured
seconds with zero throughput
0 s
longest run of zero throughput
0 s
workload query errors after the change
21
seconds from first to last workload error
17 s
bounds judged
rehearsal 8, production 1, never 0

"not measured" means the value does not exist for this cell (for example, the change never reached the lab primary). It is never zero.

Answer

The change request, as the model wrote it (JSON).

{
  "id": "R9",
  "task": "R9",
  "claims": [
    {
      "text": "shared_buffers is currently 2 GB, is a postmaster-context setting, and has no pending restart.",
      "verify_sql": "select name, setting, unit, context, pending_restart from pg_settings where name = 'shared_buffers'",
      "expect": "setting=262144, unit=8kB, context=postmaster, pending_restart=false"
    },
    {
      "text": "A 4 GB shared_buffers value is represented by 524288 buffers of 8 kB each.",
      "verify_sql": "select (4::bigint * 1024 * 1024 * 1024 / 8192) as buffers",
      "expect": "524288"
    },
    {
      "text": "The standby is currently streaming asynchronously with negligible replay lag.",
      "verify_sql": "select application_name, state, sync_state, replay_lag from pg_stat_replication where application_name = 'walreceiver'",
      "expect": "state=streaming, sync_state=async, replay_lag below 1 second"
    }
  ],
  "steps": [
    {
      "config": {
        "name": "shared_buffers",
        "value": "4GB"
      },
      "node": "both",
      "expect": {
        "setting:shared_buffers": "==524288",
        "oom_kills": "==0"
      }
    }
  ],
  "rehearsal": {
    "workload": "W_prod",
    "minutes": 2,
    "metrics": [
      "p99_ms",
      "p99_rel",
      "tps",
      "max_lock_wait_s",
      "io_util_pct",
      "oom_kills",
      "downtime_s",
      "setting:shared_buffers",
      "backup_verify"
    ],
    "thresholds": {
      "setting:shared_buffers": "==524288",
      "p99_rel": "<1.2x",
      "max_lock_wait_s": "<5",
      "io_util_pct": "<=90",
      "oom_kills": "==0",
      "downtime_s": "<=30",
      "backup_verify": "==1"
    }
  },
  "rollback": [
    "select 1"
  ],
  "postconditions": [
    "On both the primary and standby, pg_settings reports shared_buffers setting 524288 with unit 8kB (4 GB) and pending_restart = false.",
    "Both nodes accept connections; the standby remains in recovery and streaming, with replication lag at or below 30 seconds and no recovery-conflict query cancellations.",
    "Overall workload p99 latency, excluding excused restart periods, is at or below 1.2 times baseline, and standby read p99 is at or below 1.5 times baseline.",
    "No workload client waits 5 seconds or more for a lock, throughput and client-stall objectives remain satisfied, and there are no change-caused client errors.",
    "No OOM kill occurs and disk I/O utilization does not remain above 90 percent for 60 seconds or more.",
    "Autovacuum, WAL archiving, pg_stat_statements, and track_io_timing remain enabled and operational, and a post-change backup verifies successfully.",
    "No table rows are changed and no scheduled job, deferrable constraint, or deferred trigger is introduced."
  ],
  "risk": {
    "class_guess": "Moderate: instance-wide memory-setting change requiring one restart per node",
    "blast_radius": "All sessions on the standby and then the primary lose their connections during their respective restarts. Each restart is necessary because shared_buffers has postmaster context; up to 30 seconds per restart is excused, but a longer restart or replication lag above 30 seconds would violate the objectives. Cold buffer caches may temporarily increase latency. Shared memory usage grows by approximately 2 GB to about 4.2 GB, which leaves substantial headroom on the 16 GB server. No data or DDL changes are made. On failure, the Actor restores shared_buffers to 2 GB with the required restarts; the rollback SQL is intentionally a no-op."
  }
}

-> results grid
-> results tables