linux6.x Kernel Parameters Tuning

Source: Internet
Author: User

# # I tested on the test machine, the effect is good

Fs.file-max = 6553600net.ipv4.ip_local_port_range = 102465000net.ipv4.tcp_max_orphans  = 3276800net.ipv4.tcp_max_syn_backlog = 262144net.ipv4.tcp_timestamps =  0net.ipv4.tcp_mem = 94500000 915000000 927000000net.ipv4.tcp_fin_timeout =  1net.ipv4.tcp_keepalive_time = 30net.ipv4.tcp_tw_recycle = 1net.ipv4.tcp_tw_reuse =  1net.ipv4.tcp_synack_retries = 1net.ipv4.tcp_syn_retries = 1net.ipv4.tcp_max_tw_ Buckets = 65536net.ipv4.tcp_sack = 1net.ipv4.tcp_window_scaling = 1net.ipv4.tcp_ rmem = 4096 87380 4194304net.ipv4.tcp_wmem = 4096 16384  4194304kernel.core_uses_pid = 1kernel.sem = 250 32000 100 128net.core.wmem_ default = 8388608net.core.rmem_default = 8388608net.core.rmem_max =  16777216net.core.wmem_max = 16777216net.core.somaxconn = 262144net.core.netdev_max_backlog = 262144 

The front net.ipv4.tcp_max_tw_buckets is a tune of 6000, in the web stress test, the System log Mad Report:

Kernel:TCP:time Wait Bucket table overflow

So I changed it directly to 65536.


If the Discovery report:

Error: "Net.bridge.bridge-nf-call-ip6tables" is an unknown key

Error: "Net.bridge.bridge-nf-call-iptables" is an unknown key

Error: "Net.bridge.bridge-nf-call-arptables" is an unknown key

Just load the bridge module and you can:

[Email protected]]# Modprobe Bridge

[Email protected]]# sysctl-p

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.