Trex for performance - port stats is fine but stream stats counter is not working

31 views
Skip to first unread message

chris...@gmail.com

unread,
Nov 14, 2025, 7:55:32 AMNov 14
to TRex Traffic Generator
Hi All , 
I am using trex for performance testing and I am testing 45GB . What I see is port stats shows 45 GB ,but stream stats shows just 700 kbps.What's the reason for this ? 
I am using flow_stats = STLFlowStats(pg_id = 2) 

stats 
Port Statistics

   port    |         0
-----------+------------------
owner      |              root
link       |                UP
state      |      TRANSMITTING
speed      |          100 Gb/s
CPU util.  |            13.78%
--         |
Tx bps L2  |        44.92 Gbps
Tx bps L1  |        45.86 Gbps
Tx pps     |         5.86 Mpps
Line Util. |           45.86 %
---        |
Rx bps     |        44.92 Gbps
Rx pps     |         5.86 Mpps
----       |
opackets   |          76972901
ipackets   |          76972937
obytes     |       73740034448
ibytes     |       73739684672
tx-pkts    |       76.97 Mpkts
rx-pkts    |       76.97 Mpkts
tx-bytes   |          73.74 GB
rx-bytes   |          73.74 GB
-----      |
oerrors    |                 0
ierrors    |                 0

At the same time , stream stats shows very less:
trex(service)>stats -s
Streams Statistics

  PG ID    |         2
-----------+------------------
Tx pps     |         5.87 Mpps
Tx bps L2  |           45 Gbps
Tx bps L1  |        45.94 Gbps
---        |
Rx pps     |         90.86 pps
Rx bps     |       696.39 Kbps
----       |
opackets   |         737627796
ipackets   |             11127
obytes     |      706647428568
ibytes     |          10659666
-----      |
opackets   |      737.63 Mpkts
ipackets   |       11.13 Kpkts
obytes     |         706.65 GB
ibytes     |          10.66 MB



Trex version:
Trex stateless - v3.07 
config used :
- version: 2
  interfaces: ["0000:6c:07.1","dummy"]
  stack     : linux_based
  rx_desc   : 4096
  platform:
    master_thread_id: 8
    latency_thread_id: 9
    dual_if:
      - socket: 0
        threads: [13,14,15,16,17,18,40]
      - socket: 1
        threads: [41,45,46,47,48,49,50]
  memory    :
    mbuf_2048   : 8190

Can you please clarify the reason for this? Are we not supposed to use stream stats for high performance ? 
Until which rate does stream stats work fine?
If i have multiple streams , then how do i measure the rate per stream ?

Thanks,
Chris.

chris...@gmail.com

unread,
Nov 28, 2025, 3:56:23 AM (7 days ago) Nov 28
to TRex Traffic Generator
Can someone please clarify , if per stream stats works fine for high performance traffic ?
Reply all
Reply to author
Forward
0 new messages