mightyroot

FreeBSD web server tunning

Aug 10th, 2012
336
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. Итоговый /etc/sysctl.conf
  2.  
  3. net.inet.tcp.blackhole=1 (или 2)
  4. net.inet.udp.blackhole=1
  5. kern.ipc.nmbclusters=262144
  6. kern.ipc.somaxconn=4096 (можно попробовать и 32768)
  7. kern.ipc.maxsockets=204800
  8. vfs.vmiodirenable=1
  9. kern.maxfiles=204800
  10. kern.maxfilesperproc=200000
  11. net.inet.ip.portrange.first=1024
  12. net.inet.ip.portrange.last=65535
  13. net.inet.ip.portrange.randomized=0
  14. net.inet.tcp.maxtcptw=40960
  15. net.inet.tcp.msl=30000
  16. net.inet.tcp.syncookies=1
  17. net.inet.tcp.nolocaltimewait=1
  18. net.inet.tcp.fast_finwait2_recycle=1
  19. net.inet.tcp.sendspace=16384
  20. net.inet.tcp.recvspace=8192
  21.  
  22. Итоговый /boot/loader.conf
  23.  
  24. verbose_loading="YES"
  25. loader_logo="beastie"
  26. #ng_ether_load="YES"
  27. #linux_load="YES"
  28. accf_data_load="YES"
  29. accf_http_load="YES"
  30.  
  31. net.inet.tcp.syncache.hashsize=1024
  32. net.inet.tcp.syncache.bucketlimit=100
  33. net.inet.tcp.tcbhashsize=4096
  34. kern.ipc.nsfbufs=10240
  35. vm.kmem_size_max=1G
  36. # ядро для i386 нужно собрать с "options KVA_PAGES=512"
  37. # для amd64 "options VM_KMEM_SIZE=1073741824", "options VM_KMEM_SIZE_MAX=1073741824"
Add Comment
Please, Sign In to add comment