HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- gzip utility running on 2 or more processors
Operating System - HP-UX
1826451
Members
3861
Online
109692
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2001 03:27 AM
04-05-2001 03:27 AM
gzip utility running on 2 or more processors
We have server with 4 processors. Standard gzip utility can run only on one processor (I've checked this by top utility).
But is it possible to run it on MORE than 1 processor?
If NOT, are there any alternatives?
Thank you in advance.
But is it possible to run it on MORE than 1 processor?
If NOT, are there any alternatives?
Thank you in advance.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2001 03:42 AM
04-05-2001 03:42 AM
Re: gzip utility running on 2 or more processors
Each process can only run on one processor.
If you're running gzip on some file/dir, it will only run on one processor at a time.
I think there's no way to change this!
good luck.
If you're running gzip on some file/dir, it will only run on one processor at a time.
I think there's no way to change this!
good luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2001 03:42 AM
04-05-2001 03:42 AM
Re: gzip utility running on 2 or more processors
Ivan,
As far as I know, the "gzip" utility is exclusively singlethreaded -- it can only be run on a single processor. Furthermore, I doubt whether this actually CAN be multithreaded since with "gzip" (and most other compression schemes) subsequent blocks of data are dependent upon previous blocks.
However, if you tried to run 4 copies of "gzip" (on 4 different files), each of them could realistically use a separate processor.
As far as I know, the "gzip" utility is exclusively singlethreaded -- it can only be run on a single processor. Furthermore, I doubt whether this actually CAN be multithreaded since with "gzip" (and most other compression schemes) subsequent blocks of data are dependent upon previous blocks.
However, if you tried to run 4 copies of "gzip" (on 4 different files), each of them could realistically use a separate processor.
I think, therefore I am... I think!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2001 11:45 PM
04-05-2001 11:45 PM
Re: gzip utility running on 2 or more processors
gunzip can decompress chunkwise - a nice feature if you're in a hurry. It means that you can slice a huge file into smaller parts compress them with gzip on individual processors and then merge the resulting compressed chunks into a file in proper sequence. Suppose your file is 4 GB. You can do the following (debug it yourself):
for i in 0 1 2 3
do dd if=file bs=1024k skip=$(expr 1024 \* $i) count=1024 | gzip -9 > file$i &
done
After all processes finish just execute
cat file2 file3 file4 >> file1
and rename it like file.gz
for i in 0 1 2 3
do dd if=file bs=1024k skip=$(expr 1024 \* $i) count=1024 | gzip -9 > file$i &
done
After all processes finish just execute
cat file2 file3 file4 >> file1
and rename it like file.gz
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP