码迷,mamicode.com
首页 > 其他好文 > 详细

让你的服务器NB起来吧(提高网络吞吐量)

时间:2015-09-12 20:30:10      阅读:273      评论:0      收藏:0      [点我收藏+]

标签:


Here you will find information on how to tune Linux, Mac OSX, and FreeBSD hosts connected at speeds of 1Gbps or higher for maximum I/O performance for wide area network transfers. Note that several of the tuning settings described here will actually decrease performance of hosts connected at rates of 100 Mbps or less, such as home users.

  • Background Information Proper host tuning can lead to up to 100x performance increases. Here are the reasons why.
  • Linux Tuning This page contains a quick reference guide for Linux 2.6 tuning, TCP Tuning, NIC tuning, and more for Linux 2.6. See also in this category, the Linux Tuning Expert page and Measurement Host Tuning.
  • Mac OSX Tuning Tuning settings for Mac OSX.
  • FreeBSD Tuning Tuning settings for FreeBSD.
  • MS Windows Tuning settings for Microsoft Windows.
  • Other Operating Systems Tuning Information on Solaris and other OSes.
  • ESnet perfSONAR Tuning In the fall of 2014, ESnet increased the default values of performance test nodes.  The settings had previously used a maximum value of 128M, and a nominal value of 64M.  The settings are now larger than fasterdata defaults, and appear below: net.core.rmem_max = 268435456net.core.wmem_max = 268435456net.ipv4.tcp_rmem = 4096 87380 134217728net.ipv4.tcp_wmem = 4096 65536 134217728 Modifying these settings has two impacts, positive and negative: More memory is allocated for every single TCP…
  • NIC Tuning Vendor specific NIC tuning information.
  • Interrupt Binding On a system with multiple 10G NICS, a 20-30% performance increase can be obtained by ensuring that the NIC driver interrupts are handled by the same CPU core as the read process/thread. This page shows you how.
  • Virtual Machines We don‘t have a lot of experience tuning virtual machines for network throughput, but here are a few points that people have told us. Please send us updates/corrections to the information on this page. To get the best network performance on a Linux VM running on a native Linux host, increase txqueuelen in host OS, and set all other tuning parameters in the guest OS. For more information see: KVM Tuning XEN Tuning VMWare Tuning  (use the VMXNET3 driver)
    • Packet Pacing When sending from a 10G host to a 1G host, it is easy to overrun the reciever, leading to packet loss and TCP backing off. Similar problems occur when a 10G host sends data to a sub-10G virtual circuit, or a 40G host sending to a 10G host. Methods to control the burst behavior of an application or OS can be introduced at the host.  Tools such as Linux‘s tc and FreeBSD‘s ipfw offer a robust and predictable way to introduce QoS behavior at the source of traffic, which helps avoid packet loss.
    • 40G Tuning For hosts with 40G ethernet NICS, there are a number of additional things you might need to think about if you want individual flows to be more than 5-9Gbps. First of all, if you have a 40G NIC you are probably using a NUMA-based Intel "Sandy/Ivy Bridge" motherboard. For hosts with more than 1 processor socket, this means you need to worry about what core is being used for both the interrupts and for your applications. At the present time (February 2015), CPU clock rate still matters a lot for…


让你的服务器NB起来吧(提高网络吞吐量)

标签:

原文地址:http://my.oschina.net/httpssl/blog/505373

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!