错误 #273
历史记录
由 b jz 更新于 超过 4 年 之前
- 状态 从 新建 变更为 进行中
系统丢包问题解决:
sysctl -w net.core.optmem_max=102400
sysctl -w net.core.mem_max=1024000
sysctl -w net.core.rmem_max=1024000
sysctl -w net.core.wmem_max=1024000
sysctl -w net.core.wmem_default=1024000
sysctl -w net.core.rmem_default=1024000
sysctl -w net.core.netdev_max_backlog=20480
sysctl -w net.ipv4.udp_mem="1024000 1024000 1024000"
sysctl -w net.ipv4.udp_rmem_min=1024000
sysctl -w net.ipv4.udp_wmem_min=102400
网卡ring buffer
ethtool -g enp1s0
ethtool -G enp1s0 rx 4096
ethtool -G enp1s0 tx 4096
ethtool -g enp1s0
ethtool -g enp0s31f6
ethtool -G enp0s31f6 rx 4096
ethtool -G enp0s31f6 tx 4096
ethtool -g enp0s31f6
用文本编辑器打开 /etc/sysctl.conf 然后添加以下内容:
- 禁用整个系统所有接口的IPv6
net.ipv6.conf.all.disable_ipv6 = 1 - 禁用某一个指定接口的IPv6(例如:eth0, lo)
net.ipv6.conf.lo.disable_ipv6 = 1
net.ipv6.conf.eth0.disable_ipv6 = 1
在 /etc/sysctl.conf 使这些更改生效,运行以下命令:
$ sudo sysctl -p /etc/sysctl.conf
或者直接重启。