Guest User

Kernal Tweaks

a guest
Feb 12th, 2016
112
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [root@cw001 ~]# cat /boot/loader.conf
  2. zpool_cache_load="YES"
  3. zpool_cache_type="/boot/zfs/zpool.cache"
  4. zpool_cache_name="/boot/zfs/zpool.cache"
  5. aio_load="YES"
  6. zfs_load="YES"
  7. ipmi_load="YES"
  8. hw.mca.enabled="0"
  9. if_lagg_load="YES"
  10. hw.igb.max_interrupt_rate="64000"
  11.  
  12. [root@cw001 ~]# cat /etc/sysctl.conf
  13.  
  14. #security.bsd.see_other_uids=0
  15. kern.ipc.somaxconn=6000
  16. # set to at least 16MB for 10GE hosts
  17. kern.ipc.maxsockbuf=16777216
  18. # socket buffers
  19. net.inet.tcp.recvspace=4194304
  20. net.inet.tcp.sendspace=10097152
  21. net.inet.tcp.sendbuf_max=16777216
  22. net.inet.tcp.recvbuf_max=16777216
  23. net.inet.tcp.sendbuf_auto=1
  24. net.inet.tcp.recvbuf_auto=1
  25. net.inet.tcp.sendbuf_inc=16384
  26. net.inet.tcp.recvbuf_inc=524288
  27. # security
  28. security.bsd.see_other_uids=0
  29. security.bsd.see_other_gids=0
  30. # drop UDP packets destined for closed sockets
  31. net.inet.udp.blackhole=1
  32. # drop TCP packets destined for closed sockets
  33. net.inet.tcp.blackhole=2
  34. # ipfw
  35. net.inet.ip.fw.verbose_limit=3
  36. # maximum incoming and outgoing IPv4 network queue sizes
  37. net.inet.ip.intr_queue_maxlen=2048
  38. net.route.netisr_maxqlen=2048
  39.  
  40. net.inet.icmp.icmplim: 400
  41. net.inet.tcp.fast_finwait2_recycle=1
  42. kern.random.sys.harvest.ethernet=0
  43. net.inet.ip.portrange.randomized=0
  44. net.link.lagg.0.use_flowid=0
  45. net.inet.ip.portrange.first=2048
  46. net.inet.ip.portrange.last=65535
RAW Paste Data