I'm trying to run an rSync backup of one SATA drive to another SATA drive, this is a brand new installation and it's copying fine but very slow for what I would expect of SATA.
I'm only getting 4MB/s! My current rsync command is:
rsync -avz --progress /home/* /home2/
I know when I do that over the network I get 11MB/s so I know the drives are fine, shouldn't SATA be up anywhere over 100MB/s?
EDIT WRITE SPEED
I ran this to test write speed on new disk:
dd count=1k bs=1M if=/dev/zero of=/home2/user/test.img 1024+0 records in 1024+0 records out 1073741824 bytes (1.1 GB) copied, 6.60402 s, 163 MB/s
So write speed is up there pretty fast. Now I will go back in and test read speed.
EDIT READ SPEED
This is running
hdparm to test read and caching speeds:
sudo hdparm -Tt /dev/sdb2 /dev/sdb2: Timing cached reads: 1706 MB in 2.00 seconds = 853.32 MB/sec Timing buffered disk reads: 434 MB in 3.01 seconds = 144.23 MB/sec sudo hdparm -Tt /dev/sda /dev/sda: Timing cached reads: 1640 MB in 2.00 seconds = 819.49 MB/sec Timing buffered disk reads: 540 MB in 3.01 seconds = 179.57 MB/sec
So what did I do wrong with rSync to cause such slow speeds?
EDIT PARTIALLY FIXED
Ok, I found part of my problem, I'm use to sending over SSH so I use
-z. Since I'm so used to doing it I forgot that means compress. So I removed
-z but still I'm at 33MB/s. Still very very slow for SATA transfer.