CXL Native · 读 credit 限流

ACTUAL TUI CAPTURE · XPVKIT 0.5.5

观察读方向各 channel/slot 记录到的 credit EMPTY 区间。 以下内容由同一份 CSV 经 release 工具实际打印,网页仅回放终端输出。

XPVKIT  ·  PV SUMMARY
traffic                                                                                 CXL Native / CSV cxl-native-1.0
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
1.12 µs  ·  3,536 rows  ·  integrity OK

ACTIVITY                      BANDWIDTH                     OUTSTANDING                   CREDIT EMPTY                 
─────────                     ─────────                     ───────────                   ────────────                 
89.29%                        total 112.64 GB/s             avg 174.29                    worst 10.71%                 
idle 120.00 ns                R 112.64 GB/s                 peak 322                      S2M_DRC[0] · 1 interval(s)   
                              peak 128.00 GB/s                                                                         
Partial write: n/a (0 / 0 known messages; 0 unknown) [partial-write opcode]

 TRAFFIC
 ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Read      transactions    1,760  /  112,640 B useful payload

CHANNEL        MESSAGES           RATE  TOP OPCODES  
M2S_REQ           1,760  1571.43 Mmsg…  MemRd 1,760  
S2M_DRC           1,760  1571.43 Mmsg…  MemData 1,760

 LATENCY
 ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Read     avg 110.91 ns  p50 160.00 ns  p95 160.00 ns  max 160.00 ns

 INITIALIZATION
 ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
mem_mst     IDLE 0.00 ps → 2.00 ns  ·  INIT 2.00 ns → 4.00 ns  ·  RUN 4.00 ns → 1.08 µs  ·  DEINIT 1.08 µs → 1.10 µs  ·
            IDLE 1.10 µs → 1.12 µs                                                                                     
mem_slv     IDLE 0.00 ps → 2.00 ns  ·  INIT 2.00 ns → 4.00 ns  ·  RUN 4.00 ns → 1.08 µs  ·  DEINIT 1.08 µs → 1.10 µs  ·
            IDLE 1.10 µs → 1.12 µs                                                                                     

 MESSAGE SLOT USAGE
 ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 Channel            Messages             Used / configured                       Peak simultaneous                     
 M2S_REQ            1,680                2 / 4                                   2                                     
 M2S_RWD            0                    0 / 2                                   0                                     
 S2M_NDR            0                    0 / 6                                   0                                     
 S2M_DRC            1,760                2 / 2                                   2                                     
Issued messages in the statistics window; peak counts distinct slots at one timestamp. These are message slots, not 
inferred buffer lifetimes.

 PV TREND
 ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Read BW   ██████████████████████████▁▁▁▁▁▁▁▁▃████████████████████████████████████▅  avg 112.64 GB/s
                                                                                                   
Read OS   ▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▄▄▅▅▆▆▇████████████████████████████▇▇▆▅▅▄▃▃▂▂▁  avg 174.29     

 CREDIT EMPTY
 ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
S2M_DRC[0]     ···························███████▓·····································   10.71%
S2M_DRC[1]     ···························███████▓·····································   10.71%
density        low ░▒▓█ high                                                                    

 INTEGRITY
 ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Protocol checks  OK  no structural or transaction-matching issues detected

──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Active window  60.00 ns → 1.06 µs  ·  auto-active  ·  1 region
Bandwidth: accepted-data; transactions / latency / outstanding / backpressure: capture
HTML report         pvkit/examples/cxl_native/read_credit_throttle/traffic.pv.html                                     
Tracker log         pvkit/examples/cxl_native/read_credit_throttle/traffic.tracker.log                                 
Analyze log         pvkit/examples/cxl_native/read_credit_throttle/traffic.analyze.log                                 

使用已有的 xpvkit 0.5.5 工具,从仓库根目录复现(Rich 为彩色 TUI 的可选依赖):

python xpv.pyz analyze pvkit/examples/cxl_native/read_credit_throttle/traffic.csv --report-mode standard --trend all

默认带宽按实际数据活动窗口计算;事务、延迟与诊断保留完整 capture 范围。TUI 是输出式报告,鼠标选窗与事务查询请打开交互 HTML。