Copy large amount of small files from and to CIFS share results in 65536 SMB connections and errors

ahaeser

Cadet
Joined
May 24, 2022
Messages
1
Situation
* FreeNAS server with a CIFS share
* Windows 2019 Server act as a client to the NAS
* From the Windows server a (sequential) process copies files from and to the same share (with different file names)
* It are much (10.000 - 500.000) and most small files (several kB)
* When doing this, we see, from this client (10.1.1.119) an increasing count of smb connections until the count of 65536 is reached
Used command:
Code:
smbstatus | grep -c 10.1.1.119


Questions
1. 65536 seems to me as a limit, but a limit of what/who?
2. Why are these smbconnections so lazy or why are they not freed faster?
3. What can we do to fix or debug this more?
 
Top