[kwlug-disc] rsync causing processor spike

Paul Nijjar paul_nijjar at yahoo.ca
Fri Dec 6 14:24:47 EST 2013


Rsync is computationally expensive if it thinks that it is sending
files remotely (because then it computes rolling checksums on all the
files, transfering only those parts that have changed). 

I do not think that you are in that situation. However, you might try
the --whole-file (-W) option, which will transfer whole files without
computing checksums. This will probably be slower, but it might be
more lightweight. 

If you are spiking the processor, then why is ionice the right tool to
use and not plain old nice?

- Paul

On Fri, Dec 06, 2013 at 11:43:47AM -0500, Joe Wennechuk wrote:
> I am trying to rsync to an external drive on a running system; however, it is causing the processor to spike and bring down the webserver.
> I tried#> ionice -c3 -n19 rsync -vhr /dir/* /external/backup/ 
> but it still spikes the processor? 		 	   		  

> _______________________________________________
> kwlug-disc mailing list
> kwlug-disc at kwlug.org
> http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org


-- 
http://pnijjar.freeshell.org




More information about the kwlug-disc mailing list