[vpp-dev] Why VPP performance down very much when I use print() function.

2020-05-06 Thread Nguyễn Thế Hiếu
Hi VPP team. I create a simple VPP node name "swap_mac". "swap_mac" node just swap between source and destination MAC address and send packet back. Then, I use Pktgen tool to send packet to VPP. In VPP, the packet will go to swap_mac->interface-output node and finally send back Pktgen tool. I fo

Re: [vpp-dev] Why VPP performance down very much when I use print() function.

2020-05-06 Thread Nguyễn Thế Hiếu
Hi Dave & Joe. Thanks for your both answers. I'm glad to see them. I will try to use vlib_node_increment_counter() function instead. But I still wonder. I know printf() can be bottleneck of performance, that's why I just call printf() every 600.000.000 packets. Even if thoughput is 7Gbps, 600.00