Skip to content

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: 144 Kunlunxin P800 cards running SGLang PD disaggregation for GLM-5.2 already deliver production-grade decode stability (0 hardware XID/ECC errors, Decode ITL P50 locked at 18–21 ms via DP8+MTP), yet fixed 1:1 symmetric P:D ratios under 90%–96% prefix-cache hit rates leave Prefill underutilized (11.5%–26.2%) while pushing Decode to 76.8%–86.0%, and 0.33–1.65 GB/s cross-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 144 cards, hardware counters recorded 0 XIDs, 0 uncorrected ECC errors, and 0 link-down events, with average temperatures of 43.3°C (Prefill) and 47.7°C (Decode). All three pools completed 440.4 ten-thousand (4.404M) HTTP 200 responses on 23K–73K long-context prompts with 0 KV retractions (num_retractions_sum = 0). Combining PD disaggregation + DP8/EP8 + MTP speculative decoding (3.27–3.39 accepted tokens/step, 82%–85% accept rate) kept ITL P50 tightly bounded at 18.0–22.0 ms (~50 tok/s per user).
  • High cache hit rates magnify the 1:1 P:D imbalance: All three pools launched with fixed 1:1 layouts (5P+5D, 2P+2D, 2P+2D). Once Prefix Caching plus Host HiCache (9.1M–12.2M tokens) pushed hit rates to 90%–96%, Prefill only recomputed under 10% of each prompt—driving Pool-A's weekday Decode 24h average up to 86.0% while Prefill dropped to 29.5% (10.7% on weekends, and 1.9%–2.6% on Pool-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 MB median payload), pushing weekday P95 KV transfer latency to 2.16–4.20 s. Combined with chunked_prefill (P95 4.3–9.0 s) and single-pod queues up to 47 requests on Pool-B's 2 Prefill pods (73K average prompts), weekday TTFT P99 reached 55–173 s. Timeline drilling also pinpointed a single 6-hour burst on Day 2 afternoon where Pool-A's Prefill-4 logged 124 rank-0 KV transfer failures (10× its peers at 10–19), before returning to 0.006% after recovery.
  • Three observability traps specific to domestic XPU + SGLang PD monitoring: Each 8-card pod emits a 9th aggregate XPU utilization series (forgetting devid=~"[0-7]" inflates card counts by 12.5%); Decode sglang:token_usage exceeds 1.0 (peaking at 3.33 = 333%) under HiCache despite zero retractions, so never alert directly at > 90%; and Prefill sglang:num_queue_reqs / num_transfer_failed_reqs_total emit across all 8 tp_rank labels, inflating naive sum queries 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 follow Asia/Shanghai 00: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/day
Peak 5.75 QPS / 2,154 gen tok/s
Avg 23K–42K in / 327–385 tok out
PC 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/day
Peak 3.04 QPS / 1,359 gen tok/s
Avg 43K–73K in / 432–656 tok out
PC 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 out
PC 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:

144-card P800 PD utilization imbalance: Prefill 7-day averages sit at 11.5%-26.2% across Pool-A/B/C while Decode averages 45.2%-76.8% and hits 64.0%-86.0% on peak weekdays.

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:

Stage latency anatomy and 5-day cache evolution: left shows Pool-A 24h P50 vs P95 across six PD stages with chunked_prefill P95 at 9.03s and decode_transferred P95 at 2.11s; right shows Pool-A TTFT P90 dropping from 57.0s to 5.9s as Prefix Cache rises from 70% to 95%, while ITL P50 holds steady at 19-22ms.

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:

  1. Chunked prefill (chunked_prefill) and queuing on cache misses: On Pool-A, 24h chunked_prefill takes 4.90 s at P50 and 9.03 s at P95; on Pool-B, 2 Prefill pods under 73K prompts pushed decode_transferred P95 to 33.9 s.
  2. Slow cross-node KV transfer (0.33–1.65 GB/s): Median transfer payloads are 58–135 MB, yet observed median transfer speed is only 0.33–1.65 GB/s (Pool-A 0.33–0.67 GB/s, Pool-B 0.35–1.02 GB/s), pushing weekday kv_transfer_latency_ms P95 to 2,155–4,198 ms. Healthy 200G/400G RoCE/IB RDMA KV transfers typically sustain 10–25+ GB/s, strongly pointing to TCP/standard-NIC fallback, missing zero-copy RDMA binding, or fragmented small-page transfers.
  3. Localized Day 2 failure spike on Prefill-4: Plotting 6-hour tp_rank=0 num_transfer_failed_reqs_total across all 5 Pool-A Prefill pods reveals that on Day 2 afternoon (10:38–16:38), Prefill-4 logged 124 failed transfers—6–12× its four peers (10–19), coinciding with Pool-A's 173.3 s TTFT P99 and 4.20 s KV transfer P95 peak. After pod recovery on Day 3–Day 5, Prefill-4 returned to 0.006% (11 / 197,710, matching peers at 0.002%–0.004%), ruling out a permanently dead NIC while flagging transient link congestion or peer disconnects during peak load.

Single-node KV transfer failure outlier and 144-card pool rebalancing: left shows Pool-A Prefill-4 spiking to 124 rank-0 transfer failures in a single Day 2 6h window (10x peers) before dropping to 0.006% post-recovery; right compares current 1:1 silos against rebalanced 4P+6D and shared B+C 3P+5D layouts.


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:

  1. Trap 1: A 9th aggregate XPU series per 8-card pod: node_container_xpu_utilization emits devid="0" through "7" (xpu_count="1") plus an extra 9th aggregate series (devid="0,1,2,3,4,5,6,7", xpu_count="8"). Naive count(...) or avg(...) queries without devid=~"[0-7]" overcount 144 cards as 162 and skew averages.
  2. Trap 2: Decode sglang:token_usage exceeds 100% (up to 333%) with HiCache enabled: All three Decode pools logged peak sglang:token_usage of 2.31–3.33 (e.g., num_used_tokens = 363,584 vs. HBM max_total_num_tokens = 195,648) while num_retractions_sum stayed strictly 0. Because logical/host HiCache tokens enter the numerator while the denominator counts HBM slots, never alert on sglang:token_usage > 0.9 alone—pair it with sglang:num_retracted_reqs > 0 and evicted_tokens_total.
  3. Trap 3: Multi-rank Prefill counters inflate naive sum queries by 8×: On TP8/EP8 Prefill pods, num_queue_reqs, num_prefill_inflight_queue_reqs, num_bootstrap_failed_reqs_total, and num_transfer_failed_reqs_total repeat identical values across all 8 tp_rank labels (while e2e_request_latency_seconds_count and prompt_tokens_total emit once). Always filter Prefill queue/failure queries with tp_rank="0", whereas DP8 Decode pods maintain independent per-rank num_running_reqs and gen_throughput that should be summed via sum 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:

  1. 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 from 0.33–1.65 GB/s toward native RDMA speeds—eliminating 2–4 s P95 transfer delays—and review NIC drop/ECN/PFC counters on Prefill-4's host for Day 2 afternoon.
  2. Rebalance Pool-A from 5P+5D to 4P+6D: Under 92%–95% cache hit rates, 4 Prefill pods comfortably handle incremental prefill (ideally adding load-aware balancing so Prefill-0 stops taking 2.4× traffic), while Decode gains +20% capacity to bring Friday's 86.0% daily average back into a healthy zone.
  3. Consolidate Pool-B and Pool-C into a shared 3P+5D pool with priority/quota isolation: Both run identical GLM-5.2 weights and configs; sharing gives Pool-B 3 Prefill pods to absorb 73K bursts (eliminating 47-request queues and 163 s TTFT spikes), activates Pool-C's 92%-idle weekend capacity, and adds 25% Decode headroom.
  4. Validate and onboard the idle 8-card node (Node-Idle): Diagnose its status=unknown state 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:

  1. Hundred-card domestic accelerator PD disaggregation delivers production-ready decode fluency: 0 hardware errors, 4.4M successful responses, and 18–21 ms ITL P50 under DP8+MTP prove that long-context MoE interactivity works smoothly at scale.
  2. 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 and per_stage_req_latency_seconds to tilt ratios toward Decode and verify RDMA transfer speed.
  3. Align metric semantics before wiring alerts or capacity reviews: Filter out aggregate XPU series, pair HiCache token_usage with num_retracted_reqs, and deduplicate Prefill rank counters via tp_rank="0" to prevent false alarms and skewed capacity math.