{
  "kind": "合成对照输入与本地模型/解析结果，非设备实测",
  "article": "https://qifudev.com/article/ring-buffer-empty-slot-burst-margin/",
  "tool": "https://qifudev.com/tools/ring-buffer-budget/",
  "model": "Bneeded=ceil(rate×stall/1000+burst)；Busable=N−1；margin=Busable−Bneeded",
  "inputs": {
    "rateBytes": "10000",
    "stallMs": "20",
    "burstBytes": "50",
    "capacityBytes": "256"
  },
  "outputs": {
    "requiredBytes": 250,
    "usableBytes": 255,
    "marginBytes": 5,
    "coverMs": 20.5
  },
  "extra_checks": [],
  "warnings": [
    "采用预留一个空槽、每槽1 byte的约定，覆盖时间可为负数；未证明消费者长期服务率或并发内存序正确。"
  ],
  "limitation": "每槽1byte且留一空槽；数值文本最多128字符，精确十进制scale限±512且拒绝非零下溢。不模拟并发、DMA、长期服务率或帧头，负覆盖时间表示突发本身放不下。",
  "source": {
    "label": "Linux内核文档：环形缓冲区",
    "url": "https://cdn.kernel.org/doc/html/latest/core-api/circular-buffers.html"
  },
  "measured": {
    "device": null,
    "firmware": null,
    "instrument": null,
    "conditions": null,
    "raw_result": null,
    "verdict": null
  }
}
