bb-qq / r8152

Synology DSM driver for Realtek RTL8152/RTL8153/RTL8156 based adapters
GNU General Public License v2.0
2.07k stars 184 forks source link

[ds220+]link down after running some time #230

Closed romberli closed 1 year ago

romberli commented 2 years ago

Description of the problem

Description of the problem

I've successfully installed the driver, and at the beginning, it runs perfectly. but I found that after some time(may be hours), the link suddenly went down, and I cann't open the web manager page or ping the ip address. It becomes normal by rebooting the NAS, but won't last for a long time. btw, I didnot reboot the NAS yet as the current log information may help on the troubleshooting, I'm using regular 1000Mbps ethernet now. If you need, I can reboot and re-collect the log

Description of your products

DS220+ Linux DS220plus 4.4.180+ #42661 SMP Fri Apr 1 15:33:03 CST 2022 x86_64 GNU/Linux synology_geminilake_220+ DSM 7.1-42661 Update 1 samzhe ug25 with RTL8156B chip

Description of your environment

AX86U CAT6

Output of dmesg command

dmesg.log

Output of lsusb command

|__usb1          1d6b:0002:0404 09  2.00  480MBit/s 0mA 1IF  (Linux 4.4.180+ xhci-hcd xHCI Host Controller 0000:00:15.0) hub
  |__1-4         f400:f400:0100 00  2.00  480MBit/s 200mA 1IF  (Synology DiskStation 6500257918EF6021)
|__usb2          1d6b:0003:0404 09  3.00 5000MBit/s 0mA 1IF  (Linux 4.4.180+ xhci-hcd xHCI Host Controller 0000:00:15.0) hub
  |__2-2         0bda:8156:3100 00  3.20 5000MBit/s 256mA 1IF  (Realtek USB 10/100/1G/2.5G LAN 001000001)

Output of ifconfig -a command

root@DS220plus:~# ifconfig -a
bond0     Link encap:Ethernet  HWaddr 90:09:D0:1F:E2:65  
          inet addr:192.168.3.6  Bcast:192.168.3.255  Mask:255.255.255.0
          inet6 addr: fe80::9209:d0ff:fe1f:e265/64 Scope:Link
          inet6 addr: 240e:388:9f22:6a00:9209:d0ff:fe1f:e265/64 Scope:Global
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
          RX packets:287073 errors:0 dropped:0 overruns:0 frame:0
          TX packets:670234 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:33499706 (31.9 MiB)  TX bytes:982602190 (937.0 MiB)

docker0   Link encap:Ethernet  HWaddr 02:42:66:B8:92:15  
          inet addr:172.17.0.1  Bcast:172.17.255.255  Mask:255.255.0.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

eth0      Link encap:Ethernet  HWaddr 90:09:D0:1F:E2:65  
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:287073 errors:0 dropped:0 overruns:0 frame:0
          TX packets:670234 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:33499706 (31.9 MiB)  TX bytes:982602190 (937.0 MiB)
          Interrupt:84 base 0xe000  

eth1      Link encap:Ethernet  HWaddr 90:09:D0:1F:E2:66  
          UP BROADCAST SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:85 base 0xc000  

eth2      Link encap:Ethernet  HWaddr 00:E0:4C:68:00:26  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:473935 errors:0 dropped:0 overruns:0 frame:0
          TX packets:473935 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1 
          RX bytes:88832719 (84.7 MiB)  TX bytes:88832719 (84.7 MiB)

sit0      Link encap:IPv6-in-IPv4
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
Robo210 commented 2 years ago

I've been having the same problem after updating to DSM 7.1-42661 Update 2. After a week or so of uptime the device (UGREEN USB C to 2.5G Ethernet Adapter) goes down and I need to restart the Synology (DS1621+ (v1000)) to get it working again. Under DSM 7.0 it was perfectly stable.

bb-qq commented 2 years ago

Could you try this command?:sudo sysctl -w vm.min_free_kbytes=524288 One user reported that this setting eliminated the instability that began with DSM 7.1.

Robo210 commented 2 years ago

I'm not sure what has changed (something in update 3?), but the instability seems to be gone without needing to run that command. I've had 25 days of uptime without a problem.

If it returns, I will run the command and report back.

bb-qq commented 1 year ago

I would like to close this issue as no problems seem to have occurred since then.