- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Too many resources required when I use "gzip"
Categories
Company
Local Language
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
Forums
Discussions
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
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- 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
тАО08-21-2006 04:46 AM
тАО08-21-2006 04:46 AM
Too many resources required when I use "gzip"
Every day, I need to compress a large text file (near 500 Mo for size).
I (must) use the command "gzip" to execute this task, but other applications do not appreciate...CPU is overloaded (near 100 % of WCPU for the process "gzip" when I display all processes with the command "top") and other processes may crash...
How to reduce (limit) the load of the CPU when I use "gzip" (it's not a problem for me if the task is longer), in order other processes don't crash ?
I use the HP-UX "RP2405" server with 2 CPU (650 Mhz each) and 2 gigas for memory.
Thanks a lot for your help and your answers !!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2006 04:58 AM
тАО08-21-2006 04:58 AM
Re: Too many resources required when I use "gzip"
One way is to use the nice command (man nice) to assign a lower priority to the gzip command.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2006 05:01 AM
тАО08-21-2006 05:01 AM
Re: Too many resources required when I use "gzip"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2006 05:02 AM
тАО08-21-2006 05:02 AM
Re: Too many resources required when I use "gzip"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2006 05:09 AM
тАО08-21-2006 05:09 AM
Re: Too many resources required when I use "gzip"
What does ps -l show under the NI column when you run the command with nice?
The reason I ask is that nice -39 problably will not work, since the number after the nice command is added to the existing nice value (usually a default of 20) and the resulting nice level of 59 is outside of nice's limits
nice -19 should get you to a nice level of 39 (the max)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2006 05:09 AM
тАО08-21-2006 05:09 AM
Re: Too many resources required when I use "gzip"
(It's true that the application has probably problems with the OS...)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2006 05:10 AM
тАО08-21-2006 05:10 AM
Re: Too many resources required when I use "gzip"
If other processes need the CPU then the gzip will go to the bottom of the list as it's nice value is -19.
This is all normal.
Processes should not crash.
Now, IO is a different story, if the gzip has the disk pegged out and other processes need to IO to that disk...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2006 05:18 AM
тАО08-21-2006 05:18 AM
Re: Too many resources required when I use "gzip"
How to reduce this WCPU percent ? what does it mean please ?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2006 05:37 AM
тАО08-21-2006 05:37 AM
Re: Too many resources required when I use "gzip"
So gzip will indeed consume some CPU cycles but like all data processing programs, it will relinquish the CPU each time it performs a read or write. This can happen dozens of times per second so everything will get it's fair share of disk and CPU. The nice priority only affects the compute time so if this large file is on a mountpoint that is heavily used by your applications, then gzip's I/O will slow things down and nice won't help.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2006 05:46 AM
тАО08-21-2006 05:46 AM
Re: Too many resources required when I use "gzip"
By the way, by any chance have you "improved" your timeslice and set it to a very low value (1) rather than the default 10?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2006 05:49 AM
тАО08-21-2006 05:49 AM
Re: Too many resources required when I use "gzip"
What is the timeslice ? :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2006 05:55 AM
тАО08-21-2006 05:55 AM
Re: Too many resources required when I use "gzip"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2006 05:57 AM
тАО08-21-2006 05:57 AM
Re: Too many resources required when I use "gzip"
It's just to find a solution in order the application used on the server doesn't crash when I use gzip with a large file...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2006 06:02 AM
тАО08-21-2006 06:02 AM
Re: Too many resources required when I use "gzip"
Is it difficult to create ? I only know ksh or csh scripts...
Could you help me please ?
You mean I can "cut" my large file, then compress each part of my file with a delay between each compression, and obtain only one compressed file at the end ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2006 06:08 AM
тАО08-21-2006 06:08 AM
Re: Too many resources required when I use "gzip"
This is a band-aid approach to fixing the underlying problem. Your applications should not crash.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2006 06:11 AM
тАО08-21-2006 06:11 AM
Re: Too many resources required when I use "gzip"
The problem is that I "tar" the text file first before zipping it (because it's possible that there are more than one text file sometimes...)
So I don't know if I can "count" the lines of a tar file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2006 06:17 AM
тАО08-21-2006 06:17 AM
Re: Too many resources required when I use "gzip"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2006 06:35 AM
тАО08-21-2006 06:35 AM
Re: Too many resources required when I use "gzip"
Bottom line is gzip is CPU intensive. There is no way around that.
I would suggest that you make sure any patches are available for gzip you get them.
Alternatively you may wish to stop using gzip altogether.
You've got valid solutions for lowering cpu use of gzip. What also might be causing problems and crashes is that while gzip is gzipping there are two copies of the file. filename and filname.gz
You may be stressing a critical filesystem. Perhaps try one with lots of extra space and low i/o.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2006 08:06 PM
тАО08-21-2006 08:06 PM
Re: Too many resources required when I use "gzip"
How to know my gzip version ? is it the version of "zlib" ? I got zlib v1.1.4 when I do "swlist"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2006 09:36 PM
тАО08-21-2006 09:36 PM
Re: Too many resources required when I use "gzip"
If you have PRM (Process Resource Manager) installed with your OE you could configured it to do what you want.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2006 07:37 AM
тАО08-22-2006 07:37 AM
Re: Too many resources required when I use "gzip"
Another thing you may want to try is to run gzip when other users are not using the machine so heavily. In other words, write a script to do the gzip, then create a cron entry for it at 3:00 am. Hopefully, all your users will be fast asleep at that time.
Regards,
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2006 09:00 AM
тАО08-22-2006 09:00 AM
Re: Too many resources required when I use "gzip"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2006 09:00 AM
тАО08-22-2006 09:00 AM
Re: Too many resources required when I use "gzip"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2006 07:52 PM
тАО08-22-2006 07:52 PM
Re: Too many resources required when I use "gzip"
I try the script immediately !
The bin "perl" is in /opt/perl/bin...it's not a problem, isn't it ? I just have to change the first line of the file... ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2006 08:32 PM
тАО08-22-2006 08:32 PM
Re: Too many resources required when I use "gzip"
I change the first line of the script in order to find the interpreter "perl", then I launch the script with this syntax : for example "./cppause.pl gzip toto.tar"
Is it the good command please ?
When I do a "top", the process "perl" is sleeping and I don't see any process "gzip" :(