bug-coreutils
[Top][All Lists]
Advanced

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

mv fails with "Too many open files" when moving _many_ files


From: Cyril Bouthors
Subject: mv fails with "Too many open files" when moving _many_ files
Date: Sun, 17 Oct 2004 23:01:31 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Hi,

I'm having problems when moving everything from a directory that
contains 10852 top level directories and a total of ~300000+ files and
subdirectories with this command:

# mv * ../../../webalizer-clients/

It fails with:

mv: cannot create regular file 
`../../../webalizer-clients/bouthors/usage_200305.html': Too many open files
mv: cannot create regular file `../../../webalizer-clients/bouthors/.htaccess': 
Too many open files
mv: cannot create regular file 
`../../../webalizer-clients/bouthors/index.html': Too many open files
(...)

The same command runs successfuly with ulimit -n 1048576 but you can
see that many (useless?) file descriptors are in use:

# ls -l /proc/`pidof mv`/fd | wc -l
5643
# ls -l /proc/`pidof mv`/fd
total 5533
lrwx------  1 root root 64 Oct 17 21:03 0 -> /dev/pts/563
lrwx------  1 root root 64 Oct 17 21:03 1 -> /dev/pts/563
lr-x------  1 root root 64 Oct 17 21:03 10 -> 
/var/www/jexiste/logs_user/webalizer
lr-x------  1 root root 64 Oct 17 21:03 100 -> 
/var/www/jexiste/logs_user/webalizer
lr-x------  1 root root 64 Oct 17 21:03 1000 -> 
/var/www/jexiste/logs_user/webalizer
lr-x------  1 root root 64 Oct 17 21:03 1001 -> 
/var/www/jexiste/logs_user/webalizer
lr-x------  1 root root 64 Oct 17 21:03 1002 -> 
/var/www/jexiste/logs_user/webalizer
lr-x------  1 root root 64 Oct 17 21:03 1003 -> 
/var/www/jexiste/logs_user/webalizer
lr-x------  1 root root 64 Oct 17 21:03 1004 -> 
/var/www/jexiste/logs_user/webalizer
lr-x------  1 root root 64 Oct 17 21:03 1005 -> 
/var/www/jexiste/logs_user/webalizer
lr-x------  1 root root 64 Oct 17 21:03 1006 -> 
/var/www/jexiste/logs_user/webalizer
lr-x------  1 root root 64 Oct 17 21:03 1007 -> 
/var/www/jexiste/logs_user/webalizer

I think this is a bug, I'm using "mv (coreutils) 5.2.1" with Linux
2.6.6.
-- 
Cyril Bouthors

Attachment: pgplOecDO4gB_.pgp
Description: PGP signature


reply via email to

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