No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search


To have a better experience, please upgrade your IE browser.


eSight V300R010C00SPC200, 300, and 500 Local HA System Software Installation Guide (SUSE Linux + Oracle + Veritas) 10

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
How Do I Adjust the Socket Buffer Size of the Linux OS

How Do I Adjust the Socket Buffer Size of the Linux OS


Applications invoke the socket system to communicate with remote servers. Each socket has a read/write buffer. The read buffer saves data sent from remote servers. If the buffer is full, data will be discarded. The write buffer saves the data to be sent to remote servers. If the write buffer is full, system applications cannot write data to the buffer. For a large-scale Linux, you must adjust the buffer size. Otherwise, the overall performance during application operation will be affected. How do I adjust the size?


  1. Log in to the Linux OS as the root user.
  2. Modify the configuration file to modify the kernel parameters of Linux.

    1. Switch to the /etc directory.

      # cd /etc

      / is the root directory of Linux.

    2. You are advised to back up the configuration file sysctl.conf before modifying it. If the backup file name is sysctl.conf_bak, run the following command to back up the file:

      # cp sysctl.conf sysctl.conf_bak

    3. Open the sysctl.conf file in text mode.

      # vi sysctl.conf

    4. Modify or add (if it does not exist) the content as follows in the sysctl.conf file:
      net.core.wmem_default = 8388608 
      net.core.rmem_default = 8388608 
      net.core.wmem_max = 20971520 
      net.core.rmem_max = 8388608 
      net.ipv4.tcp_mem = 1162629 1550174 2325258 
      net.ipv4.tcp_wmem = 4096 16384 4194304 
      net.ipv4.tcp_rmem = 4096 87380 6291456     
    5. Run the following command for the parameters to take effect:

      # /sbin/sysctl -p

Updated: 2019-10-30

Document ID: EDOC1100044372

Views: 29340

Downloads: 26

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Previous Next