Hello Charlie,
my question is why one thread connection's speed is too low , one
thread's speed has affect the business code's write.
thanks a lot , i'm try local ping and remote ping . 2 result has Four
times the difference .
1)local ping result is:
64 bytes from 192.168.0.226: icmp_seq=796 ttl=64 time=0.048 ms
64 bytes from 192.168.0.226: icmp_seq=797 ttl=64 time=0.051 ms
64 bytes from 192.168.0.226: icmp_seq=798 ttl=64 time=0.050 ms
2)remote ping result is:
64 bytes from 192.168.0.226: icmp_seq=724 ttl=64 time=0.212 ms
64 bytes from 192.168.0.226: icmp_seq=725 ttl=64 time=0.214 ms
64 bytes from 192.168.0.226: icmp_seq=726 ttl=64 time=0.216 ms
but i had other test , on the remote pc , i set the code test 40
thread(the remote pc has 40 thread cpu) , result is 280000/second , the result
shows more connection can improve the speed , but single connection's speed
fixed at 7000/second
notes: the remote client pc's ifconfig result , i had change other on pc ,
192.168.0.169 pc is win10 notebook ,cpu is I7 7200 , test speed is 5000/second
ens7f0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether a0:36:9f:9b:ef:84 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device memory 0xfbb00000-fbbfffff
ens7f1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.2.30 netmask 255.255.252.0 broadcast 192.168.3.255
inet6 fe80::eda1:2f33:9774:5c2 prefixlen 64 scopeid 0x20<link>
ether a0:36:9f:9b:ef:85 txqueuelen 1000 (Ethernet)
RX packets 616550909 bytes 85887244034 (79.9 GiB)
RX errors 0 dropped 35 overruns 0 frame 0
TX packets 602250055 bytes 85172474387 (79.3 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device memory 0xfba00000-fbafffff
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (Local Loopback)
RX packets 31740742 bytes 3943077952 (3.6 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 31740742 bytes 3943077952 (3.6 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255
ether 52:54:00:72:85:b8 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0