Slow SAMBA transfers. Odroid XU4. + FIX

Guides and tutorials for various stuff. Posted by DietPi users.
Post Reply
joaquinain
Posts: 9
Joined: Thu Jun 27, 2019 6:28 pm

Slow SAMBA transfers. Odroid XU4. + FIX

Post by joaquinain »

Hi everyone.

I have Dietpi runnin on an Odroid Xu4 using an SD, and using a SATA III HD for my music, pictures, videos; and an external box using a couple of HDs in RAID 05 to backup my personal data.

I had this setup with Open Media Vault but I tryed DIETPI and I found a better system for my needs.

My problem was, my SAMBA shares were very slow compared with the speed transfer I had with the same hardware and Open Media Vault.

Finally I found the problem which I share in case someone else it is having the same problem.

My transfer speed using the USB 3.0 port with my HDDs, in OMV reached 45MB/s, and a constant rate of around 30-35MB/s; in DIETPI this figure dropped to 15MB/s.

The problem was the buffer in smb.conf

this line

socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536

if you remove last part and let it that way

socket options = TCP_NODELAY IPTOS_LOWDELAY

You will get the max speed back again.

Hope it can help.

The solution I found in Odroid hardkernel forum by the user "infinity85".

Best regards.

P.S. I was using wifi connection, but I also tryed wired and had the same speeds.
Last edited by joaquinain on Fri May 08, 2020 2:48 am, edited 1 time in total.
User avatar
Joulinar
Posts: 2559
Joined: Sat Nov 16, 2019 12:49 am

Re: Slow SAMBA transfers. Odroid XU4.

Post by Joulinar »

Hi,

many thanks for sharing the solution. pls can you share the link to the original post. Maybe it's helpful if someone else would like to read it.

Next to that I would like to move your post to the Community Tutorials section if you agree.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
joaquinain
Posts: 9
Joined: Thu Jun 27, 2019 6:28 pm

Re: Slow SAMBA transfers. Odroid XU4.

Post by joaquinain »

You are very wellcome.

Of course here you have the link:

https://forum.odroid.com/viewtopic.php?t=23405

Response 329

You can move the post as you mention, the credits goes to the other guy in the other forum, but maybe more people can upgrade his machines with the tip.

Best regards.
sebascvl
Posts: 1
Joined: Sun Jul 19, 2020 10:52 pm

Re: Slow SAMBA transfers. Odroid XU4. + FIX

Post by sebascvl »

hello, i have been reading all your solutions, but its very confusing, since im new to the raspberry pi stuff. aparently to fix the problem you should change a line of code within the samba program, would yall mind explaining in a little more detail what i need to do, it would be much apreciated. thanks
User avatar
Joulinar
Posts: 2559
Joined: Sat Nov 16, 2019 12:49 am

Re: Slow SAMBA transfers. Odroid XU4. + FIX

Post by Joulinar »

Hi,

the line would need to be changed on SAMBA config file (/etc/samba/smb.conf) and not on the samba program ;)
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply