In article <516d48e1-48d6-794d-b491-c7a66ddd29ea%teccmail.de@localhost>,
Andreas Beck <lists%teccmail.de@localhost> wrote:
Hello,
one of my samba-servers opens too many files until notification "Too
many open files) from the system.
fstat | grep smbd |wc -l
1704
after 2h.
Is there a way, to reduce open files in samba, or must I set more
descriptors?
I think, 1704 open files, while copying 5GB small files, does not look good.
Regards,
Andreas
fstat:
...
root smbd 538 816* internet stream tcp
root smbd 538 817* internet stream tcp
root smbd 538 818* internet stream tcp
root smbd 538 819* internet stream tcp
root smbd 538 820* internet stream tcp
root smbd 538 821* internet stream tcp
root smbd 538 822* internet stream tcp
root smbd 538 823* internet stream tcp
root smbd 538 824* internet stream tcp
root smbd 538 825* internet stream tcp
root smbd 538 826* internet stream tcp
root smbd 538 827* internet stream tcp
root smbd 538 828* internet stream tcp
root smbd 538 829* internet stream tcp
root smbd 538 830* internet stream tcp
root smbd 538 831* internet stream tcp
root smbd 538 832* internet stream tcp
root smbd 538 833* internet stream tcp
root smbd 538 834* internet stream tcp
root smbd 538 835* internet stream tcp
root smbd 538 836* internet stream tcp
root smbd 538 837* internet stream tcp
root smbd 538 838* internet stream tcp
root smbd 538 839* internet stream tcp
root smbd 538 840* internet stream tcp
root smbd 538 841* internet stream tcp
root smbd 538 842* internet stream tcp
root smbd 538 843* internet stream tcp
root smbd 538 844* internet stream tcp
root smbd 538 845* internet stream tcp
root smbd 538 846* internet stream tcp
root smbd 538 847* internet stream tcp
root smbd 538 848* internet stream tcp
root smbd 538 849* internet stream tcp
from smb.conf(5)
max open files (G)
This parameter limits the maximum number of open files that one
smbd(8) file serving process may have open for a client at any one
time. The This parameter can be set very high (16404) as Samba uses
only one bit per unopened file. Setting this parameter lower than
16404 will cause Samba to complain and set this value back to the
minimum of 16404, as Windows 7 depends on this number of open file
handles being available.
The limit of the number of open files is usually set by the UNIX
per-process file descriptor limit rather than this parameter so you
should never need to touch this parameter.
Default: max open files = 16404
christos