{
  "kind": "合成对照输入与本地模型/解析结果，非设备实测",
  "article": "https://qifudev.com/article/ring-buffer-fractional-ms-exact-ceiling/",
  "tool": "https://qifudev.com/tools/ring-buffer-budget/",
  "model": "Bneeded=ceil(rate×stall/1000+burst)；Busable=N−1；margin=Busable−Bneeded",
  "inputs": {
    "rateBytes": "50000",
    "stallMs": "0.14",
    "burstBytes": "0",
    "capacityBytes": "8"
  },
  "outputs": {
    "requiredBytes": 7,
    "usableBytes": 7,
    "marginBytes": 0,
    "coverMs": 0.13999999999999999
  },
  "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
  }
}
