大数据内核调优建议

 
大数据内核调优建议
vim /etc/sysctl.conf
net.ipv4.ip_local_port_range = 1024 65535
fs.inotify.max_user_instances= 8192
fs.inotify.max_queued_events= 16384
fs.inotify.max_user_watches= 524288
fs.file-max = 52706963
fs.nr_open = 52706963
kernel.threads-max = 25165824
kernel.pid_max = 655360
vm.max_map_count = 8388608
vm.dirty_background_ratio = 5
vm.dirty_ratio = 10
vm.dirty_writeback_centisecs = 300
kernel.shmmax = 123695058126
kernel.shmmni = 4096
kernel.shmall = 30198988
kernel.sem = 250 32000 100 128
生效内核配置:sysctl -p
vim/etc/security/limits.conf
root soft nofile 655360
root hard nofile 655360
root soft nproc 655360
root hard nproc 655360
* soft nproc 655360
* hard nproc 655360
* soft nofile 655360
* hard nofile 655360
* soft memlock unlimited
* hard memlock unlimited
* soft core unlimited
* hard core unlimited
* soft stack unlimited
* hard stack unlimited
* soft sigpending 655360
* hard sigpending 655360
posted @ 2025-04-16 13:22  caonw  阅读(18)  评论(0)    收藏  举报