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
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.
On 3/19/07, Karl R. Balsmeier karl@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.
You can also put them in /etc/sysctl.conf and run 'sysctl -p' and it will re-read the settings in that file.
Matt
On 3/19/07, Stephen John Smoogen smooge@gmail.com wrote:
On 3/19/07, Karl R. Balsmeier karl@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" _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Stephen John Smoogen wrote:
On 3/19/07, Karl R. Balsmeier karl@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...
-krb
Stephen John Smoogen wrote:
On 3/19/07, Karl R. Balsmeier karl@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.
I get these errors from the following settings in /etc/sysctl.conf file:
# Custom Settings: net.ipv4.tcp_max_syn_backlog=2048 net.ipv4.tcp_fin_timeout=30 net.ipv4.tcp_keepalive_intvl=10 net.ipv4.tcp_keepalive_probes=7 net.ipv4.tcp_keepalive_time=1800 net.ipv4.tcp_max_tw_buckets=360000 net.ipv4.tcp_synack_retries=3 net.ipv4.tcp_rmem="4096 87380 16777216" net.ipv4.tcp_wmem="4096 87380 16777216" net.ipv4.tcp_mem="8388608 8388608 8388608"
---------errors-----------
# sysctl -p [errors] error: unknown error 22 setting key 'net.ipv4.tcp_rmem' error: unknown error 22 setting key 'net.ipv4.tcp_wmem' error: unknown error 22 setting key 'net.ipv4.tcp_mem'
Is this from setting an array of values [4096 87380 16777216] or what?
They work just fine when I use them as command lines.
when I did a man /etc/sysctl.conf all it did was display my own file, hm.
-karlski
Karl R. Balsmeier wrote:
I get these errors from the following settings in /etc/sysctl.conf file:
# Custom Settings: net.ipv4.tcp_max_syn_backlog=2048 net.ipv4.tcp_fin_timeout=30 net.ipv4.tcp_keepalive_intvl=10 net.ipv4.tcp_keepalive_probes=7 net.ipv4.tcp_keepalive_time=1800 net.ipv4.tcp_max_tw_buckets=360000 net.ipv4.tcp_synack_retries=3 net.ipv4.tcp_rmem="4096 87380 16777216" net.ipv4.tcp_wmem="4096 87380 16777216" net.ipv4.tcp_mem="8388608 8388608 8388608"
---------errors-----------
# sysctl -p [errors] error: unknown error 22 setting key 'net.ipv4.tcp_rmem' error: unknown error 22 setting key 'net.ipv4.tcp_wmem' error: unknown error 22 setting key 'net.ipv4.tcp_mem'
Is this from setting an array of values [4096 87380 16777216] or what? They work just fine when I use them as command lines.
In sysctl.conf, for the last 3 ones, try and remove the double quotes.
when I did a man /etc/sysctl.conf all it did was display my own file, hm.
man sysctl.conf