Re: comments of FreeBSD(5.0) sysctls - BBS

Table of Contents

※ 引述《[email protected] (悸動)》之銘言:
: ※ 引述《[email protected] (硬碟不足)》之銘言:
: > 請問一下有沒有什麼建議的數據嗎
: > 雖然看過裡面項目的意思 但是對於設定參數並沒有太多相關的知識
: > 有沒有相關的建議參數可以參考呢
: > 謝謝
: 沒有幹大事業的不需要改。
小弟從網路上google到的大陸網站收錄的一些文章
裡面有提到一些要修改的 但是 這種文章好像沒一個準
像是

kern.ipc.somaxconn=8192
kern.ipc.maxsockbuf=8388608
kern.maxfilesperproc=32768
kern.maxfiles=65536
kern.ipc.shm_use_phys=1

kern.securelevel=-1
net.inet.tcp.sendspace=65536
net.inet.tcp.recvspace=1048576
net.inet.udp.maxdgram=57344
net.inet.icmp.drop_redirect=1
net.inet.icmp.log_redirect=0
net.inet.ip.redirect=0
net.inet6.ip6.redirect=0
net.inet.icmp.icmplim=100
net.inet.tcp.always_keepalive=0
net.inet.tcp.delayed_ack=0
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=65535
net.local.dgram.maxdgram=16384
net.local.dgram.recvspace=65535
net.inet.ip.fastforwarding=1
vfs.vmiodirenable=1
net.inet.tcp.rfc1644=1
net.inet.tcp.rfc3042=1
net.inet.tcp.rfc3390=1
net.inet.tcp.inflight_enable=1
net.inet.raw.maxdgram=65535
net.inet.raw.recvspace=65536

但是 裡面
kern.ipc.somaxconn=8192
kern.ipc.maxsockbuf=8388608
net.inet.tcp.sendspace=65536
net.inet.tcp.recvspace=1048576

這個我就不知道是不是太大了(之前問人別人說很大=_=;)

所以想問一下大家是不是有比較建議的數據~謝謝

--

All Comments