jim3ma / synology-igc

Intel I225/I226 igc driver for Synology Kernel 4.4.180
GNU General Public License v2.0
122 stars 32 forks source link

When I used this driver to copy files through SMB services, I experienced a memory overflow and the system crashed #2

Closed Aivenpeng closed 1 year ago

Aivenpeng commented 2 years ago

State image log IMG_3475(20221029-115127)

jim3ma commented 2 years ago

I have tested in my DX4600, all is okay. Does you use it in virtual machine ? Try it in bare metal.

Aivenpeng commented 2 years ago

In my tests, I booted on a USB flash drive, not a virtual machine

jim3ma commented 2 years ago

Can you provide the dmesg log, machine type, cpu&memory and so on?

Aivenpeng commented 2 years ago

I used DSM7.0.1. I want to know which version you are using

Aivenpeng commented 2 years ago

No problem. I'll test it later and collect some logs for you

Aivenpeng commented 2 years ago

Device type:mini pc CPU model:Intel j4125 Memory size:8G DDR4 2666MHz

Aivenpeng commented 2 years ago

debug.txt this is debug logs

jim3ma commented 2 years ago

I use dsm 7.1.1. Please confirm your igc version by modinfo igc, I have updated to 1.2.0.

Aivenpeng commented 2 years ago

I have checked the igc version. it's the latest 1.2.0. I tested DSM7.1.1 myself. The same problem arises. image

Aivenpeng commented 2 years ago

I'm going to test it with a virtual machine

Aivenpeng commented 2 years ago

@jim3ma image This is screenshot of the version

Aivenpeng commented 2 years ago

Using virtual machines has the same problem. I gave up Thank you for your reply

jim3ma commented 2 years ago

How many files do you copy via smb ? And size ? Do you test via scp, rsyc or ftp ?

Aivenpeng commented 2 years ago

All services are tested, including web service uploads

Aivenpeng commented 2 years ago

All files are tried, and will crash whenever the file size exceeds the memory size

yanshibin commented 2 years ago

How to install DSM in dx4600? Need PVE? Have tutorials?

jim3ma commented 2 years ago

How to install DSM in dx4600? Need PVE? Have tutorials?

  1. Burn TCRP, https://github.com/pocopico/tinycore-redpill
  2. Enable boot from usb, follow this: https://post.smzdm.com/talk/p/avx6rzdp/
  3. SSH to TCRP, follow the normal actions
  4. Ensure igc driver, like:
    sudo bash -x ./rploader.sh ext ds920p-7.1.1-42962 add https://raw.githubusercontent.com/pocopico/rp-ext/main/igc/rpext-index.json
yanshibin commented 2 years ago

Good job bro

yanshibin commented 2 years ago

i have a quetion : the alst verison https://github.com/pocopico/tinycore-redpill v0.9.2.9 not include the i225 driver. so when i start up the DX4600, not found the interface can't ssh it,How did you complete the installation?

jim3ma commented 2 years ago

i have a quetion : the alst verison https://github.com/pocopico/tinycore-redpill v0.9.2.9 not include the i225 driver. so when i start up the DX4600, not found the interface can't ssh it,How did you complete the installation?

Before build, add igc driver

sudo bash -x ./rploader.sh ext ds920p-7.1.1-42962 add https://raw.githubusercontent.com/pocopico/rp-ext/main/igc/rpext-index.json
chanssl commented 2 years ago

@Aivenpeng I copied a 20GB file from NAS to PC,The speed is 110MB/s, and all is okay. DSM Version: ds920p-7.1.1-42962 igc drive version: 1.2.0 RAM: 16G (2% used)

@jim3ma By the way, how can I update the igc drive?

chanssl commented 2 years ago

i have a quetion : the alst verison https://github.com/pocopico/tinycore-redpill v0.9.2.9 not include the i225 driver. so when i start up the DX4600, not found the interface can't ssh it,How did you complete the installation?

Burn the image and boot form USB drive, you can check the IP form Router, the host name is "box" . the IP same as DX4600's UGOS.

yanshibin commented 2 years ago

i have a quetion : the alst verison https://github.com/pocopico/tinycore-redpill v0.9.2.9 not include the i225 driver. so when i start up the DX4600, not found the interface can't ssh it,How did you complete the installation?

Burn the image and boot form USB drive, you can check the IP form Router, the host name is "box" .

The problem has been solved

jim3ma commented 2 years ago

@Aivenpeng I copied a 20GB file from NAS to PC,The speed is 110MB/s, and all is okay. DSM Version: ds920p-7.1.1-42962 igc drive version: 1.2.0 RAM: 16G (2% used)

@jim3ma By the way, how can I update the igc drive?

FYI https://xpenology.com/forum/topic/65377-intel-i225i226-igc-driver-development-thread/?do=findComment&comment=359373

chanssl commented 2 years ago

@Aivenpeng I copied a 20GB file from NAS to PC,The speed is 110MB/s, and all is okay. DSM Version: ds920p-7.1.1-42962 igc drive version: 1.2.0 RAM: 16G (2% used) @jim3ma By the way, how can I update the igc drive?

FYI https://xpenology.com/forum/topic/65377-intel-i225i226-igc-driver-development-thread/?do=findComment&comment=359373

Looks like I need to know how to startup TCRP without using HDMI, thx.

yanshibin commented 2 years ago

@Aivenpeng I copied a 20GB file from NAS to PC,The speed is 110MB/s, and all is okay. DSM Version: ds920p-7.1.1-42962 igc drive version: 1.2.0 RAM: 16G (2% used) @jim3ma By the way, how can I update the igc drive?

FYI https://xpenology.com/forum/topic/65377-intel-i225i226-igc-driver-development-thread/?do=findComment&comment=359373

Looks like I need to know how to startup TCRP without using HDMI, thx.

https://post.smzdm.com/talk/p/avx6rzdp/

chanssl commented 2 years ago

@Aivenpeng I copied a 20GB file from NAS to PC,The speed is 110MB/s, and all is okay. DSM Version: ds920p-7.1.1-42962 igc drive version: 1.2.0 RAM: 16G (2% used) @jim3ma By the way, how can I update the igc drive?

FYI https://xpenology.com/forum/topic/65377-intel-i225i226-igc-driver-development-thread/?do=findComment&comment=359373

Looks like I need to know how to startup TCRP without using HDMI, thx.

https://post.smzdm.com/talk/p/avx6rzdp/

Thank you, I mean Swith the boot options to “TCRP Builder”, and I knew it.

Aivenpeng commented 2 years ago

@chanssl Please try to copy the file from the computer to the NAS

jim3ma commented 2 years ago

@Aivenpeng Which nic do you use ? Like i225 v3 ?

Aivenpeng commented 2 years ago

@Aivenpeng Which nic do you use ? Like i225 v3 ?

image Yes, these are my network card parameters

chanssl commented 2 years ago

@chanssl Please try to copy the file from the computer to the NAS

@Aivenpeng I try to copied the file to the NAS form PC via SMB, nothing has been happened.

18

Snipaste_2022-11-07_20-43-21

Aivenpeng commented 2 years ago

@chanssl请尝试将文件从计算机复制到 NAS

@Aivenpeng我尝试通过 SMB 将文件从 PC 复制到 NAS,没有任何反应。

18

Snipaste_2022-11-07_20-43-21

What is the network port rate of your computer? 1G or 2.5G?

chanssl commented 2 years ago

@Aivenpeng 1000M.

Aivenpeng commented 2 years ago

@Aivenpeng 1000M.

The 2.5G network interface used for my test

Aivenpeng commented 2 years ago

@jim3ma I found this problem only when the NIC connection speed was 2.5G. When I used a 1G connection speed, there was no memory overflow and it worked perfectly i225_1G_1

Shimon-Guo commented 2 years ago

I also met this problem when I trans 100GB file to my NAS(J4125, 16G RAM, bare install, not virtual env)

image
Shimon-Guo commented 2 years ago

I also met this problem when I trans 100GB file to my NAS(J4125, 16G RAM, bare install, not virtual env) image

image
jim3ma commented 1 year ago

I also met this problem when I trans 100GB file to my NAS(J4125, 16G RAM, bare install, not virtual env) image

Can you provide a dsm in virtual machine with a virtual nic and a passthrough i225 nic ? I can ssh into the vm to debug it.

Shimon-Guo commented 1 year ago

I can provide the ssh address to you for debug it, and how can I send the information to you.

jim3ma commented 1 year ago

I can provide the ssh address to you for debug it, and how can I send the information to you.

I can reproduce this bug, please wait the fix.

jim3ma commented 1 year ago

@chanssl @yanshibin @Shimon-Guo @Aivenpeng Try latest version: https://github.com/jim3ma/synology-igc/releases/tag/1.3.0 The version fixes memory leak in all versions, please update to this version ASAP.

Shimon-Guo commented 1 year ago

@chanssl @yanshibin @Shimon-Guo @Aivenpeng Try latest version: https://github.com/jim3ma/synology-igc/releases/tag/1.3.0 The version fixes memory leak in all versions, please update to this version ASAP.

great, I will try it later

Aivenpeng commented 1 year ago

@chanssl @yanshibin @Shimon-Guo @Aivenpeng Try latest version: https://github.com/jim3ma/synology-igc/releases/tag/1.3.0 The version fixes memory leak in all versions, please update to this version ASAP.

Great. I'll update it later

Shimon-Guo commented 1 year ago

@chanssl @yanshibin @Shimon-Guo @Aivenpeng Try latest version: https://github.com/jim3ma/synology-igc/releases/tag/1.3.0 The version fixes memory leak in all versions, please update to this version ASAP.

I updated the driver and found no memory leaks

vysecurity commented 1 year ago

I am trying to install on DX4600, but the TCRP keeps sending back to the Install PAT file page after it reboots?