I've seen a couple of threads here and elsewhere - there's a bug in Samba that manifests on macOS, but it's unclear to me if the bug is SCALE-specific or not.
The first sign of trouble is seeing "too many open files" errors on macOS (Ventura in my case) in apps that are making extensive use of SMB (Plex and Channels DVR in my case).
I traced this down through googling and the process of elimination. I've tried adjust the Samba-specific max open files setting...that seems to be a dead end for this particular issue, and doesn't resolve the problem.
A little
That's a lot of open files...but
Searching around, I eventually came across:
forums.unraid.net
So I gave it a try...and disabled the Enable Apple SMB2/3 Protocol Extensions setting in the Samba settings after disabling my Time Machine shares.
That seems to have resolved the issue - but it seems there's quite a glaring file descriptor leak going on somewhere in vfs_fruit land...
Welcome any additional insights or perspective, but wanted to call it out for others. It's not a perfect fix (lack of Time Machine shares working), but it does get you up and running.
@anados - Is this a known issue?
The first sign of trouble is seeing "too many open files" errors on macOS (Ventura in my case) in apps that are making extensive use of SMB (Plex and Channels DVR in my case).
I traced this down through googling and the process of elimination. I've tried adjust the Samba-specific max open files setting...that seems to be a dead end for this particular issue, and doesn't resolve the problem.
A little
lsof
magic and you see: 65968 smbd
That's a lot of open files...but
smbstatus
doesn't show more than a handful of files open at a time.Searching around, I eventually came across:

smbd[6195]: Too many open files, unable to open more! smbd's max open files = 16424
Hi - having an issue where I'm periodically losing connection to Unraid and at this point I believe I believe I have it tracked down to my backup software. I run a backup of the network volumes on Unraid from another PC using CrashPlan and after 4-6 hours it reaches the max file limit. The title ...
So I gave it a try...and disabled the Enable Apple SMB2/3 Protocol Extensions setting in the Samba settings after disabling my Time Machine shares.
That seems to have resolved the issue - but it seems there's quite a glaring file descriptor leak going on somewhere in vfs_fruit land...
Welcome any additional insights or perspective, but wanted to call it out for others. It's not a perfect fix (lack of Time Machine shares working), but it does get you up and running.
@anados - Is this a known issue?