bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #34976] find: Failed to save working directory in order to [...]: T


From: Scott Kalter
Subject: [bug #34976] find: Failed to save working directory in order to [...]: Too many open files
Date: Thu, 20 Dec 2012 16:46:19 +0000
User-agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.89 Safari/537.1

Follow-up Comment #3, bug #34976 (project findutils):

Seems December is the month for running into this problem.

On a CentOS system with:

yum list installed | grep findutils
findutils.x86_64                  1:4.4.2-6.el6             @base/$releasver

To reproduce easily, do the following:

-------------------------
cd /tmp
mkdir src
mkdir dest
for i in {1..1500}
do
   touch /tmp/src/t$i
done
find /tmp/src -type f -execdir mv '{}' /tmp/dest ;
--------------------------

This should produce something like:

mv: error while loading shared libraries: libselinux.so.1: cannot open shared
object file: Error 24
find: Failed to save working directory in order to run a command on `t1424':
Too many open files

This assumes your ulimit isn't set artificially high:

ulimit -n
1024

I've seen "find -execdir" work with a very large number of files in other
environments.  E.g., it works on an ubuntu system with:

 dpkg-query -l findutils

ii  findutils            4.4.2-4ubuntu1       utilities for finding
files--find, xargs

Hope this helps...

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?34976>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]