{"repo":"Kylin010/tcpfit","free":true,"listed":false,"github":"https://github.com/Kylin010/tcpfit","clone":"git clone https://github.com/Kylin010/tcpfit.git","description":"按每台机器实测推导的 TCP 调优工具 —— 不套用固定参数，实测 BDP 与限速器拐点","language":"Shell","stars":496,"topics":["bbr","linux","network-tuning","performance","proxy","shell","tcp","vps"],"license":"MIT","category":"networking-infra","readme_excerpt":"tcpfit 按每台机器实测推导的 TCP 调优工具. 不套用固定参数, 实测 BDP 与限速器拐点. 本脚本由 kylin010 编写和维护. 安装 跑完直接出菜单, 选 1 全自动. 脚本会装到 /usr/local/bin/tcpfit , 以后敲 tcpfit 即可. 三种用法 用法 命令 --- --- 一键跑 bash 2500 Mbit 超出扫描上限, 不扫（可用 --cap 调整） 拐点在\"不限速吞吐\"的 上面 —— 打穿限速器会让吞吐掉下来, 所以往上找. 回滚 首次改动前自动存快照到 /var/lib/tcpfit/pre-tune.snapshot , 记录全部 32 项参数的原始值. swap 默认不动 —— 删掉正在用的 swap 可能让机器立刻 OOM, 要一并撤销得显式加 --purge-swap . 改动只落在这些文件, 不碰 /etc/sysctl.conf : 用了 harden --swap 还会创建 /swapfile 并往 /etc/fstab 加一行 —— 这两个 rollback 默认不动, 要一并撤销加 --purge-swap . 缺 iperf3 时经你确认后会用包管理器安装它. 已知限制 - 瓶颈在国际链路而非端口时, 整形不会带来提升, 但输出看起来一切正常 - 扫满区间没找到拐点时会把区间上界当成拐点, 这种情况用 m 手动指定 - 需要 Linux + systemd + iproute2. OpenVZ/LXC 上 tc 和 initcwnd 可能受限 - sweep 需要一台近处的 iperf3 对端 从 nettune 升级 老机器上的产物文件名还是 nettune- , 新版本会自动检测并搬迁, 快照和 rollback 都保留. 直接跑新版即可. 许可证 MIT","default_branch":null,"files":null,"tree":[],"storefront":"/r/Kylin010","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Kylin010/tcpfit/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}