SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
rsnapshot running extremely slow...
Author Message
Post rsnapshot running extremely slow... 
Hi All,

I recently tried out rsnapshot on my server in order to automate backups, but I find it running extremely slow. My first backup of about 100GB took about 12 hours to complete. After that, I did another hourly backup (manually from command line) while watching the rsnapshot log and it took about 4 additional hours (barely anything (definitely < 1GB) should have changed between those backups. During the 2nd backup, I noticed that the cp -la command took about 2 hrs in order to copy the hourly.1 folder to hourly.0. The remaining 2 hours was rsync completing the backup.

I then turned on link_dest (as suggested by some others having slow rsnapshot issues) and ran it again, however about the same situation... this time, rsync took about 4 hours to run.

Since the cp command took an extreme amount of time, my first guess is that disk or CPU is slowing things down... do you agree? I admit that this isn't a super fast server -- running about 1.2 GHz.

Here's also my hdparm output... does something seem out of the ordinary there?

/dev/hdg:
Timing cached reads: 400 MB in 2.07 seconds = 192.99 MB/sec
Timing buffered disk reads: 162 MB in 3.02 seconds = 53.63 MB/sec

/dev/hdg:
multcount = 16 (on)
IO_support = 0 (default 16-bit)
unmaskirq = 0 (off)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 256 (on)
geometry = 24321/255/63, sectors = 200049647616, start = 0


I appreciate any help you can offer.

Thanks!

Jeff

Post rsnapshot running extremely slow... 
Hallo, Jeff,

Du meintest am 01.02.10:

I recently tried out rsnapshot on my server in order to automate
backups, but I find it running extremely slow. My first backup of
about 100GB took about 12 hours to complete. After that, I did
another hourly backup (manually from command line) while watching the
rsnapshot log and it took about 4 additional hours (barely anything
(definitely < 1GB) should have changed between those backups. During
the 2nd backup, I noticed that the cp -la command took about 2 hrs in
order to copy the hourly.1 folder to hourly.0. The remaining 2 hours
was rsync completing the backup.

That's really slow.
On my main machine (1,5 GHz, 1,5 GByte RAM) backing up about 50 GByte
from one disk to another in the same machine takes about 10 minutes, and
deleting the oldest hourly (or daily, or weekly) backup additionally
takes about 5 minutes.

Target disk: S-ATA, Samsung HD502HI. "hdparm -t" actually tells about 65
MByte/s buffered disk read, but the disk is busy with another job.

How is your target disk connected: S-ATA to mainboard, S-ATA to PCI-card
or external via USB?

Viele Gruesse!
Helmut

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post rsnapshot running extremely slow... 
On 2/1/2010 11:37 AM, Helmut Hullen wrote:
That's really slow.
On my main machine (1,5 GHz, 1,5 GByte RAM) backing up about 50 GByte
from one disk to another in the same machine takes about 10 minutes, and
deleting the oldest hourly (or daily, or weekly) backup additionally
takes about 5 minutes.

Target disk: S-ATA, Samsung HD502HI. "hdparm -t" actually tells about 65
MByte/s buffered disk read, but the disk is busy with another job.

How is your target disk connected: S-ATA to mainboard, S-ATA to PCI-card
or external via USB?



Both the main disk and the target backup disk are internal disks
connected IDE to the motherboard. It doesn't seem as if our disk speeds
are dramatically different (54 MB/s vs. 65 MB/s.

Thanks for your help

Jeff

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post rsnapshot running extremely slow... 
have you tried to set link_dest to 1?  This sped things up considerably for me.

On Mon, Feb 1, 2010 at 12:37 PM, Jeff Plotzke <jeff < at > plotzke.com ([email]jeff < at > plotzke.com[/email])> wrote:
On 2/1/2010 11:37 AM, Helmut Hullen wrote:
That's really slow.
On my main machine (1,5 GHz, 1,5 GByte RAM) backing up about 50 GByte
from one disk to another in the same machine takes about 10 minutes, and
deleting the oldest hourly (or daily, or weekly) backup additionally
takes about 5 minutes.

Target disk: S-ATA, Samsung HD502HI. "hdparm -t" actually tells about 65
MByte/s buffered disk read, but the disk is busy with another job.

How is your target disk connected: S-ATA to mainboard, S-ATA to PCI-card
or external via USB?




Both the main disk and the target backup disk are internal disks
connected IDE to the motherboard.  It doesn't seem as if our disk speeds
are dramatically different (54 MB/s vs. 65 MB/s.

Thanks for your help

Jeff


------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net ([email]rsnapshot-discuss < at > lists.sourceforge.net[/email])
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss




Post rsnapshot running extremely slow... 
On 2/1/2010 12:44 PM, Jafo wrote:
have you tried to set link_dest to 1? This sped things up
considerably for me.

Yes, I set link_dest to 1 and then the individual rsync commands took
longer (since the cp command doesn't execute). Still about the same
overall time... it just changed what command took the time up.

Thanks.


------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post rsnapshot running extremely slow... 
Am Montag, 1. Februar 2010 16:44:10 schrieb Jeff Plotzke:
Hi All,

I recently tried out rsnapshot on my server in order to automate
backups, but I find it running extremely slow. My first backup of about
100GB took about 12 hours to complete. After that, I did another hourly
backup (manually from command line) while watching the rsnapshot log and
it took about 4 additional hours (barely anything (definitely < 1GB)
should have changed between those backups. During the 2nd backup, I
noticed that the cp -la command took about 2 hrs in order to copy the
hourly.1 folder to hourly.0. The remaining 2 hours was rsync completing
the backup.

I then turned on link_dest (as suggested by some others having slow
rsnapshot issues) and ran it again, however about the same situation...
this time, rsync took about 4 hours to run.

Since the cp command took an extreme amount of time, my first guess is
that disk or CPU is slowing things down... do you agree? I admit that
this isn't a super fast server -- running about 1.2 GHz.

Jeff,

there are a couple of potential reasons:

0) USB 1.X connection to source or backup disk. This could be caused by an
ancient USB hub or outdated main board hardware. Please check your manual and
buy an USB 2.0 add in card. Do you use sdg for backup or is it the source?
Please repeat the hdparm test with the other disk. Loose cables also fall into
this category. Please check "dmsg" output.

1) Original and backup are on partitions of the same disk, e. g. in your case
/dev/sdg1 and /dev/sdg2. I'd not call this a reliable backup, but it makes
most use of the given resources. The disk head needs to move a lot between the
partitions, slowing things down without reading/writing much data.

2) No hard linking but full copying in every run. "ls -li
daily.0/path/to/unchanged/file daily.1/path/to/unchanged/file" (the same file)
should have the same number (inode) in the first column. Your varying run
times are a hint that hard linking is done correctly. An obvious reason is

3) Backing up to a file system unable to store hard links, e. g. FAT. Using an
USB disk as bought is the most common cause.

4) Backing up to a file system that is slow in creating and deleting hard
links, e. g. XFS or JFS. Reiser3 becomes slower over time, especially as a
backup partition where free space gets fragmented quite fast. Ext3 and
especially ext4 are fast. Btrfs is lightning fast, but too experimental.

5) Backing up to a file system that is nearly full, e. g. over 80%. It gets
difficult to allocate large chunks of free space and similar to 1) disk seeks
increase.

6) Backing up from a fragmented source. "Format and restore" is the Unix way
of defragmenting and should be done after a partition has been used for some
years.

7) Using file systems slow at traversing the directory structure. "time find
/mount/point" with "cold" caches is a good benchmark for this. Please provide
the tail of the output for both partitions.

This write up could become part of the FAQ.

HTH,

Johannes Niess


------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post rsnapshot running extremely slow... 
On Mon, Feb 01, 2010 at 09:38:58PM +0100, Johannes Niess wrote:
Am Montag, 1. Februar 2010 16:44:10 schrieb Jeff Plotzke:
Hi All,

I recently tried out rsnapshot on my server in order to automate
backups, but I find it running extremely slow. My first backup of about
100GB took about 12 hours to complete. After that, I did another hourly
backup (manually from command line) while watching the rsnapshot log and
it took about 4 additional hours (barely anything (definitely < 1GB)
should have changed between those backups. During the 2nd backup, I
noticed that the cp -la command took about 2 hrs in order to copy the
hourly.1 folder to hourly.0. The remaining 2 hours was rsync completing
the backup.

I then turned on link_dest (as suggested by some others having slow
rsnapshot issues) and ran it again, however about the same situation...
this time, rsync took about 4 hours to run.

Since the cp command took an extreme amount of time, my first guess is
that disk or CPU is slowing things down... do you agree? I admit that
this isn't a super fast server -- running about 1.2 GHz.

Jeff,

there are a couple of potential reasons:

0) USB 1.X connection to source or backup disk.

Jeff said he uses internal IDE disks for source and backup.

1) Original and backup are on partitions of the same disk, e. g. in your case
/dev/sdg1 and /dev/sdg2. I'd not call this a reliable backup, but it makes
most use of the given resources. The disk head needs to move a lot between the
partitions, slowing things down without reading/writing much data.

Jeff referred to /dev/hdg (but I didn't notice whether that was source
or destination). I seem to remember using /dev/hde and /dev/hdg for
SATA-acting-like-IDE disks a few years ago.

I have another suggestion: is this machine low on RAM?
It can use quite a bit of memory to store per-inode information so
cp -al and rsync can detect hard links. This can lead to a lot of
paging/swapping if the working set is larger than available RAM.

You could diagnose for this by running top while rsnapshot is going,
and look at how much is in RES for the cp and rsync processes (bigger
indicates more RAM is being used by that process), how big are Mem: free,
Mem: buffers and Swap: cached (bigger indicates more RAM is available).

This write up could become part of the FAQ.

It seems to me a little long to put the whole answer inline in the FAQ,
but if I could put a link to something like that it would be good.

--
___________________________________________________________________________
David Keegel <djk < at > cybersource.com.au> http://www.cyber.com.au/users/djk/
Cybersource P/L: Linux/Unix Systems Administration Consulting/Contracting

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB