In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
CentOS how to modify the size of the system HASHSIZE, many novices are not very clear about this, in order to help you solve this problem, the following small series will explain in detail for everyone, there are people who need this can learn, I hope you can gain something.
After starting CentOS, edit the/etc/modprobe.conf file directly and add a line to the *** side:
options ip_conntrack hashsize=100000
If you are using a CentOS system that is a previous version of Fedora or another Linux distribution, you may also need to add
options nf_conntrack hashsize=100000
This depends on whether the module name in your CentOS system is ip_conntrack or nf_conntrack, and I am confused by the different module names. Put Fedora's writing into CentOS, the result is how to restart HASHSIZE value is not changed, later after ELM reminder, you can also check the module list through lsmod to see whether your module is ip_conntrack or nf_conntrack, only to find that CentOS module called ip_conntrack, and in Fedora this module is called nf_conntrack.
[root@proxy proc]# lsmod | grep conn
ip_conntrack_netbios_ns 6977 0
ip_conntrack 53281 4 ip_conntrack_netbios_ns,iptable_nat,ip_nat,xt_state
nfnetlink 10713 2 ip_nat,ip_conntrack
Restart CentOS after the modification, and then you can see that your hashsize value has been changed.
[root@proxy proc]# more /proc/sys/net/ipv4/netfilter/ip_conntrack_buckets
100000
[root@proxy proc]# more /proc/sys/net/ipv4/netfilter/ip_conntrack_max
800000
After this modification, there is no need to modify the ip_conntrack_max value additionally. The ip_conntrack_max value will be automatically set to 8 times the HASHSIZE value.
Did reading the above help you? If you still want to have further understanding of related knowledge or read more related articles, please pay attention to the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.