Question

Rsync Speed issue

Asked by: bnoyzy

Hi,
I am currently having a little trouble with the speed of my rsync command between 2 ready nas DUOs.

The rsync process runs between 2 netgear ready nas duo devices and the files involved are backup files created by Acronis True Image Backup software. These files are very large (a full backup is about 70GB and the differential backups are about 15GB each per day). This means a single directory can have over 100GB made up of just a few files within.

The command I am using currently outside my bash script to see the progress live is:

rsync --verbose --progress --stats --recursive --times --perms --links --delete /backup/* READYNAS01::backup

The command works how I intended but I believe I require more knowledge of what rsync is actually doing behind the scenes so I can understand why it is taking so long and how I can fix this issue.
I am guessing the problem is where rsync compares the directories for changes.
Does it look through the entire file for where data has changed or does it simply compare dates and sizes?
I find that with the above used information output switches (--verbose --progress --stats) there is a long period of time between outputting the directory and before actually transferring the files found different within that directory.
Is it looking inside the 100GB of data for changes instead of just the comparing their sizes and dates to know if to overwrite them with the sources files.
Is there a switch I have missed that can fix this?


This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-09-03 at 23:25:59ID24706894
Tags

Rsync

,

readynas

,

backups

,

linux

,

unix

Topics

rSync Backup Utility

,

Unix Systems Programming

,

Hard Drives & Storage

Participating Experts
2
Points
500
Comments
20

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. Rsync
    Hello, I have made a script in linux that will copy the modified files from a server to another one. This is used as a backup system. Now I would like to modify this system in order to copy archives of the modified files. For example. Run rsync and obtain a list of modified ...
  2. delta copy for rsync
    will rsync use the delta-copy (rsync algorithm: portion of the file that has changes) with a regular NAS, or is a rsync server required.
  3. Nas 200 5195-25T vs Core 2 Duo hardware
    Hi, Nas 200 5195-25T vs Core 2 Duo hardware Other than the space & RAID compatablility. Which is better in speed and performance between these 2 HDD. Regards Sharath
  4. Acronis
    Hi, I am looking to use Acronis to image my servers in the event that we need to do a bare metal restore. Is this a good/reasonable product to use? Many thanks
  5. Rsync help Linux
    Hi there, I'm in pain :( I did a Firmware upgrade on my Linux QNAP 209 Pro NAS Server and it went wrong for some reason. I have gained access using the QNAP Live CD (Linus OS) and started copying which is great (1.5 TB to USB External). After 8 hrs its stopped due to my l...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: jmcse1Posted on 2009-09-04 at 07:41:28ID: 25260153

Rsync builds a listing of the source directory first, if the link to your destination READYNAS01::backup is slow then this will take along time. Then rsync compares the files at the byte or delta level for changes. Then it transfers just the changed bytes so it wouldn't have to transfer the entire file, this is what makes rsync fast once you have a copy of the data, however if there are large changes and a slow connection it can still fall behind.

James  

 

by: jmcse1Posted on 2009-09-04 at 07:50:41ID: 25260258

Also I typically run the command with only the following switches.
--delete --compress --stats --archive
I have it automated on a linux system via cron so I don't need the progress switch and the archive switch contains several other switches, compress will compress the data prior to sending it across the network.
James

 

by: gheistPosted on 2009-09-06 at 04:37:06ID: 25269488

rsync does not overwrite files
it checksums blocks of file data and compares them to find out parts which needs updating if file date and size is different
--ignore-times will make it recheck content of all files.

 

by: jmcse1Posted on 2009-09-06 at 09:41:49ID: 25270562

Thanks gheist,
For restating what I just said.

James

 

by: gheistPosted on 2009-09-06 at 11:46:10ID: 25271008

i answered question - if there is something asker can do to reduce wait before transfer - actually nothing, it is part of rsync.

 

by: bnoyzyPosted on 2009-09-06 at 15:01:13ID: 25271741

Thanks for the feedback so far and sorry for the delayed reply over the weekend.
FIrst of all a little more info on the environment:

Network:
The source and destination are linked on a LAN via a gigabit switch and cat 5 cable (although when the transfer starts I am getting extreamly low speeds of 400kB/s).

File info:
The files range from 10GB to 80GB in size each.
Approximate rsync share's (backup) disk usage is 300GB of a 1TB RAID1 array.

Back to the problem:

Just to get this straight what is rsync doing between verbosing the following 2 lines.

---------------------------------------
sending incremental file list
W:\SERVER_E_DRIVE\Script_Backup\E_Drive_Script_Backup.tib
---------------------------------------
This is one point where the process takes a long time (over 2 hours).
What is it actually doing at this point (I notice that the rsync process on the destination server is very CPU bound (running at 60-100%) but the source rsync process is not using the CPU much at all.

 

by: bnoyzyPosted on 2009-09-06 at 16:33:01ID: 25272036

Nearly 9 hours after initiating the process the transfer rate shown in the progress output just suddenly rose from 400kB/s to 5.2MB/s. Any ideas what could be causing this or how I can diagnose it?

 

by: bnoyzyPosted on 2009-09-06 at 22:55:52ID: 25272939

More information:
I just installed iperf on both systems to check the speed results and I recieve a 14Mb/s (1.75MB/s).

 

by: gheistPosted on 2009-09-06 at 23:20:36ID: 25273011

Gigabit needs Cat5E cabling...
You have to follow all the network path - yours look like duplex mismatch somewhere....

 

by: bnoyzyPosted on 2009-09-07 at 00:18:12ID: 25273213

Cabling is CAT5e.

Can't see a reason for duplex mismatch:
ReadyNAS01 is set to Full Duplex
ReadyNAS02 is set to Full Duplex
Both respective ports on gigabit switch (SRW2016) are running at 1000M and set to full duplex.

Additional networking info:
I have also enabled jumbo frames on both ReadyNAS units.

 

by: gheistPosted on 2009-09-07 at 08:17:04ID: 25275601

Is your switch documented to be able to do jumbo frames?

 

by: jmcse1Posted on 2009-09-07 at 08:27:07ID: 25275674

bnoyzy,

Am I correct in assuming if you do an ifconfig from the server running the rsync you don't seen any error's on the network card?
Very high cpu on the destination server is normal. The larger the files the longer you'll see the high cpu as it processes the file.
How much memory is on both of these servers? Rsync is very memory intensive.
What file system are you using on both of them?

 

by: bnoyzyPosted on 2009-09-08 at 22:53:42ID: 25288542

Gheist:
The switch is compatible for jumbo frames.

jmcse1:
Each NAS has 256MB RAM
Both filesystems are ext3

Keep the comments rolling guys I'm all out of ideas. Thanks so far for all your input.

 

by: jmcse1Posted on 2009-09-09 at 05:24:08ID: 25290375

Bnoyzy,
Here are a few things to try.
I did find some information online about ext3 and the speed of the file system. You can change the setting to speed it up
http://www.ubuntugeek.com/how-to-increase-ext3-and-reiserfs-filesystems-performance.html
I've never done it so make sure your data is backed  up prior. I typically run reiserfs.

If you need the rsync command running from the nas devices I would try upgrading the memory.

Ideally you would use another computer to run the rsync. The second computer would need between 2 to 4 gigabytes of memory. Then you would run rsync from the computer,  mount both nas devices and rsync between the mount points. That way no processing of the rsync was happening on the nas devices.  I would go this route if I were you. Just get a decent cpu with a few gigabytes of ram. Load a version of linux that has rsync many do.

James

 

by: gheistPosted on 2009-09-09 at 09:47:34ID: 25293101

at what speed you can transfer normally? are you using ssh?

 

by: bnoyzyPosted on 2009-09-09 at 15:31:40ID: 25296154

Thanks for the feedback guys but I believe the answer is not spending money in this case as this is a job for a client. I have just tried mounting the other NAS with NFS and using the cp -r -u <source> <destination> command. Just off a rough calculation I was transferring 1GB per 3mins so definetly nothing wrong with the network, and so definetly a problem with the CPU and/or ram not being sufficient enough for the rsync process.
I am just going to write a bash script to use the cp command instead. I hope to get to this today so I will let you all know how I go.

 

by: jmcse1Posted on 2009-09-09 at 18:56:59ID: 25296938

Thanks for the update, sorry to hear you can't go with more ram. I really feel that would have helped.
Good Luck

 

by: gheistPosted on 2009-09-11 at 04:11:50ID: 25308189

 

by: bnoyzyPosted on 2009-09-16 at 15:28:49ID: 25350937

Good link gheist but unfortunatley none of the resolutions there were of help to this case. I have gone to using cp which seems to be working much faster as it does not care about what the internal structure of the files really are, it just looks to if its there or not and copys it if it isn't. Sometimes a dumber process is often much faster as in this case. Rsync is great as I use it between other systems but it just didn't cut it for this odd scenerio.

 

by: bnoyzyPosted on 2009-10-01 at 21:37:49ID: 31624810

Answers related rsync questions that were very helpful for future reference. However cp was the only solution in the end.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...