-
When I was testing with the The size of the data received by the Server side is different from the amount of data successfully sent by the Client side. I only added the logic for outputting and calculating the total data volume in the server side (PerfServer.cpp) of secnetpef. The startup command and results of the Client side are as follows.
The printed information of the Server side is as follows.
The modified code of the Server side is as follows:
The printout shows that the server received Important after I reduce the target transmission data volume, for example, setting -up:524288000 -iosize:1048576, the transmission will also succeed even when the memory is less than 1GB. The final printed value on the server side is the same as that on the client side. Therefore, I preliminarily infer that the reason is as follows:
Is my inference correct? If the server is in a low - memory situation, can this problem be solved by adjusting configuration items? If so, is there a recommended configuration modification list for low - memory scenarios? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
totalRecv += (int)Event->RECEIVE.Buffers[0].Length; //caculate read size! You have a bug that you are only looking at |
Beta Was this translation helpful? Give feedback.
The number and size of buffers on the send side is completely independent from the receive side.