HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- nice in C Shell to reduce CPU load
Operating System - HP-UX
1837159
Members
2710
Online
110112
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
11-13-2003 09:29 AM
11-13-2003 09:29 AM
nice in C Shell to reduce CPU load
Hi,
I use C Shell to build a script.
I use gzip to compress a big tar file 140MB.
But when I execute gzip CPU use will be increase to 97.1%.
I want to decrease the CPU use when gzip is running, I know nice command can be use to reduce the CPU load
my question is:
For C Shell,
nice -19 has highest priority --> CPU load high
nice +19 has lowest priority --> CPU load low
Is that true??
I use nice +19, but still CPU load is 97.1%.
Do you know how can I reduce the CPU load in C shell when gzip is running??
many thanks.
Regards,
John
I use C Shell to build a script.
I use gzip to compress a big tar file 140MB.
But when I execute gzip CPU use will be increase to 97.1%.
I want to decrease the CPU use when gzip is running, I know nice command can be use to reduce the CPU load
my question is:
For C Shell,
nice -19 has highest priority --> CPU load high
nice +19 has lowest priority --> CPU load low
Is that true??
I use nice +19
Do you know how can I reduce the CPU load in C shell when gzip is running??
many thanks.
Regards,
John
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2003 10:26 AM
11-13-2003 10:26 AM
Re: nice in C Shell to reduce CPU load
Hi John,
Nice only change the priority of your gzip
not the CPU load.
If nothing has to run at the same time, and if you have good IO, there is no reason why gzip should not get as much as cpu as it can.
To see that in one window you run your niced gzip.
in an other window you run in ksh
while : ;do i=1 ; done
Then you'll see the CPU load used by gzip lowered.
On HPUX you need a product like PRM to limit the cpu usage of a process.
The cpu is used according to the needs.
It is used by any thread ready to run, by priority order.
Laurent
Nice only change the priority of your gzip
not the CPU load.
If nothing has to run at the same time, and if you have good IO, there is no reason why gzip should not get as much as cpu as it can.
To see that in one window you run your niced gzip.
in an other window you run in ksh
while : ;do i=1 ; done
Then you'll see the CPU load used by gzip lowered.
On HPUX you need a product like PRM to limit the cpu usage of a process.
The cpu is used according to the needs.
It is used by any thread ready to run, by priority order.
Laurent
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
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP