I access a samba share on a raspi 2b (USB-Sata adapter with WD red 1TB, latest raspbian buster light) with Dolphin from Leap 15.1 (both devices on same gigabit switch). When I try to access a directory with a VERY high number of small files (.jpg from a cam with motion detection), Dolphin times out and I get an error message.
On the raspi I can access the directory via console and if I move a large number of the .jpgs to subdirectories Dolphin can access the directory, so no problem with file system or so.
My question: How much files are “too much” for the Dophin? Any idea?
I have seen similar reports for other file managers relying on libsmbclient and large directory listings, but don’t have a good handle on it. I don’t have larger directories of files to contend with, so haven’t really noticed any issues.
FWIW, there was a kde bug discussing inefficient samba comms to get directory listings, now fixed in samba 4.12+ apparently, (and also requires Dolphin 20.04.0+). It might be interesting to use the KDE version using KDE_repositories and samba from network:samba:STABLE to see if this improves things for you. I’ll leave you with that.
I tried to access the same share from Dolphin via smb://… on a TW install (samba and Dolphin have there the 4.12+ 20.4+ versions recommended in your final post).
But I also get
Timeout on server
192.168.111.108
with smbclient I get a cryptic error
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
for any subdirectory in the share, can list only the highest directory… oO
Yes, I only mentioned that as a way to get around the error you reported. It won’t solve the time-out issue of course. It would be interesting to see if using SMB3 helps at all.
It’s not about being necessary, but an optimisation that may help with large directories for the reason outlined below…
Using these settings, all new files on the share are created using lowercase. Samba no longer has to scan the directory for upper- and lowercase. This improves the performance. For further details about the parameters, see the descriptions in the smb.conf(5) man page.