Extreme Performance freebsd

Posted: August 1, 2010 in Freebsd

These tunings may not be appropriate for all situations, so use your head.

put in /etc/sysctl.conf

############### Common ###############
net.inet.ip.ttl=255
security.bsd.see_other_uids=0
# net.inet.icmp.icmplim=50
# net.inet.tcp.msl=7500
kern.ipc.somaxconn=32768
# kern.ipc.somaxconn=1024
kern.maxfiles=65536
net.inet.ip.forwarding=1
#net.inet.ip.fastforwarding=1
#kern.ipc.nmbclusters=51200
kern.coredump=0
# Device Polling sysctl options
# kern.polling.enable=1
# kern.polling.user_frac=50
# net.inet.icmp.drop_redirect=1
# net.inet.icmp.log_redirect=1
# net.inet.ip.redirect=0
# net.inet.ip.sourceroute=0
# net.inet.ip.accept_sourceroute=0
# net.inet.icmp.bmcastecho=0
# net.inet.icmp.maskrepl=0
# net.inet.ip.portrange.first=10024
#######################################
#######################################
#### Extreme speed!!! beware!! ####
# net.inet.tcp.sendspace=196605
# net.inet.tcp.recvspace=196605
# Normal Value #
net.inet.tcp.sendspace=65535
net.inet.tcp.recvspace=65535
# net.inet.tcp.recvspace=64240

#######################################

# Disable sending back RST packet for unopened port #

#net.inet.tcp.blackhole=2

#net.inet.udp.blackhole=1

#######################################

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s