I am not a VPP expert, but you should replace any memcpy in your code with 
clib_memcpy_fast.



Hemant



From: [email protected] <[email protected]> On Behalf Of 
[email protected]
Sent: Tuesday, March 09, 2021 8:17 AM
To: [email protected]
Subject: [vpp-dev] Performance problem in multithreaded vcl application #vpp



Hello!

I am learning VPP and I need to transfer more than 10G using UDP protocol in 
both directions (tx and rx).

I tried to write an UDP server. There are three threads in the server 
application. The first thread prints the transmission and reception 
statistics. The second thread receives packets in a loop. The third thread 
activates after the first received packet and starts transmitting UDP 
datagrams back in a loop.

If I am using vpp in single threaded mode, I can only transfer 2Gbps per 
second and recieve about 8Gbps since the performance of one CPU core is not 
enough. If I set the number of workers in the /etc/vpp/startup.conf 
configuration file in the cpu section, I get a speed of about 10G for 
reception and about 100 kilobits per second for transmission (only 55 datagram 
per second).

Please see my sources and vpp configuration. What should I change to improve 
the performance of transmission?

Also, please see the output of my application:

[root@5G-Infra-DU1 vpp_udp_ser_async_example2]# VCL_CONFIG=/etc/vpp/vcl1.conf 
./vcl_udp_server

Packets sent PPS 0 (0 bits per second)

Packets recv PPS 0 (0 bits per second)

Packets sent PPS 13344 (27328512 bits per second)

Packets recv PPS 4668681 (9412060896 bits per second)

Packets sent PPS 55 (112640 bits per second)

Packets recv PPS 4916520 (9911704320 bits per second)

Packets sent PPS 55 (112640 bits per second)

Packets recv PPS 5046687 (10174123008 bits per second)

Packets sent PPS 55 (112640 bits per second)

Packets recv PPS 5040438 (10161520992 bits per second)



Thank, you

Attachment: smime.p7s
Description: S/MIME cryptographic signature

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#18891): https://lists.fd.io/g/vpp-dev/message/18891
Mute This Topic: https://lists.fd.io/mt/81200436/21656
Mute #vpp:https://lists.fd.io/g/vpp-dev/mutehashtag/vpp
Group Owner: [email protected]
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to