Solved

tar -xzf

Posted on 2000-04-14
5
863 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 21

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 21

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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

628 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