linux net.core.somaxconn,无效的参数“设置键”net.core.somaxconn“

在尝试设置Linux内核参数net.core.somaxconn为262144时遇到"Invalid argument"错误。Ubuntu 12.04.4 LTS的内核限制了该参数的最大值为65535,因为sock结构的sk_max_ack_backlog字段定义为unsigned short。因此,要使设置生效,net.core.somaxconn的值不应超过65535。
摘要由CSDN通过智能技术生成

I tried setting linux kernel, after editing /etc/sysctl.conf and execute the sysctl -p

在编辑/etc/sysctl.conf并执行sysctl -p之后,我尝试设置linux内核

it show error

它显示错误

Invalid argument" setting key "net.core.somaxconn"

Linux distribution: Ubuntu 12.04.4 LTS, x86_64, 3.2.0-60-generic

Linux发行版:Ubuntu 12.04.4 LTS,x86_64,3.2.0-60-generic

$ cat /etc/sysctl.conf

$ cat /etc/sysctl.conf

net.ipv4.conf.eth0.arp_notify = 1

vm.swappiness = 0

net.ipv4.tcp_rmem = 4096 87380 4194304

net.ipv4.tcp_wmem = 4096 16384 4194304

net.core.wmem_default = 8388608

net.core.rmem_default = 8388608

net.core.rmem_max = 16777216

net.core.wmem_max = 16777216

net.core.somaxconn = 262144

net.core.netdev_max_backlog = 262144

fs.file-max = 1048576

n

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值