How to configure burst size with trex with Mellanox DPDK driver

336 views
Skip to first unread message

jrey...@gmail.com

unread,
Nov 6, 2018, 4:22:33 AM11/6/18
to TRex Traffic Generator
This topic follows the topic "Set parameters to mlx5 DPDK driver when starting TRex".

This is a broader question: is it possible to configure TRex to reduce the burst size? It seems that TRex wants to send traffic by burst of 32 packets.

We tried to look into the source code and to reverse the path with gdb, but it lead us to nothing interesting.

Thanks,

Jérôme

Yaroslav Brustinov

unread,
Nov 6, 2018, 4:43:16 AM11/6/18
to jrey...@gmail.com, trex...@googlegroups.com
Hi,

main_dpdk.cpp:
#define MAX_PKT_BURST 32

--
You received this message because you are subscribed to the Google Groups "TRex Traffic Generator" group.
To unsubscribe from this group and stop receiving emails from it, send an email to trex-tgn+u...@googlegroups.com.
To post to this group, send email to trex...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/trex-tgn/675fa42c-976b-4bde-9107-7248f9314610%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

jrey...@gmail.com

unread,
Nov 6, 2018, 5:48:05 AM11/6/18
to TRex Traffic Generator
OK, this was our primary conclusion: the only way to control the burst size is to recompile trex. I will give it a try, and why not make a PR to make this parameter configurable at runtime.

kang...@pensando.io

unread,
Jun 18, 2019, 2:33:49 PM6/18/19
to TRex Traffic Generator
Is there any PR on this? It will be nice to be able to specify additional DPDK parameters. For example, I need to change the txq_inline parameter to see if it will help with PCI back pressure, similar to what I can do with testpmd below by passing txq_inline with the -w option.

./testpmd -c 0x1ff -n 4 -w 0000:08:00.0,txq_inline=128 -w
0000:08:00.1,txq_inline=128 --socket-mem=2048,0 -- --port-numa-
config=0,0,1,0 --socket-num=0 --burst=64 --txd=1024 --rxd=256 --
mbcache=512 --rxq=4 --txq=4 --nb-cores=8 -I

So my current conclusion is I need to recompile Trex and add this parameters in update_dpdk_args. Any other way to do this?

hanoh haim

unread,
Jun 18, 2019, 3:18:11 PM6/18/19
to kang...@pensando.io, TRex Traffic Generator
I agree, it is a good idea to add it.
You can open an issue in GitHub 
Thanks
Hanoh


For more options, visit https://groups.google.com/d/optout.
--
Hanoh
Sent from my iPhone

kit...@gmail.com

unread,
Jun 24, 2019, 2:41:44 PM6/24/19
to TRex Traffic Generator
> To unsubscribe from this group and stop receiving emails from it, send an email to trex...@googlegroups.com.
>
> To post to this group, send email to trex...@googlegroups.com.
>
> To view this discussion on the web visit https://groups.google.com/d/msgid/trex-tgn/fbda99fa-389d-431c-8c4c-9a74353bbcde%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.
>
> --
>
>
>
> HanohSent from my iPhone

Was there a configuration added for this?

Thanks
Reply all
Reply to author
Forward
0 new messages