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 found out with this test model, VPP throughput can go up *7Gbps* in my lab. But VPP throughput just is *300Mbps* when I add a counter variable to count number of received packet and a printf() to print value of counter in "swap_mac" node function. My code: counter ++ if((counter % 600.000.000) == 0) { printf("Receive packets: %ld", counter ); } So, why VPP throughput change from 7Gbps to 300Mbps when I just call printf() function every 600.000.000 packets? ( I have tried to comment out printf() , VPP throughput go up 7Gb again. ) Please help me to see it. I'm sorry for my bad English.
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#16243): https://lists.fd.io/g/vpp-dev/message/16243 Mute This Topic: https://lists.fd.io/mt/74025182/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-