Lots of rsync daemons running

Wayne Davison wayned at samba.org
Fri Jan 15 08:56:02 MST 2010

On Fri, Jan 15, 2010 at 5:26 AM, Jeroen van der Vegt <
jeroen.van.der.vegt at technolution.nl> wrote:

> Today I noticed several rsync processes (23 to be exact) running on the
> server since as long back as November 2009 (according to ps, and also
> /proc/[pid]/stat ). As the clients run for at most a day, that's not what
> I'd expect: I have no clue why some processes do not seem to terminate.

If the clients are indeed gone, then either rsync is not getting an error
reading from the dead socket, or it is hung up doing something else that is
hanging, such as trying to read from a file that hangs in the kernel.  Check
what system call rsync is currently doing using strace (or equivalent).  If
it is doing a series of 30-second select() calls, the sockets are not
erroring out, and using a "timeout = 600" setting in your rsyncd.conf file
will ensure that rsync will eventually die if the socket goes silent (though
it would be nice to investigate why the socket is behaving in such an
abnormal manner as well).  If it is some other call, you should try to
figure out what it is doing and why that is hanging (e.g. lsof to figure out
currently open files may give you a clue).

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/rsync/attachments/20100115/a423ebc5/attachment.html>

More information about the rsync mailing list