A too many open files problems
Volker.Lendecke at SerNet.DE
Tue Oct 22 03:54:59 MDT 2013
On Tue, Oct 22, 2013 at 05:27:05PM +0800, Kevin Huang wrote:
> Hi Volker,
> After the client finish to write the file to the server, it send
> "Close Request" on each file. My clinet is Win7.
> And it is interesting when the client exit "aaaa" this folder, then
> the samba will release all file handles in the folder.
> If I want to trace this issue, which function is the start?
Best would be simultaneously 3 traces:
debug level 10 log of the smbd serving the client
strace of the smbd. strace is what I would use under Linux,
not 100% certain of that is the same under FreeBSD.
ktrace/kdump would probably be okay as well.
That might help to find why Samba does not close(2) the fd.
Maybe it would be best if you did the test for just a few
files, not 50.000 :-)
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de
More information about the samba-technical