Stephen John Smoogen
2007-Mar-19 20:09 UTC
[CentOS] net.ipv4 TCP/IP Optimizations = sysctl.conf?
On 3/19/07, Karl R. Balsmeier <karl at klxsystems.net> wrote:> 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? >They will only persist if they are put in /etc/sysctl.conf. Whether they do what you want.. is another question. -- Stephen J Smoogen. -- CSIRT/Linux System Administrator How far that little candle throws his beams! So shines a good deed in a naughty world. = Shakespeare. "The Merchant of Venice"
Joshua Baker-LePain
2007-Mar-19 20:09 UTC
[CentOS] net.ipv4 TCP/IP Optimizations = sysctl.conf?
On Mon, 19 Mar 2007 at 1:07pm, Karl R. Balsmeier wrote> If I execute these via command line, will they persist after a reboot?No.> Or, should I be putting these into a file like /etc/sysctl.conf?Yes. -- Joshua Baker-LePain Department of Biomedical Engineering Duke University
Karl R. Balsmeier
2007-Mar-19 21:07 UTC
[CentOS] net.ipv4 TCP/IP Optimizations = sysctl.conf?
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
Karl R. Balsmeier wrote:> Stephen John Smoogen wrote: > >> On 3/19/07, Karl R. Balsmeier <karl at klxsystems.net> wrote: >> >>> 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? >>> >> >> They will only persist if they are put in /etc/sysctl.conf. Whether >> they do what you want.. is another question. >> >> > oh, they do what I want, they make things much much faster from a > performance standpoint... >I spent some time trying to tune the IP stack on one of our backup servers without much improvement. Would you be willing to share your test results/thoughts on the settings you posted? Thanks Dean.