rt,在用transmission时出现高速高链接数下网卡断网且无法自动恢复问题。

解决方法(也可能只是改善方法毕竟rtl8111又不是什么高性能网卡)

1,更新驱动

2,修改部分sysctl参数

系统日志显示:

Oct 21 15:39:37 stor kernel: re0: watchdog timeout
Oct 21 15:39:37 stor kernel: re0: link state changed to DOWN
Oct 21 15:39:41 stor kernel: re0: link state changed to UP
Oct 21 15:43:37 stor kernel: re0: watchdog timeout
Oct 21 15:43:37 stor kernel: re0: link state changed to DOWN
Oct 21 15:43:41 stor kernel: re0: link state changed to UP
Oct 21 15:43:46 stor kernel: re0: watchdog timeout

google后发现是FreeNas自带网卡驱动问题。

解决方法为更新网卡驱动:

# download the compiled driver
fetch --no-verify-peer -o /tmp https://od1.cosmiccat.net/freenas/if_re.ko.zip

# browse to tmp directory
cd /tmp

# unzip download
unzip if_re.ko.zip

# move extracted file to /boot/kernel/ directory
mv if_re.ko /boot/kernel/

# set permissions
chmod 555 /boot/kernel/if_re.ko

然后进入webui的System->Tunable下新建
variable = if_re_load
value = YES
Type = loader
然后保存启用重启系统就行
然后发现还是会挂但是至少过一会能自动恢复然后过一会又挂。
改善方法:
1,transmission设置里减少最大连接数
2,在sysctl 里设置
kern.ipc.somaxconn=128(默认)为更大值,比如4096


参考:https://unlockforus.com/freenas-11-2-re0-watchdog-timeout-error/