AI 系统调优

发布时间:2026/7/31 21:17:55
AI 系统调优 网络调优网卡相关fornic in enp49s0f0 enp49s0f1 enp201s0f0 enp201s0f1;doethtool-g $nic|grep-ERX:|TX:|head-2done1.fornic in enp49s0f0 enp49s0f1 enp201s0f0 enp201s0f1 循环遍历4张网卡名称 enp49s0f0、enp49s0f1、enp201s0f0、enp201s0f1 每次循环把网卡名存入变量 $nic2.ethtool-g $nic ethtool-g小写 g查询网卡 RX/TX Ring Buffer 环形缓冲区大小 对应你前面调优命令 ethtool-G $nic rx8192tx8192大写 G 是修改调参相关sysctl net.core.netdev_max_backlog # 中断合并fornic in enp49s0f0 enp49s0f1 enp201s0f0 enp201s0f1;doecho-n$nic tx-usecsethtool-c $nic2/dev/null|greptx-usecs:|awk{print $2}done 修改#TCP 窗口:208KB →16MBsysctl-w net.core.rmem_max16777216sysctl-w net.core.wmem_max16777216sysctl-w net.ipv4.tcp_rmem4096 131072 16777216sysctl-w net.ipv4.tcp_wmem4096 65536 16777216# 连接队列:1000→50000sysctl-w net.core.netdev_max_backlog50000# 中断合并:tx-usecs0→64fornic in enp49s0f0 enp49s0f1 enp201s0f0 enp201s0f1;doethtool-C $nic tx-usecs64donenet.ipv4.tcp_tw_reusesysctl net.ipv4.tcp_tw_reuse net.ipv4.tcp_tw_reuse2