[CentOS] TCP/IP Optimizations: error: unknown error 22 setting key

Karl R. Balsmeier karl at klxsystems.net
Mon Mar 19 21:51:24 UTC 2007


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.
>
>
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



More information about the CentOS mailing list