zhanghai / MaterialFiles

Material Design file manager for Android
https://play.google.com/store/apps/details?id=me.zhanghai.android.files
GNU General Public License v3.0
5.86k stars 397 forks source link

SMB Filetransfer verry Slow #796

Open OldMcWeb opened 2 years ago

OldMcWeb commented 2 years ago

Hi, the file transfer to an SMB is verry,verry slow. Im using 1.5.1 version.

Other explore tools are much faster in my setup.

I like to help to debug, unfortunatally i dont see any transfer speed.

Is the issue known or can i provide you some informations?

nizhiyi commented 2 years ago

So am I.

JordanPlayz158 commented 2 years ago

Could be related to the implementation if #473 is anything to go off, perhaps a remedy (not a fix but a bandaid) could be a worker system, you have 1 worker per core (maybe 1 worker per core - 1 to leave 1 for the system) and have a queue that way you can have 4 independent uploads until we can find the limiting factor in the current smb implementation or use an external library to handle smb

Edit: Additionally, this may provide some hints. Image of NAS network traffic during upload from Material Files

I moved a 600MB file to SMB and I get roughly 1MBPS (at least it shows that speed until it reaches triple digit MBs (in the notification) then that speed information is omitted. But the network traffic may be suggesting that it is pushing faster than 1MBPS

Edit 2: After hearing the disappointing news that they don't accept PRs (from reading old PRs (and 95% get rejected)) I won't be able to fix this (Like I'd planned on doing)

NotYeMK commented 6 months ago

Still to this very day, SMB file transfer for this app is still very slow compared to other apps. Hopefully a remedy is in the works, as the project has been resurrected.