[CentOS] net.ipv4 TCP/IP Optimizations = sysctl.conf?

Karl R. Balsmeier karl at klxsystems.net
Mon Mar 19 21:07:34 UTC 2007


If I execute these via command line, will they persist after a reboot?

Or, should I be putting these into a file like /etc/sysctl.conf?

--------------snip--------------

/sbin/sysctl -w net.ipv4.tcp_max_syn_backlog=2048
/sbin/sysctl -w net.ipv4.tcp_fin_timeout=30
/sbin/sysctl -w net.ipv4.tcp_keepalive_intvl=10
/sbin/sysctl -w net.ipv4.tcp_keepalive_probes=7
/sbin/sysctl -w net.ipv4.tcp_keepalive_time=1800
/sbin/sysctl -w net.ipv4.tcp_max_tw_buckets=360000
/sbin/sysctl -w net.ipv4.tcp_synack_retries=3
/sbin/sysctl -w net.ipv4.tcp_rmem="4096 87380 16777216"
/sbin/sysctl -w net.ipv4.tcp_wmem="4096 87380 16777216"
/sbin/sysctl -w net.ipv4.tcp_mem="8388608 8388608 8388608"

--------------snip---------------

p.s. these are meant for a specific technology we use, so not sure if 
everyone reading would be best served by using them, mileage may vary!  : /

-karlski








More information about the CentOS mailing list