josephxsxn

Networking Tests Basic..

Apr 20th, 2017
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.11 KB | None | 0 0
  1. http://forums.whirlpool.net.au/archive/116165
  2.  
  3. https://fasterdata.es.net/host-tuning/linux/expert/
  4. https://github.com/esnet/iperf/issues/356
  5. https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/5/html/Tuning_and_Optimizing_Red_Hat_Enterprise_Linux_for_Oracle_9i_and_10g_Databases/sect-Oracle_9i_and_10g_Tuning_Guide-Adjusting_Network_Settings-Changing_Network_Kernel_Settings.html
  6. http://linuxgazette.net/135/pfeiffer.html
  7. https://www.nas.nasa.gov/hecc/support/kb/optional-advanced-tuning-for-linux_138.html
  8.  
  9.  
  10. TEST CMDS
  11. #reciver
  12. nc -v -l 2222 > /dev/null
  13. iperf -s
  14.  
  15. #sender
  16. dd if=/dev/zero bs=1024K count=819 | nc -v 119.9.22.14 2222
  17.  
  18.  
  19. #########
  20. #DEFAULTS on 80 MBit-
  21. net.core.wmem_default = 212992 [0.212992 MByte]
  22. net.core.wmem_max = 33554432  [33.554432 MByte]
  23. net.ipv4.tcp_wmem = 4096    65536   33554432
  24. net.ipv4.udp_wmem_min = 4096
  25. sysctl: reading key "net.ipv6.conf.all.stable_secret"
  26. sysctl: reading key "net.ipv6.conf.default.stable_secret"
  27. sysctl: reading key "net.ipv6.conf.eth0.stable_secret"
  28. sysctl: reading key "net.ipv6.conf.eth1.stable_secret"
  29. sysctl: reading key "net.ipv6.conf.lo.stable_secret"
  30. vm.lowmem_reserve_ratio = 256   256 32  1
  31.  
  32. 858783744 bytes (859 MB, 819 MiB) copied, 172.288 s, 5.0 MB/s
  33.  
  34. DEFAULT on 5GBit [2.5 OutBound]
  35. net.core.optmem_max = 20480
  36. net.core.rmem_default = 212992
  37. net.core.rmem_max = 33554432
  38. net.core.wmem_default = 212992
  39. net.core.wmem_max = 33554432
  40. net.ipv4.igmp_max_memberships = 20
  41. net.ipv4.tcp_mem = 723129   964173  1446258
  42. sysctl: reading key "net.ipv6.conf.all.stable_secret"
  43. net.ipv4.tcp_rmem = 4096    87380   33554432
  44. net.ipv4.tcp_wmem = 4096    65536   33554432
  45. net.ipv4.udp_mem = 1446258  1928347 2892516
  46. sysctl: reading key "net.ipv6.conf.default.stable_secret"
  47. net.ipv4.udp_rmem_min = 4096
  48. net.ipv4.udp_wmem_min = 4096
  49. net.core.netdev_max_backlog = 1000
  50. net.ipv4.tcp_congestion_control = cubic
  51.  
  52.  
  53. -PreTune
  54. 858783744 bytes (859 MB, 819 MiB) copied, 40.9906 s, 21.0 MB/s
  55.  
  56. -Tune (Sender Only)
  57. 858783744 bytes (859 MB, 819 MiB) copied, 43.407 s, 19.8 MB/s
  58.  
  59. -Tune again, Sender, Reciver, and Backlog, Congestion
  60. 858783744 bytes (859 MB, 819 MiB) copied, 13.4377 s, 63.9 MB/s
  61.  
  62. // reciver as cubix - 858783744 bytes (859 MB, 819 MiB) copied, 22.7711 s, 37.7 MB/s
  63.  
  64.  
  65.  
  66. TUNED OUT
  67. echo 'net.core.wmem_default = 67187500' >> /etc/sysctl.conf
  68. echo 'net.core.wmem_max = 140625000 ' >> /etc/sysctl.conf
  69. echo 'net.ipv4.tcp_wmem = 4096 67187500 140625000' >> /etc/sysctl.conf
  70. echo 'net.core.rmem_default = 67187500' >> /etc/sysctl.conf
  71. echo 'net.core.rmem_max = 140625000 ' >> /etc/sysctl.conf
  72. echo 'net.ipv4.tcp_rmem = 4096 67187500 140625000' >> /etc/sysctl.conf
  73. echo 'net.core.netdev_max_backlog = 10000' >> /etc/sysctl.conf
  74. echo 'net.ipv4.tcp_congestion_control = scalable' >> /etc/sysctl.conf
  75. sysctl -p
  76.  
  77.  
  78.  
  79.  
  80. ##CALCs
  81. 64 bytes from 119.9.54.84: icmp_seq=1 ttl=50 time=216 ms
  82.  
  83. !! - Estimated Default (Rackspace 80 Mb / s Server)
  84. 80000000 * 0.216 = 17280000 / 8 = 2160000 Bytes = 2.16MByte
  85. ! - Defaults should run at wire speeds. [did not]
  86.  
  87. ##CALCS2
  88. 5,000,000,000 * 0.225 = / 8 = 140625000 = ~140MByte
  89. (2,500,000,000 * 0.215) / 8 = 67187500 = ~68MByte
Advertisement
Add Comment
Please, Sign In to add comment