Flox,
Again, I want to say thanks for you time. I get that this one is pretty mysterious, but I appreciate your efforts.
I’ve done as requested and made the updates you suggested to the config. The final version is at the bottom, so let me know if you spot anything that looks off. I also set the shares exactly as per the guide. I disabled shadow copy on them just to keep things simple.
One note is that I switched my Rockstor from the temp test version I had made the other day to rule out any install errors back to my original one with my actual data on the internal SSD. So even though the USB connection wasn’t impacting the xfer, it’s now out of the mix. Just mentioning this, as you’ll likely notice that there are more shares and that the names differ.
To test I copied a mixed folder of 2.6 GB (414 files: raw files, JPGs and tiny XMPs). While I completely agree that smaller files are going to perform worse, my Ubuntu server shows that this particular set of files can still achieve good speeds on writes. Also, Samba is able to get solid speeds in the inverse direction from both servers, so I don’t think that Samba as a protocol is inherently causing the slow speeds. But there could be some as-yet-undiscovered issue on my system that is causing the Rockstor flavor of Samba to be suffering.
Write:
To my old server: 26s (102 MB/s)
To my Rockstor: 465s (6 MB/s)
Read:
From my old server: 34s (78 MB/s)
From my Rockstor: 31s (85 MB/s)
I had disabled quotas a couple of days ago when you first asked about it, and the RAID level was already set to ‘single.’ I also just now tested the vfs objects = btrfs flag on one of the shares, but it didn’t make any difference.
So, it looks like I’m still at the same place, unless you spot something wrong in what I’ve shared. I thought of one more test that I could do, if I can find some time. I swap a drive and install Rockstor on my old Ubuntu hardware. If it worked well, then at least it would show that the issue is isolated to my new machine (even though it worked perfectly with Ubuntu and the network tests good with iperf). If it also performed poorly, then it would point to some kind of a flaw with the Rockstor version I installed. I should note that I have not done any Rockstor updates yet, because I don’t want to install the free beta versions but don’t want to pay for stable releases if I can’t get it to work right. So I’ll think about doing that.
Thanks!
Current smb.conf
[global]
log level = 3
map to guest = Bad User
cups options = raw
log file = /var/log/samba/log.%m
printcap name = /dev/null
load printers = no####BEGIN: Rockstor SAMBA GLOBAL CUSTOM####
dns proxy = no
obey pam restrictions = yes
pam password change = yes
unix password sync = yes
workgroup = workgroup
####END: Rockstor SAMBA GLOBAL CUSTOM########BEGIN: Rockstor SAMBA CONFIG####
[temp]
root preexec = “/opt/rockstor/.venv/bin/mnt-share temp”
root preexec close = yes
comment = Samba-Export
path = /mnt2/temp
browseable = yes
read only = no
guest ok = no
valid users = mediashare
[samba_share]
root preexec = “/opt/rockstor/.venv/bin/mnt-share samba_share”
root preexec close = yes
comment = Samba-Export
path = /mnt2/samba_share
browseable = yes
read only = no
guest ok = no
valid users = mediashare
[media]
root preexec = “/opt/rockstor/.venv/bin/mnt-share media”
root preexec close = yes
comment = Samba-Export
path = /mnt2/media
browseable = yes
read only = no
guest ok = no
valid users = mediashare
[archives]
root preexec = “/opt/rockstor/.venv/bin/mnt-share archives”
root preexec close = yes
comment = Samba-Export
path = /mnt2/archives
browseable = yes
read only = no
guest ok = no
valid users = mediashare
[media_archived]
root preexec = “/opt/rockstor/.venv/bin/mnt-share media_archived”
root preexec close = yes
comment = Samba-Export
path = /mnt2/media_archived
browseable = yes
read only = no
guest ok = no
valid users = mediashare
####END: Rockstor SAMBA CONFIG####