- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Renice the process
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
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
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
12-30-2006 12:28 AM
12-30-2006 12:28 AM
PID USER PRI NI
8365 root 15 0
16104 root 15 0
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2006 12:36 AM
12-30-2006 12:36 AM
SolutionThe manpages for 'renice' answer your questions:
http://www.docs.hp.com/en/B2355-60127/renice.1M.html
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2006 04:21 AM
12-30-2006 04:21 AM
Re: Renice the process
Nice values are inversely proportionate to priorities. A higher nice value equates to a lower priority, as the process had been made "nicer".
PCS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2006 04:49 AM
12-30-2006 04:49 AM
Re: Renice the process
The thing to remember is that a lower priority is going to get more cpu.
Recognize that if a process is looking for I/O it really doesn't matter how much CPU it gets, its not going to do anything until i/o is complete.
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
12-30-2006 06:07 AM
12-30-2006 06:07 AM
Re: Renice the process
Now if two programs (in a single CPU system) are running continuously, the OS will switch back and forth between the two programs based on the priority difference. Although there are some esoteric resource calculations made by the kernel based on each program's behavior, the most important metric is CPU time consumed.
Now these basic concepts only apply to normal processes where the priority is between 172 and 255, called user-level priorities. Specialized kernel routines and system calls run at system-level priorities 128 to 177. These system-level priorities to not get adjusted. Normal programs should never be set to system-level priorities.
There is another priority range (unique to HP-UX) called realtime priority called rtprio. This is reserved for very specialized processes such as ttisr which will show up as PRI = -32. The negative number has to do with internal kernel priorities which range from 0 to 767, and external priorities (such as ps -l) which range from -512 to 255.
Now the details are much more complex than this overview but suffice it to say that adjusting priorities seldom has the desired effect (ie, giving one process more or less time) for most applications. You can use nice or renice to adjust a process but whether it has much of an effect depends mostly on CPU cycles and not I/O. To adequately control applications that are competing for CPU and I/O, you'll need the Process Resource Manager.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-30-2006 07:20 AM
12-30-2006 07:20 AM
Re: Renice the process
You can use renice command to change the nice value of a running process.
In a nutshell the nice value scheme provides a facility where you run lengthy jobs at a lower priority while processes that are required to be completed in a short time are run at a higher priroty level.
# ps -efl , and check for the NI column to check the current nice value. All the procsses by default will have a nice value of 20.
So if you want to run a process with nice value higher than 20 , (suppose 30)you have to use:
# nice -10 newprog # (for new program/jobs)
( newprog will run at a nice value of 30 )
In your case to change the nice value of the running process (PID 8365 ):
use
# renice -n 5 8365
This will increase the nice value 5 more from the default value.
Cheers,
Raj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2007 02:22 PM
01-02-2007 02:22 PM
Re: Renice the process
If the celebration is over , have a look and review your posted thread(s),
Cheers,
Raj.