N1 box Feiniu OS system NAS cannot download files locally
LAN point-to-point speed drop, 99% of which are caused by "SMB multi-channel/cache/TCP congestion control " or " hard disk/power supply drop". The following is the troubleshooting + repair process.
- first check whether the "SMB Multichannel" handshake fails
Win10 SMB Multichannel will be turned on by default on 11/11, and once the negotiation fails, it will drop directly to 0 B/s.
(1) Temporarily turn off multichannel on the Windows side
Perform with Administrator PowerShell:Set-SmbClientConfiguration -EnableMultiChannel 0 -Force(2) Remap the NAS drive letter (\\192.168.x.x\data) and drag the folder to see if the speed is stable.
if it is normal immediately, it means that it is an SMB Multichannel negotiation bug; If you want to solve it permanently, add a line to/etc/samba/smb.confof Feiniu OSserver multi channel support = nothensmbcontrol the smbd close-shareoverload configuration. - to eliminate the speed collapse caused by "TCP small cache + congestion control"
N1 The box 4.x kernel uses the BIC algorithm by default, and large LAN files are prone to instant packet loss → window zeroing.
Change Algorithm:echo bbr > /proc/sys/net/ipv4/tcp_congestion_controlincrease the sending and receiving cache again:echo 'net.core.rmem_max = 134217728' >> /etc/sysctl.conf echo 'net.core.wmem_max = 134217728' >> /etc/sysctl.conf sysctl -pretest immediately after the correction to see if the gigabit can run full without dropping 0. - see if dmesg has a "USB drop/under-voltage"
N1 box Many comrades plug the hard drive into the USB port for power supply, and the disk will drop as soon as the peak is high, and the speed will naturally drop to 0.
(1)dmesg -wReal-time monitoring, copy and view, if it appearsusb 2-1: reset SuperSpeed Gen 1 USB device number 2orBTRFS/EXT4: I/O errorthat is insufficient power supply. Replace it with a "USB hard drive enclosure with independent power supply" or Y-cable dual USB power supply. - change the protocol for "A/B comparison"
if SMB always drops and WebDAV/FTP can run steadily at 110 MB/s, it can be concluded that it is a Samba configuration problem and SMB can be deprecated directly:- Windows Explorer → Right-click → Map network drive →
addresshttp://192.168.x.x:5005/dav(the default WebDAV port of Feiniu OS), the account password and administrator, and the copy folder will no longer slow down.
-
Quick summary
Priority check for speed loss in the LAN:
Priority check for speed loss in the LAN:
- Turn off SMB Multichannel (Windows side + NAS side)
- change the BBR algorithm and increase the TCP cache
- dmesg Check USB Drop/Power Supply
- use WebDAV/FTP as a comparison
these four steps are completed, the speed can basically be stabilized at 100~110 MB/s. Good luck with the troubleshooting!
Read More


Comment List