Improved configuration of Linux low-latency high-throughput performance

Source: Internet
Author: User

One > Modify handle number

Ulimit–a

1 "Modify the file: /etc/security/limits.conf - Span style= "color: #000000; font-size:14px;" > current session run Span style= "font-family:arial, ' Sans-serif '; color: #000000; font-size:14px;" >ulimit-a command cannot be displayed)

1. * Soft Nofile 32768 #limit the maximum number of file handles for a single process (System alert when this limit is reached)  

2. * Hard Nofile 65536 #limit the maximum number of file handles for a single process (system error when this limit is reached)  

* soft nofile 32768

* Hard Nofile 65536

2 ) Modify the file: /etc/sysctl.conf . Add at the end of the file:

  Fs.file-max=655350

Run command:/sbin/sysctl-p make configuration effective

3> Temporary Modification

#step6: Set open file buffer with Root
ULIMIT-HSN 65534
#sudo echo "Ulimit-n 65535"

B > Modify TCP/UDP Cache

#step1: Stop iptables with Root
Service Iptables Stop

#step2: Set LIUNX system max TCP/UDP buffer
Sysctl-w net.core.rmem_max=67108864
Sysctl-w net.core.wmem_max=67108864

#step3set UDP Buffer
Sysctl-w net.core.rmem_default=33554432
Sysctl-w net.core.wmem_default=33554432

#step4: Set TCP buffer
Sysctl-w net.ipv4.tcp_rmem= "4096 33554432 33554432"
Sysctl-w net.ipv4.tcp_wmem= "98304 33554432 33554432"
Sysctl-w net.ipv4.tcp_mem= "98304 33554432 33554432"

#step5: Set TCP window scalling
Sysctl-w net.ipv4.tcp_window_scaling=1
#sysctl-W net.ipv4.ip_local_port_range= "1024 65000"

This article from the "Test Road" blog, reproduced please contact the author!

Improved configuration of Linux low-latency high-throughput performance

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.