How to limit number of rsync thread?

Wayne Davison wayned at samba.org
Mon Mar 14 17:37:26 GMT 2005


On Sun, Mar 13, 2005 at 11:40:30PM -0800, Ken Huang wrote:
> But Soralis report error message like 'open too many file handles'.

The way rsync is currently written, it opens a directory for every level
in the current path.  So, if it has recursed down to sending files from
foo/bar/baz/, rsync has 3 directories open.  That might be the source of
the problem if you have a low file-handle limit and a deep directory
structure.  Try running like "ulimit -n" to see how many open file
descriptors are allowed.

Note that the directory-recursion code for 2.6.4 release has been
changed to not keep the directory handle open when processing a
directory's subdirs.  (This will be new for 2.6.4pre3.)

..wayne..


More information about the rsync mailing list