LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-08-2012, 02:45 PM   #1
jjjj12212
LQ Newbie
 
Registered: Feb 2012
Posts: 16

Rep: Reputation: Disabled
Cool Increasing the Speed of Tar


Hi Everyone,

I would like to know how I can increase the performance of my backup command (tar -czf) so it can backup my files faster?

Does having more CPU increase the performance of Tar or is it File I/O?
I recently replace my 2TB drive with a 3TB drive and found my backups are going slower and I would like to know if there is a simple way to increase the performance of the backups so it can finish on time.

thanks,

jjjj12212
 
Old 11-08-2012, 02:47 PM   #2
adol83
Member
 
Registered: Jul 2012
Location: Rome
Distribution: RHEL6, CentOs
Posts: 92

Rep: Reputation: 1
Hello,

RPM of your hard disk are increased or decresead?
 
Old 11-08-2012, 02:59 PM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
Do you make your backups to the same drive?
 
Old 11-08-2012, 03:24 PM   #4
jjjj12212
LQ Newbie
 
Registered: Feb 2012
Posts: 16

Original Poster
Rep: Reputation: Disabled
hi Adol,
The RPM has increase from 5900RPM to 7200RPM
 
Old 11-08-2012, 03:36 PM   #5
jjjj12212
LQ Newbie
 
Registered: Feb 2012
Posts: 16

Original Poster
Rep: Reputation: Disabled
Hi TobiSGD,

the backup goes to a another internal SATA drive.
 
Old 11-08-2012, 04:12 PM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
Usually tar is limited by I/O. That changes if you do compression on the fly. Depending on the data, the type of compression and the level of compression this will be limited by CPU, not I/O.
 
Old 11-08-2012, 06:38 PM   #7
adol83
Member
 
Registered: Jul 2012
Location: Rome
Distribution: RHEL6, CentOs
Posts: 92

Rep: Reputation: 1
you could try to renice the copy process after it began

Code:
top
r (-19)
and see if it speeds up
 
Old 11-08-2012, 08:06 PM   #8
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Other options include

1. try different compression options: gzip, bzip2, xz etc
2. most if not all compression progs have options (eg 1 - 9) on how much compression to do.
Less compression equals faster throughput.
Note that in this case, I think you'd have to do a basic tar first, then call compression utility separately in order to be able to specify compression level.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to increasing downloading speed in ubuntu 9.10 amritpalpathak Linux - Software 1 02-26-2010 09:42 AM
Increasing speed of writing to USB drive srinivas.ap Linux - Newbie 2 01-18-2008 07:14 AM
Increasing the Speed of dial up on linux box anujhere Linux - Networking 1 07-15-2005 01:57 AM
Tell me tips about increasing system speed kornerr Linux - General 30 03-19-2005 12:14 AM
Increasing the speed of my modem bmanning Linux - General 1 04-13-2001 10:32 AM


All times are GMT -5. The time now is 10:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration