I'm new on the rsync utility and just want to be enlightened. I have a scheduled rsync using cron. We are transferring 981 files with 50GB total. It's going through SSH from source to destination.
Here is my command: * * * * * /usr/bin/rsync -a --update --inplace /sourcedir/ 10.150.1.XXX:/destinationdir/
The idea is I just want to transfer files from source to destination and if the source is newer, update the destination with the new one.
My main problem is that rsync uses 100% of my CPU and I want to learn why it's doing that and how I can remediate or if possible, doesn't impact utilization at all?
nice still wants 100% of a CPU but gives other concurrent CPU requests precedence. It is nice to other processes.
I wonder why you have --inplace. Perhaps it is faster without?
Perhaps you should have -H instead, preserve hard links. /usr/bin/rsync -aH --update /sourcedir/ 10.150.1.XXX:/destinationdir/
You want the rsync to run as fast as possible and not with priority over other processes, but, yes, if 100% CPU is available (i.e. nobody else needs it), then it should use it.