平台: suse enterprise linux 11 64位 32G内存
安照官方文档的参数配置linux内核, 创建实例的时候报错,经检查,官方文档是以64位8G内存为标准的
而我的机器是64位32G内存,所以内核参数要重新配置,经过实践,弄出一套可行的参数配置,保存下来:
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 16423582
kernel.shmmax = 33635495936
kernel.shmmni = 7936
kernel.sem = 1250 256000 100 7936
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.conf.all.rp_filter = 1
fs.inotify.max_user_watches = 65536
net.ipv4.conf.default.promote_secondaries = 1
net.ipv4.conf.all.promote_secondaries = 1
vm.hugetlb_shm_group = 1008