Score:0

Samba share slow on Ubuntu

in flag

I need some help as it is driving me crazy. I have created a Samba share on my Ubuntu 20.04 machine, but it is incredibly slow when browsing it from a Windows 10 machine. Especially loading image thumbs is slow.

Copying a file from the Samba share to a folder on my Windows 10 pc of about 10gb shows about 100 MB/sec and takes approx. 3 minutes (not that bad), however when testing readspeeds on the Ubuntu machine it shows x2:

root@xxx:~# sudo hdparm -Tt /dev/sda

/dev/sda:
 Timing cached reads:   25776 MB in  1.99 seconds = 12975.74 MB/sec
 Timing buffered disk reads: 678 MB in  3.00 seconds = 225.72 MB/sec

I've tried setting "socket options = TCP_NODELAY" in smb.conf, but that doesn't make a difference.

Any ideas?

ChanganAuto avatar
us flag
Network shares depend on the network more than anything else. I don't see a problem here.
cn flag
I agree. Network is a factor. Going from/to ext to/from ntfs is also slow. I do not believe software is going to make it go quicker.
in flag
So you guys believe 100MB/s isn't that bad at all? Would you suggest changing to ntfs instead of using ext4?
cn flag
Change what to ntfs? And I would generally say no -but- samba is about connecting Linix/ext to Windows/ntfs+fat. What part do you believe you can switch to ntfs?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.