CXL Native · 写 credit 限流

ACTUAL TUI CAPTURE · XPVKIT 0.5.5

观察写方向 credit EMPTY 与消息发送的时间关系。 以下内容由同一份 CSV 经 release 工具实际打印,网页仅回放终端输出。

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

ACTIVITY                      BANDWIDTH                     OUTSTANDING                   CREDIT EMPTY                 
─────────                     ─────────                     ───────────                   ────────────                 
86.79%                        total 111.30 GB/s             avg 60.38                     worst 11.32%                 
idle 140.00 ns                W 111.30 GB/s                 peak 80                       M2S_RWD[0] · 1 interval(s)   
                              peak 128.00 GB/s                                                                         
Partial write: 0.00% (0 / 1,600 known messages; 0 unknown) [partial-write opcode]

 TRAFFIC
 ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Write     transactions    1,600  /  102,400 B useful payload
          partial BE                      0 / 1,600  (0.00%)

CHANNEL        MESSAGES           RATE  TOP OPCODES
M2S_RWD           1,600  1509.43 Mmsg…  MemWr 1,600
S2M_NDR           1,600  1509.43 Mmsg…  Cmp 1,600  

 LATENCY
 ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Write    avg 40.00 ns  p50 40.00 ns  p95 40.00 ns  max 40.00 ns

 INITIALIZATION
 ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
mem_mst     IDLE 0.00 ps → 2.00 ns  ·  INIT 2.00 ns → 4.00 ns  ·  RUN 4.00 ns → 1.02 µs  ·  DEINIT 1.02 µs → 1.04 µs  ·
            IDLE 1.04 µs → 1.06 µs                                                                                     
mem_slv     IDLE 0.00 ps → 2.00 ns  ·  INIT 2.00 ns → 4.00 ns  ·  RUN 4.00 ns → 1.02 µs  ·  DEINIT 1.02 µs → 1.04 µs  ·
            IDLE 1.04 µs → 1.06 µs                                                                                     

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

 PV TREND
 ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Write BW  ███████████████████████████████▅▁▁▁▁▁▁▁▁▁███████████████████████████████  avg 111.30 GB/s
                                                                                                   
Write OS  ▃▅▇█████████████████████████████▅▄▁▁▁▁▁▁▁▄▅█████████████████████████████  avg 60.38      

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

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

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

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

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

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