Solved

tar -xzf

Posted on 2000-04-14
5
775 Views
Last Modified: 2010-04-21
hi,
 how can i make the tar -xzf faster?

Bcos, it only use 5 % of my server cpu process ?

can i adjust it to 20% or more than that?

thanx
0
Comment
Question by:bsher
  • 2
  • 2
5 Comments
 
LVL 20

Expert Comment

by:tfewster
ID: 2718641
The main limitation on tar will be disk speed, i.e. time taken to read the archive and write files to disk. You can use sar -d to monitor disk & tape drive activity; %busy for the slowest device should be approaching 100% - If not, you can look at balancing the load on disks & SCSI channels
0
 
LVL 1

Accepted Solution

by:
jacquesc030600 earned 50 total points
ID: 2718995
try tar xzfb with a blocking factor
0
 

Author Comment

by:bsher
ID: 2745948
Giv more detail
0
 
LVL 20

Expert Comment

by:tfewster
ID: 2749313
Who do you want more detail from?

BTW, you have to use the same blocking factor (or greater) when reading the archive than when writing it:

man tar
 .
 .
- b        Blocking Factor. Use when reading  or  writing  to
               raw  magnetic  archives  (see  f below). The block
               argument specifies the  number  of  512-byte  tape
               blocks to be included in each read or write opera-
               tion performed on the tarfile. The minimum  is  1,
               the default is 20. The maximum value is a function
               of the amount of memory available and the blocking
               requirements  of the specific tape device involved
               (see mtio(7I) for  details.)  The  maximum  cannot
               exceed INT_MAX/512 (4194303).

               When a tape archive  is  being  read,  its  actual
               blocking  factor  will  be automatically detected,
               provided that it is less than or equal to the nom-
               inal blocking factor (the value of the block argu-
               ment, or the default value if the  b  modifier  is
               not  specified).  If the actual blocking factor is
               greater than the nominal blocking factor,  a  read
               error will result.
 .
 .
0
 

Author Comment

by:bsher
ID: 2923946
Answer accepted
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now