Home > other >  Much more than recvfrom sockets sendto CPU
Much more than recvfrom sockets sendto CPU

Time:09-23

Recently in do a network communication UDP communication, receiving 20000 * 3 packets per second, receiving and sending the same number, accept the 1024 bytes of data per package, sent 20 bytes of data per package,
Now the problem is to receive soon, recvfrom function has more than five percent CPU, but send sendto function, more than thirty percent of the CPU, and hair is much slower than closed, cannot be synchronized,
Never found the reason, because the card itself is the case, or function I use wrong, please understand the master

CodePudding user response:

Nobody answer? Discuss all right

CodePudding user response:

Directly on the code
  • Related