ERRnofiles listing large directory

Michael B Allen ioplex at gmail.com
Mon May 12 21:34:53 GMT 2008


On Fri, May 2, 2008 at 8:53 AM, Jeff Layton <jlayton at redhat.com> wrote:
>
> On Thu, 1 May 2008 17:59:47 -0400
>  "Michael B Allen" <ioplex at gmail.com> wrote:
>
>  > Hi,
>  >
>  > I'm seeing ERRnofiles (0x80000006) from what I'm pretty sure is
>  > TRANS2_FIND_NEXT2 on a large directory with 3.0.14a.
>  >
>  > The customer says the error is with "mostly Samba" but that it could
>  > also be unique to Samba.
>  >
>  > Under what conditions does Samba return ERRnofiles?
>  >
>  > What could my code be doing that could cause such an error?
>  >
>  > The client is doing TRANS2_FIND_NEXT2 on a directory with thousands of
>  > files but it doesn't get them all so it sounds like the error is not a
>  > harmless "There are no more files" type of error as it was originally
>  > intended.
>  >
>  > The error only happens after the client (JCIFS) is crawling for 10+
>  > hours and I'm trying to narrow down if the issue is in my code or on
>  > the server. Any insight would be appreciated.
>  >
>
>  TRANS2_FIND_NEXT can use a lot of open file descriptors on samba.
>  You'll probably need to tune the "max open files" parameter in smb.conf
>  to something higher, and may also need to tune the server's OS to allow
>  for a single process to have more open filehandles (including bumping
>  ulimit -n when starting smbd).

Hi Jeff,

I was hoping to reply with a definitive result for posterity but the
customer never replied with a concrete answer. I think their silence
suggests that it was indeed the descriptor limit that was being hit
though.

Thanks a bunch,
Mike

-- 
Michael B Allen
PHP Active Directory SPNEGO SSO
http://www.ioplex.com/


More information about the samba-technical mailing list