Is TrueNAS slow on SMB from Macs?

steinrr

Dabbler
Joined
Aug 23, 2023
Messages
10
I am currently evaluating Unraid for mye home server setup. It is painfully slow on SMB from Mac. Directory listing takes forever if there are many files in a folder. NFS is working better, but it is an old protocol.

See e.g. here:

Seems that the issue in Unraid is the usage of Linux FUSE for SMB. Does TrueNAS use the same? What are the general feedback from Mac users on SMB in TrueNAS?

I am considering switching over to TrueNAS.
 

Whattteva

Wizard
Joined
Mar 5, 2013
Messages
1,824
I don't use Unraid, but SMB on my Macbook Pro Late 2013 is normal. I don't notice slowness in browsing unless I'm already transferring some other big file and then trying to browse around while that transfer is ongoing.
 

steinrr

Dabbler
Joined
Aug 23, 2023
Messages
10
I don't use Unraid, but SMB on my Macbook Pro Late 2013 is normal. I don't notice slowness in browsing unless I'm already transferring some other big file and then trying to browse around while that transfer is ongoing.
Ok - thanks. What happens if you e.g. try to browse a folder with 5k files in Finder?
 

Whattteva

Wizard
Joined
Mar 5, 2013
Messages
1,824
Sorry, my largest videos are 1920x1200, but honestly, I don't see why even 5k would be an issue since I'd presume it would probably only download the first few frames for the purpose of displaying preview thumbnails.
 

steinrr

Dabbler
Joined
Aug 23, 2023
Messages
10
Sorry for being unclear - I mean having 5K number for files in a folder. The slowdown is with large number of files - not large files.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
@Whattteva they probably mean 5000 files in a single directory, not a "5k" video file.

@steinrr you can use a metadata special device on SSDs to speed up directory lookups. Also 5000 files in a flat directory is never a good idea.
 

steinrr

Dabbler
Joined
Aug 23, 2023
Messages
10
@steinrr you can use a metadata special device on SSDs to speed up directory lookups. Also 5000 files in a flat directory is never a good idea.

What does "you can use a metadata special device on SSDs to speed up directory lookups" mean? Unfortunately I can in many cases not control how many files or folders there are in a single directory. NFS handles it just fine - SMB on Unraid is a pain. I am interested in knowing the state of TrueNAS here - especially to know if TrueNAS uses Linux FUSE for the SMB implementation.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
TrueNAS and ZFS offer you to put the bulk of your data on spinning disks while keeping the metadata (directories among other information) on SSDs for faster lookup.
 

ChrisRJ

Wizard
Joined
Oct 23, 2020
Messages
1,919
NFS is working better, but it is an old protocol.
How is the age relevant, if it works well? Besides, SMB is actually a year older than NFS (1983 vs. 1984 according to Wikipedia).
 
Top