A too many open files problems

Kevin Huang kevinhuang at qnap.com
Tue Oct 22 00:39:44 MDT 2013


Hi,

      I try to copy 50000 files to a floder that I create on my Freebsd 9.1
samba 4.0.8 system.
      That would fail with the the message "Too many open files, unable to
open more!  smbd's max open files = 16384".

  Too many open files, unable to open more!  smbd's max open files = 16384
[2013/10/22 14:14:58.578522,  0] ../source3/smbd/open.c:340(fd_open)

       So I do a test I create a floder. And I just enter this folder.
There are there files on this folder.
       Then I command "losf -p pid".  I see the three files were still
holded by the process, although I don't open them.

smbd    66082 root   46r    VREG               0,89      3894 3797927
/usr/home/gino1/share/aaa/aaaa/conn_idle.c
smbd    66082 root   47r    VREG               0,89     35349 3797928
/usr/home/gino1/share/aaa/aaaa/close.c
smbd    66082 root   49r    VREG               0,89      8442 3797929
/usr/home/gino1/share/aaa/aaaa/conn.c
        So if I try to copy 50000 files to a new folder again, I see the
files that were holded by the process grow up.

        Why the samba should keep these file handle?

Best Regard,
Kevin Huang


More information about the samba-technical mailing list