No changes to shares are needed.
Hello
@anodos
I've done some more testing with modifying 2 parameters on mac side (Monterey)
the set of data is 107 GB 16k items (audiofiles .wav)
Mac is rebooted between each settings modification and is the only client in the setup.
Truenas is v13 Samba port update
@anodos sent a few days ago and
fruit:streamname_optimization = true
is added in aux parameters at share level. (rest of settings are as before, sync disable in pool and dataset, no compression, no atime... strict sync no in smb service.
The test is : Copy to server // open folder with about 2K/8k items inside // Delete (everything done from finder on the mac)
the figure (XXM) indicate the level of ARC request demand metadata during the operation
tested with or without use of the DS Store files on network volume
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool TRUE
(or false)
and use or not of
dir_cache_off=Yes
in nsmb.conf
the result is very interesting as truenas behave completely differently depending on which is "on" or "off".
to simplify :
"DS Store disabled" mean there will be no usage of DS store file by the finder. "Enabled" mean the opposite
"with dir cache off" mean the
dir_cache_off=Yes
is added to nsmb.conf. "Without" mean the opposite.
1 : DS Store disabled + with dir cache off =
Copy 6min30s (<10M) // Open Folder : minutes to show content so barely usable (50M/smbd100%) // Delete 1min30sec (<20M) !! Fastest ever
2 : DS Store enabled + with dir cache off =
Copy 5min (<10M) // Open Folder : Unusable minutes to show content and arc metadata stick to 50M for 30 minutes!!! smbd 100% even after closing finder windows and don't do anything. During this time you can't do anything on the server from the mac and the mac user don't know that the server is crawling // Delete (after waiting that the arc metadata activity is over) 1m30sec (<20M) Fastest ever.
3 : DS Store enabled + without dir cache off = (the default apple configuration for these two settings)
Copy 6min (<10M) // Open Folder a second to show content, best browsing experience // Delete 6minutes (40M)
4 : DS Store disabled + without dir cache off =
Copy 5min (<10M) // Open Folder : Not the best experience but acceptable a few second to show content // Delete 6minutes (35M)
Voilà, all these results are reproducible.
So we can see that there are clearly some difference in performance depending how the mac is configured. And it's about how the mac will handle his DS stores files and use them and also if it can use local caching mac side while using network shares.
We can also see that we can achieve very fast delete performance in SMB. but in this case the browsing experience is a nightmare.
And, that's my question, Why ? Is there some more adjustments possible on truenas side or mac side ? the same way than streamname_optimization and the last update achieve.
Let me know if anything
Nicolas