Re: setfacl with many files at cmdline -> Too many open files (fwd)

Andreas Gruenbacher <[email protected]> Thu, 6 Jan 2005 19:18:35 +0100
Newsgroups gmane.linux.file-systems.acl.devel
Message-ID <[email protected]>
On Thursday 06 January 2005 04:43, Nathan Scott wrote:
> FYI - wonder if we have a file descriptor leak in setfacl?
> Or perhaps the nftw in there is holding too many fds open?

What's in /proc/sys/fs/file-max? Maybe we get too close to the system-wide 
limit before setfacl is invoked. Without recursion, nftw shouldn't keep any 
directories open. We could specify a smaller limit to nftw (for example, 
sysconf(_SC_OPEN_MAX) / 2), but I doubt this will help here.

What does this give?

find . -print0 | xargs -0 sh -c "cat /proc/sys/fs/file-nr"

Cheers,
-- 
Andreas Gruenbacher <[email protected]>
SUSE Labs, SUSE LINUX PRODUCTS GMBH
_______________________________________________
acl-devel mailing list
[email protected]
http://acl.bestbits.at/mailman/listinfo/acl-devel