I had a truenasCore 13.0-U6.8 system named Joshua with a 4 disk raidz2 pool. I use samba to share it with windows clients. I upgraded it to SCALE 24.04.2.5 and then quickly to 24.10.2.3. All seemed well until a few days later I got reports of copying files between folders within the same share being extremely slow, like spending a lot of time in the hundreds of kilobytes/s range, and only sometimes getting up to 3 or 4 MB/s. The folders exhibiting this behavior have hundreds of small mp3 files in them and are 1-2GB in total size. Copying these same folders before the upgrade, on 13.0, gave an average speed of 30MB/s or more. So it cannot be hardware related, as nothing was changed during the upgrade.
I had another system, named Igal, that I had upgraded from 13.0 to 24.10.0.2, and it did NOT exhibit this problem. I then upgraded it to 24.10.2.1 and the problem appeared; it too had extremely slow copies for large directories with small files. Returning to 24.10.02 made the problem go away.
Back on Joshua, I have found that copying the same directory from a local hard drive to the samba drive is still fast, as is copying from the samba drive to the local hard drive. Only copies from one folder in a share to another folder in a share on the same server are slow (same or different share doesn’t matter). Unfortunately, this is a common operation for us.
These copies were being done with windows explorer, as that is how users will do them. However, if I make the same copies with robocopy or rclone, they copy fast! Same exact files and src/dest.
> robocopy D1 "copy dir" /E
...
Total Copied Skipped Mismatch FAILED Extras
Dirs : 10 9 1 0 0 0
Files : 240 240 0 0 0 0
Bytes : 714.25 m 714.25 m 0 0 0 0
Times : 0:00:09 0:00:07 0:00:00 0:00:01
Speed : 96,750,879 Bytes/sec.
Speed : 5,536.130 MegaBytes/min.
Also, smb shares mounted on Linux are fast.
Further, on Joshua, I created a new pool from one extra disk, just for testing, and it does NOT exhibit the problem!
I’m really stumped. The fact that I can make the problem appear and disappear with an OS version change indicates that it’s not a pool level problem, since that stays the same. But the fact that, at the same version, I can make one pool have the problem, and one not have the problem, tells me there is something pool related. I’ve read some posts saying that samba is just slow with small files, but robocopy is still using samba and is fast.
I have since upgraded Joshua to 25.04.2.1, but the problem remains.
I read this post, which sounded like a similar problem. The conclusion there was that the problem went away several reboots. I’ve rebooted this system 3 times now, but no luck.
Any ideas?
