144-Card Kunlunxin P800 SGLang PD Disaggregation in Production: 18ms Decode Stability, P:D Imbalance, and KV Transfer Bottlenecks¶
Moving domestic AI accelerators from single-node POCs into hundred-card Prefill/Decode (PD) disaggregated production serving raises two practical questions: first, can domestic chips sustain production-grade stability and smooth token latency on long-context MoE models with PD disaggregation and MTP speculative decoding? Second, once live traffic ramps up, where do the real bottlenecks, capacity imbalances, and telemetry traps appear?
We ran a read-only hardware and serving-engine telemetry audit across 18 nodes / 144 Kunlunxin P800 OAM (96 GiB HBM) cards running SGLang PD disaggregation for GLM-5.2 over six consecutive days (142–143 active hours across three weekdays and two weekend days, serving 440 ten-thousand / 4.4M HTTP 200 requests; all business names, domains, clusters, hostnames, and internal IPs are anonymized as Pool-A, Pool-B, and Pool-C).
One-Sentence Takeaway:
144Kunlunxin P800 cards running SGLang PD disaggregation forGLM-5.2already deliver production-grade decode stability (0hardware XID/ECC errors, Decode ITL P50 locked at18–21 msvia DP8+MTP), yet fixed1:1symmetric P:D ratios under90%–96%prefix-cache hit rates leave Prefill underutilized (11.5%–26.2%) while pushing Decode to76.8%–86.0%, and0.33–1.65 GB/scross-node KV transfer bandwidth drives weekday TTFT tails.
Four core quantitative findings from the 6-day audit:
- Rock-solid hardware reliability and smooth decode throughput: Across all
144cards, hardware counters recorded0XIDs,0uncorrected ECC errors, and0link-down events, with average temperatures of43.3°C(Prefill) and47.7°C(Decode). All three pools completed440.4ten-thousand (4.404M) HTTP 200 responses on23K–73Klong-context prompts with0KV retractions (num_retractions_sum = 0). Combining PD disaggregation + DP8/EP8 + MTP speculative decoding (3.27–3.39accepted tokens/step,82%–85%accept rate) kept ITL P50 tightly bounded at18.0–22.0 ms(~50 tok/sper user). - High cache hit rates magnify the
1:1P:D imbalance: All three pools launched with fixed1:1layouts (5P+5D,2P+2D,2P+2D). Once Prefix Caching plus Host HiCache (9.1M–12.2M tokens) pushed hit rates to90%–96%, Prefill only recomputed under10%of each prompt—drivingPool-A's weekday Decode 24h average up to86.0%while Prefill dropped to29.5%(10.7%on weekends, and1.9%–2.6%onPool-C). - Slow KV transfer and a single-node burst inflate weekday TTFT tails: Median cross-node KV transfer speed across the three pools sat at
0.33–1.65 GB/s(58–135 MBmedian payload), pushing weekday P95 KV transfer latency to2.16–4.20 s. Combined withchunked_prefill(P954.3–9.0 s) and single-pod queues up to47requests onPool-B's 2 Prefill pods (73Kaverage prompts), weekday TTFT P99 reached55–173 s. Timeline drilling also pinpointed a single 6-hour burst on Day 2 afternoon wherePool-A'sPrefill-4logged124rank-0 KV transfer failures (10× its peers at10–19), before returning to0.006%after recovery. - Three observability traps specific to domestic XPU + SGLang PD monitoring: Each 8-card pod emits a
9th aggregate XPU utilization series (forgettingdevid=~"[0-7]"inflates card counts by12.5%); Decodesglang:token_usageexceeds1.0(peaking at3.33=333%) under HiCache despite zero retractions, so never alert directly at> 90%; and Prefillsglang:num_queue_reqs/num_transfer_failed_reqs_totalemit across all 8tp_ranklabels, inflating naivesumqueries by 8×.
Methodology: All measurements come from read-only production Prometheus telemetry without injecting synthetic load onto live pools. XPU utilization uses
GPU×时间加权平均(card-time weighted average), and natural days followAsia/Shanghai00:00–24:00. Complete anonymized summary data is archived in pd_summary.json.
1. Fleet Topology and 144-Card Inventory¶
The production pool operates 18 eight-card Kunlunxin P800 OAM nodes (144 cards, 100% allocated), plus 1 idle unclassified 8-card node (Node-Idle). All 144 online cards serve the exact same model (GLM-5.2) and serving architecture (SGLang PD disaggregation) across three isolated pools:
| Anonymized Pool | P:D Topology & Cards | Parallelism & Cache Config (Observed) | Weekday Volume & Peak Throughput | Typical Prompt / Output & Cache Hit |
|---|---|---|---|---|
Pool-A (Primary Long-Context Pool) |
5P + 5D (80 cards) |
P: TP8/EP8 (1.16M KV slots + 12.2M HiCache)D: DP8/EP8 (195K/rank + MTP 3.27×) |
18.5–26.0 ×10k req/dayPeak 5.75 QPS / 2,154 gen tok/s |
Avg 23K–42K in / 327–385 tok outPC hit 70.1% → 95.4% |
Pool-B (Ultra-Long Context Pool) |
2P + 2D (32 cards) |
P: TP8/EP8 (1.16M KV slots + 9.1M HiCache)D: DP8/EP8 (195K/rank + MTP 3.35×) |
3.3–9.5 ×10k req/dayPeak 3.04 QPS / 1,359 gen tok/s |
Avg 43K–73K in / 432–656 tok outPC hit 83.9%–87.5% |
Pool-C (Tidal Long-Context Pool) |
2P + 2D (32 cards) |
P: TP8/EP8 (1.16M KV slots + 9.1M HiCache)D: DP8/EP8 (195K/rank + MTP 3.39×) |
3.2–6.1 ×10k weekday (~10k wknd)Peak 2.24 QPS / 1,501 gen tok/s |
Avg 58K–73K in / 318–474 tok outPC hit 90.3%–96.9% |
Hardware telemetry confirms clean physical operation across all 18 nodes:
- Memory and power: Each card provides 96 GiB HBM, with Prefill holding 90.9–93.3 GiB (92.5%–94.9%) and Decode holding 84.9–85.1 GiB (86.5%). 24h average board power is 108.5 W (peak 361 W) on Prefill and 149.3 W (peak 227 W) on Decode, with average temperatures of 43.3°C / 47.7°C (fleet max 66.0°C).
- Reliability and idle verification: 0 XIDs, 0 uncorrected ECC errors, and 0 link-down events over 7 days, completing 4,403,892 HTTP 200 responses (31 HTTP 503 and 29 HTTP 500). Checking low-traffic 04:00 snapshots confirms Pool-B/Pool-C Decode XPU utilization drops cleanly to 0.0%, ruling out fake-100% spin-wait loops.
2. Idle Prefill vs. Tight Decode Under 1:1 Ratios¶
Early PD rollouts commonly default to a symmetric 1:1 split (5P+5D, 2P+2D, 2P+2D). Plotting 7-day and peak-weekday utilization side by side exposes the structural mismatch immediately:

Five-Day Trend and Prefix Cache Amplification¶
Tracking Pool-A (5P+5D) across five consecutive natural days shows how warming the prefix cache steadily shifts load away from Prefill toward Decode:
| Natural Day | Prefill Avg Util | Decode Avg Util | Daily Reqs | PC Hit Rate | TTFT P50 / P90 / P99 | ITL P50 / P90 | KV Transfer Speed / P95 Latency |
|---|---|---|---|---|---|---|---|
| Day 1 (Wed) | 50.2% |
82.5% |
185,328 |
76.6% |
7.70 / 57.02 / 140.48 s |
19.0 / 31.7 ms |
0.37 GB/s / 2,358 ms |
| Day 2 (Thu) | 34.8% |
74.6% |
190,462 |
70.1% |
3.92 / 39.08 / 173.30 s |
21.5 / 31.2 ms |
0.33 GB/s / 4,198 ms |
| Day 3 (Fri Peak) | 29.5% |
86.0% |
259,881 |
91.7% |
2.14 / 10.14 / 83.15 s |
20.1 / 33.6 ms |
0.67 GB/s / 2,547 ms |
| Day 4 (Sat) | 12.4% |
78.0% |
168,892 |
94.8% |
1.71 / 6.06 / 10.94 s |
19.3 / 30.5 ms |
0.66 GB/s / 689 ms |
| Day 5 (Sun) | 10.7% |
74.2% |
151,064 |
94.9% |
1.63 / 5.86 / 10.94 s |
19.2 / 30.4 ms |
0.67 GB/s / 712 ms |
Three physical factors explain the gap:
1. Prefix Cache + Host HiCache absorbs 92%–95% of 41K-token prompts: Prefill only computes ~2,000–3,400 uncached delta tokens per request, multiplying effective Prefill capacity by >10×. Even as Day 3 requests jumped +40% over Day 1, Prefill utilization fell from 50.2% down to 29.5% (10.7% on Sunday, with 85.3% of minutes sitting at 0% idle over 24h).
2. Decode cannot skip autoregressive memory scans: Every request still decodes 330–650 tokens while scanning 30K–73K of KV cache per step, pushing Pool-A's Friday full-day Decode average to 86.0% (including overnight valleys, leaving daytime hours hugging the 93% P90 ceiling).
3. Cache-affinity routing skews Prefill: Inside Pool-A, the 5 Decode pods stay balanced within < 0.1% (23,288–23,309 requests each in 24h), whereas Prefill-0 absorbed 18,739 prompt tok/s—2.4× Prefill-4's 7,917.
Peak-Valley Mismatch Across Three Isolated Silos¶
Even though Pool-A, Pool-B, and Pool-C run identical GLM-5.2 weights and engine configs, splitting 144 cards into three physical silos traps stranded capacity:
- Pool-C (32 cards) drops to ~10k requests/day on weekends, leaving Prefill at 1.9%–2.6% (92.2% zero-utilization minutes) and Decode at 26%–28%;
- Meanwhile, Pool-B (32 cards) only has 2 Prefill pods to absorb 63K–73K prompts at 84% cache hit, queueing up to 45–47 requests per pod and spiking weekday TTFT P99 to 163.2 s;
- Simultaneously, Pool-A's 5 Decode nodes run near saturation at 86.0% daily average on Fridays.
3. TTFT vs. ITL Anatomy: Smooth Decode, Long-Tail First Token¶
Combining SGLang's sglang:per_stage_req_latency_seconds breakdown with the 5-day trend separates what already works well from what causes tail latency:

MTP and DP8 Lock ITL at 18–21 ms¶
Decode responsiveness is the standout result of this 144-card P800 rollout:
- Across both 2,154 gen tok/s weekday peaks and weekend troughs, Decode ITL P50 stays locked at 18.0–22.0 ms (P90 24.6–38.0 ms, delivering ~45–55 tok/s per stream);
- Three mechanisms work together: PD disaggregation isolates multi-second chunked_prefill bursts away from Decode (decode_waiting P50 is just 22 ms, P95 40–46 ms), Attention DP8 + MoE EP8 lets all 8 cards advance independent decode batches, and MTP speculative decoding sustains an 82%–85% accept rate (spec_accept_length = 3.27–3.39), emitting >3 tokens per forward step.
KV Transfer Bandwidth Limit and Single-Node Failure Burst¶
Breaking TTFT into stages shows that PD handshakes themselves are negligible (prefill_bootstrap P50 1.6–4.3 ms, decode_bootstrap 1.8–2.0 ms). Tail TTFT stems from three concrete causes:
- Chunked prefill (
chunked_prefill) and queuing on cache misses: OnPool-A, 24hchunked_prefilltakes4.90 sat P50 and9.03 sat P95; onPool-B, 2 Prefill pods under73Kprompts pusheddecode_transferredP95 to33.9 s. - Slow cross-node KV transfer (
0.33–1.65 GB/s): Median transfer payloads are58–135 MB, yet observed median transfer speed is only0.33–1.65 GB/s(Pool-A0.33–0.67 GB/s,Pool-B0.35–1.02 GB/s), pushing weekdaykv_transfer_latency_msP95 to2,155–4,198 ms. Healthy200G/400GRoCE/IB RDMA KV transfers typically sustain10–25+ GB/s, strongly pointing to TCP/standard-NIC fallback, missing zero-copy RDMA binding, or fragmented small-page transfers. - Localized Day 2 failure spike on
Prefill-4: Plotting 6-hourtp_rank=0num_transfer_failed_reqs_totalacross all 5Pool-APrefill pods reveals that on Day 2 afternoon (10:38–16:38),Prefill-4logged124failed transfers—6–12× its four peers (10–19), coinciding withPool-A's173.3 sTTFT P99 and4.20 sKV transfer P95 peak. After pod recovery on Day 3–Day 5, Prefill-4 returned to0.006%(11 / 197,710, matching peers at0.002%–0.004%), ruling out a permanently dead NIC while flagging transient link congestion or peer disconnects during peak load.

4. Three Observability Traps on Domestic XPU PD Fleets¶
Operating dashboards and alerts on domestic accelerators with SGLang PD surfaced three subtle metric traps worth fixing upfront:
- Trap 1: A
9th aggregate XPU series per 8-card pod:node_container_xpu_utilizationemitsdevid="0"through"7"(xpu_count="1") plus an extra9th aggregate series (devid="0,1,2,3,4,5,6,7", xpu_count="8"). Naivecount(...)oravg(...)queries withoutdevid=~"[0-7]"overcount 144 cards as 162 and skew averages. - Trap 2: Decode
sglang:token_usageexceeds100%(up to333%) with HiCache enabled: All three Decode pools logged peaksglang:token_usageof2.31–3.33(e.g.,num_used_tokens = 363,584vs. HBMmax_total_num_tokens = 195,648) whilenum_retractions_sumstayed strictly0. Because logical/host HiCache tokens enter the numerator while the denominator counts HBM slots, never alert onsglang:token_usage > 0.9alone—pair it withsglang:num_retracted_reqs > 0andevicted_tokens_total. - Trap 3: Multi-rank Prefill counters inflate naive
sumqueries by8×: OnTP8/EP8Prefill pods,num_queue_reqs,num_prefill_inflight_queue_reqs,num_bootstrap_failed_reqs_total, andnum_transfer_failed_reqs_totalrepeat identical values across all 8tp_ranklabels (whilee2e_request_latency_seconds_countandprompt_tokens_totalemit once). Always filter Prefill queue/failure queries withtp_rank="0", whereasDP8Decode pods maintain independent per-ranknum_running_reqsandgen_throughputthat should be summed viasum by (pod_name).
We also observed sglang:is_cuda_graph reporting 0 (and engine_startup_time / engine_load_weights_time at 0); verifying whether XPU Graph capture is actually enabled on Decode could further tighten ITL P99 (currently 78–92 ms).
5. Tuning Roadmap and Verification PromQL¶
Architecture and Ratio Recommendations¶
Without adding new hardware, four targeted changes directly address both Decode saturation and TTFT tail latency:
- Verify true RDMA KV transfer and audit
Prefill-4's host NIC: Inspect SGLang PD transport HCA bindings, RoCE queues, and chunking to lift KV transfer from0.33–1.65 GB/stoward native RDMA speeds—eliminating2–4 sP95 transfer delays—and review NIC drop/ECN/PFC counters onPrefill-4's host for Day 2 afternoon. - Rebalance
Pool-Afrom5P+5Dto4P+6D: Under92%–95%cache hit rates, 4 Prefill pods comfortably handle incremental prefill (ideally adding load-aware balancing soPrefill-0stops taking2.4×traffic), while Decode gains+20%capacity to bring Friday's86.0%daily average back into a healthy zone. - Consolidate
Pool-BandPool-Cinto a shared3P+5Dpool with priority/quota isolation: Both run identical GLM-5.2 weights and configs; sharing givesPool-B3 Prefill pods to absorb 73K bursts (eliminating47-request queues and163 sTTFT spikes), activatesPool-C's92%-idle weekend capacity, and adds25%Decode headroom. - Validate and onboard the idle 8-card node (
Node-Idle): Diagnose itsstatus=unknownstate and run hardware readiness checks so it can join Decode capacity or serve as warm failover.
Ready-to-Use PD Inspection PromQL¶
# 1. 各服务 P / D 角色 7 天 GPU×时间加权平均利用率(必须过滤 devid=~"[0-7]")
sum by (pod_namespace, container_name) (
sum_over_time(node_container_xpu_utilization{pod_namespace=~"<PD_NS_REGEX>", devid=~"[0-7]"}[7d])
) / sum by (pod_namespace, container_name) (
count_over_time(node_container_xpu_utilization{pod_namespace=~"<PD_NS_REGEX>", devid=~"[0-7]"}[7d])
)
# 2. 跨节点 KV Transfer 中位带宽(GB/s)与 P95 耗时(ms)
histogram_quantile(0.50, sum by (env_AI_BIZ_DOMAIN, le) (increase(sglang:kv_transfer_speed_gb_s_bucket{pod_namespace=~"<PD_NS_REGEX>"}[24h])))
histogram_quantile(0.95, sum by (env_AI_BIZ_DOMAIN, le) (increase(sglang:kv_transfer_latency_ms_bucket{pod_namespace=~"<PD_NS_REGEX>"}[24h])))
# 3. 逐阶段延迟 P95(一眼定位 TTFT 慢在 Prefill、KV 传输还是 Decode 等待)
histogram_quantile(0.95, sum by (env_AI_BIZ_DOMAIN, engine_type, stage, le) (increase(sglang:per_stage_req_latency_seconds_bucket{pod_namespace=~"<PD_NS_REGEX>"}[24h])))
# 4. 单 Pod KV 传输失败排查(Prefill 必须固定 tp_rank="0" 避免 8 倍放大)
sum by (pod_name) (increase(sglang:num_transfer_failed_reqs_total{pod_namespace=~"<PD_NS_REGEX>", engine_type="prefill", tp_rank="0"}[6h]))
Summary¶
Six days of production telemetry across 144 Kunlunxin P800 cards running SGLang PD disaggregation highlight three durable lessons:
- Hundred-card domestic accelerator PD disaggregation delivers production-ready decode fluency:
0hardware errors, 4.4M successful responses, and18–21 msITL P50 under DP8+MTP prove that long-context MoE interactivity works smoothly at scale. - Never freeze PD pools at
1:1, and always verify real KV transfer bandwidth: Once Prefix Caching and HiCache exceed 90%, Prefill load collapses while Decode stays memory-bandwidth bound—use real P/D utilization andper_stage_req_latency_secondsto tilt ratios toward Decode and verify RDMA transfer speed. - Align metric semantics before wiring alerts or capacity reviews: Filter out aggregate XPU series, pair HiCache
token_usagewithnum_retracted_reqs, and deduplicate Prefill rank counters viatp_rank="0"to prevent false alarms and skewed capacity math.
Sanitized Data & Related Reading¶
- Anonymized summary dataset: pd_summary.json
- Related reading:
- Domestic GPU/NPU Practices on Kubernetes (onboarding contracts, observability, and migration checklist)
- Why Low-Utilization GPU Inference Services Refuse to Scale Down: A Four-Dimensional Hardware Audit of 25 Production Services (production hardware telemetry auditing and platform enablement)
- Distributed and Prefill/Decode Disaggregated Inference (PD architecture, KV transfer, and routing fundamentals)
- AIBrix Real GPU Test: From Two-Node Inference to Eight-Node Fragmented GPUs (multi-node PD rollout and failure observation)