Solved

tar -xzf

Posted on 2000-04-14
5
803 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
llcommand 6 98
Tracking which app / process changes permission of a file in SOlaris 10 4 121
Unix Question 19 50
spectrum scale snapshot  resotre/mount 1 10
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 …
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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.

790 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