Solved

tar -xzf

Posted on 2000-04-14
5
748 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
Comment Utility
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
Comment Utility
try tar xzfb with a blocking factor
0
 

Author Comment

by:bsher
Comment Utility
Giv more detail
0
 
LVL 20

Expert Comment

by:tfewster
Comment Utility
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
Comment Utility
Answer accepted
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

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 …
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.:

771 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

11 Experts available now in Live!

Get 1:1 Help Now