high cpu usage of rsync process - sometimes (extremely wired)

Sebastian Schwerdhoefer sschwerdhoefer at multamedio.de
Tue Feb 7 14:55:07 GMT 2006


Hello,

i have two clients (c1 and c2) with 100% same hard- and software and
also two servers (s1 and s2) with 100% same hard- and software. The
servers run "rsync --daemon", the clients start rsync periodically to
syncronize a directory with them, where c1 syncs with s1 and c2 with
s2. The directories are the same on s1 and s2!

Paradoxically the CPU Usage of the rsync process on c1 uses about 50 %
CPU (as displayed in ps -aux), while rsync on c2 uses about 1 % CPU.

Servers and Clients run Red Hat Enterprise Linux 4 on i386
architecture. The Clients use a very long command line to run rsync,
because only filenames which end on .html, .gif and so on should be
synced. In all my tests, rsync didn't ever need to copy files from s1
to c1. It just had to look if there are any jobs to do.

To get completely confused, i added the "--stats" on c1: Now the rsync
process uses about 2 % CPU - mostly! In 1 of 3 cases, it eats up 50 %
CPU again! I'm getting gray hairs with this...

Any idea or suggestion against this mystic behavior?

best regards,
Sebastian Schwerdhoefer



More information about the rsync mailing list