【问题标题】:try to change tcp init cwnd to 10, but fail,how should I do尝试将tcp init cwnd更改为10,但失败,我该怎么办
【发布时间】:2015-02-08 07:09:37
【问题描述】:

当我尝试更改 tcp init cwnd 时,
首先,运行ip show route时,显示:

10.61.0.0/24 dev eth0  proto kernel  scope link  src 10.61.0.241
169.254.0.0/16 dev eth0  scope link  metric 1002
default via 10.61.0.254 dev eth0  proto static

所以我跑了
sudo ip route change default via 10.61.0.254 dev eth0 proto static initcwnd 10
将 initcwnd 更改为 10,
在上面之后,我再次运行ip show route

10.61.0.0/24 dev eth0  proto kernel  scope link  src 10.61.0.241
169.254.0.0/16 dev eth0  scope link  metric 1002
default via 10.61.0.254 dev eth0  proto static  initcwnd 10

它似乎工作。但是当我重新启动时,该值不保留。

10.61.0.0/24 dev eth0  proto kernel  scope link  src 10.61.0.241
169.254.0.0/16 dev eth0  scope link  metric 1002
default via 10.61.0.254 dev eth0  proto static

我该怎么办? 我的操作系统版本信息:

Linux version 2.6.32-358.18.1.el6.x86_64 (mockbuild@c6b10.bsys.dev.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) ) #1

【问题讨论】:

    标签: linux performance gcc tcp


    【解决方案1】:

    您可以在 /etc/rc.d/rc.local 中添加 ip route 命令,以便它们在启动时生效。 内核 2.6.32 没有用于 initcwnd @ 10 的 Miller 补丁 (https://lwn.net/Articles/426883/)

    您还可以使用 ip tcp_metrics 或 ss 查看有关每个套接字/流的更多信息

    【讨论】:

      猜你喜欢
      • 2021-05-05
      • 2010-09-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-11-17
      相关资源
      最近更新 更多