Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multithreaded Gzip and/or Tar

Status
Not open for further replies.

Edcrosbys

ISP
Apr 26, 1999
112
US
I'm being impatient and would like tar and gzip to use more that one processor each. Anyone know of a multithreaded version, or patch out there? I'm running it on HP and Solaris machine and I am using the Gnu Tar.

Thanks,
Eric
 
Because you're processing one stream of data it doesn't lend itself well to multithreading; can you break the job down into smaller parts and run them in parallel? Annihilannic.
 
That's what I'm currently doing. I have 7 tar.gz files and I'm currently doing 7 simultaneous gunzip -c file.tar.gz |tar -xvf - . I just wanted to know if I could speed it up even more b/c it looks like the bottleneck is still the CPU.

Thanks
 
Unless you've got very slow disks with (de)compression the bottleneck will probably always be the CPU. How many CPUs have you got to play with anyway?

If you have 7 or more I don't think you can expect to make it quicker. Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top