linux 生产环境内核调优实例

net.ipv4.ip_forward=0

net.ipv4.conf.all.rp_filter=1

net.ipv4.conf.default.rp_filter=1

net.ipv4.conf.default.accept_source_route = 0

kernel.sysrq=0

kernel.core_user_pid=1

net.bridge.bridge-nf-call-ip6tables=0

net.bridge.bridge-nf-call-iptables=0

net.bridge.bridge-nf-call-arptables=0

kernel.msgmnb=65535

kernel.msgmax=65535

kernel.shmmax=68719476736

kernel.shmall=4294967296

net.ipv6.conf.all.disable_ipv6=1

net.ipv6.conf.default.disable_ipv6=1

net.ipv6.neigh.default.gc_stale_time=120

net.ipv6.conf.default.arp_announce=2

net.ipv6.conf.all.arp_announce=2

net.ipv6.conf.lo.arp_announce=2

你可能感兴趣的:(linux 生产环境内核调优实例)