木头虫在家

  • 系统
  • 安全
  • 应用
  • 技术
木头虫在家
蜘蛛网
  1. 首页
  2. 系统
  3. 正文

一份freebsd内核优化参数表

2020年9月11日 365点热度 0人点赞 0条评论

vi /etc/sysctl.conf

 

 

kern.ipc.nmbclusters=200000
kern.ipc.nmbjumbop=100000
net.inet.ip.portrange.randomized=0
net.inet.tcp.fast_finwait2_recycle=1
kern.random.sys.harvest.ethernet=0
net.inet.tcp.inflight.enable=1
net.inet.tcp.drop_synfin=1
kern.maxvnodes=100000

kern.ipc.somaxconn=8192
kern.ipc.maxsockbuf=2097152
kern.maxfilesperproc=32768
kern.maxfiles=65536
net.inet.tcp.sendspace=65536
net.inet.tcp.recvspace=65536
net.inet.udp.maxdgram=57344
net.inet.icmp.drop_redirect=1
net.inet.icmp.log_redirect=0
net.inet.ip.redirect=1
net.inet6.ip6.redirect=1
net.inet.icmp.icmplim=100
net.inet.tcp.always_keepalive=1
net.inet.tcp.delayed_ack=1
net.inet.tcp.log_in_vain=0
net.inet.udp.log_in_vain=0
net.inet.tcp.blackhole=2
net.inet.udp.blackhole=1
net.local.stream.sendspace=65535
net.local.stream.recvspace=32768

 

 

 

Views: 75
标签: freebsd 优化
最后更新:2020年9月11日

admin

这个人很懒,什么都没留下

点赞
< 上一篇
下一篇 >

COPYRIGHT © 2023 blog.qmun.com. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

浙ICP备11036795号