Operating System - HP-UX
1832085 Members
2930 Online
110037 Solutions
New Discussion

how to speed up decompress process ?

 
SOLVED
Go to solution
vas  bolpali
Advisor

how to speed up decompress process ?

Hello,
I am trying to decompress( to the same directory) a file dc.dmp.Z
it is taking long time.
any suggestions to speedup .thnx in advance.

here is my case.
$compress -d dc.dmp.Z
dc.dmp already exists; do you wish to overwrite dc.dmp (y or n)? y
-- here is taking long time.
keeping you ahead of the learning curve
4 REPLIES 4
Uday_S_Ankolekar
Honored Contributor

Re: how to speed up decompress process ?

hi,

This may sound silly..

Did you try uncompress instead compress -d

Or if the file was compressed in some other format like gunzip then using gunzip option to de-compress would be better.
How big is the file..??

Good Luck

-USA...
Good Luck..
harry d brown jr
Honored Contributor

Re: how to speed up decompress process ?

Have you tried to remove the previous file before the decompress? Also, have you looked into using gzip (from gnu)??
Live Free or Die
Alan Riggs
Honored Contributor

Re: how to speed up decompress process ?

I assume this is a large file. Compress/decompress are CPU intensive processes. You can speed it up by adjusting the nice value (nice, renice). Be aware that this can negatively impact CPU access for all other processes.
Santosh Nair_1
Honored Contributor
Solution

Re: how to speed up decompress process ?

Looks like you're dealing with an Oracle dump file(?) These files tend to be fairly large. Rather than uncompressing the file and then importing the file, how about using a pipe to decompress and import the file at the same time? Not really sure if you will save any time doing it this way, but you'll definitely save space.

To do this, first create a pipe file:

mkfifo {PIPE FILE}

then run gzip -d on the pipe (gzip can handle both .gz and .Z files natively)

gzip -dc dc.dmp.Z > {PIPE FILE} &

then start your import

imp file={PIPE FILE} other options.

This will uncompress the file into the pipe where the import utility is waiting to receive the file.

-Santosh
Life is what's happening while you're busy making other plans