Home > OS >  Linux applications, gigabit nics, send function to send 1000 MB data takes 2 seconds
Linux applications, gigabit nics, send function to send 1000 MB data takes 2 seconds

Time:12-30

The same ARM board hardware to run the TCP server, run on Windows TCP client rate test,
1, running on ARM bare machine code transmission rate can reach 700 MBPS;
2, after on the Linux system, rate of biggest can reach about 500 MBPS,
After comprehensive analysis, we found is the same as other hardware and just run a ARM bare machine program, another run Linux applications (send function),
Linux code checked, temporarily not found the problem, and 125 MB (1000 mbit) data, from the send to end takes 2 seconds,

No other ideas, please great god give directions, thank you!

CodePudding user response:

Running on ARM bare machine code, what is the meaning of this? Generally speaking, you had better use iperf or was tested, there should be to the rate of about 1 g

CodePudding user response:

To add, found some strange phenomenon, if the send buf is obtained by mmap, rate is above 500 MBPS, if buf is malloc, then rate can reach 700 MBPS

CodePudding user response:

refer to the second floor KY response:
running on ARM bare machine code, what is the meaning of this? Generally speaking, you had better use iperf or was tested, there should be to the rate of about 1 g
I use the ARM board is the spirit of SOC, can run the bare code above, also can transplant Linux up to run the application,
Nic rate should be no problem, I follow-up testing found that because the send to buffer address different causes transmission speed is different, can see my description on the # 3 floor,
  • Related