- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: change the priority of 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
04-26-2006 07:08 PM
04-26-2006 07:08 PM
change the priority of the process
# top
PRI NI
9 -19
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2006 07:17 PM
04-26-2006 07:17 PM
Re: change the priority of the process
BTW, have a look at "man nice".
In fact, you are *increasing" the priority.
(low value = high prio).
You should know exactly what you are going to do, otherwise you can get into trouble.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2006 07:23 PM
04-26-2006 07:23 PM
Re: change the priority of the process
I have reset the priority , and use the command "renice +19 pid" , now when use top to check the status, the result is as below, both value of PRI and NI are 19 and still the top priority in my system , what I want is just want to lower the priority of it , could suggest what can I do ? thx
PRI NI
19 19
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2006 08:07 PM
04-26-2006 08:07 PM
Re: change the priority of the process
You have used the command already
renice -n newoffset pid
[ You will be decreasing the priority. If you give negative value to newoffset you will be increasing the priority]
Note : Be extra vigilant on which process you are trying to increase/decrease priority - if its a system process.
If its user process - it may well affect the performance of that process - unless that what you wish to do.
Regards,
Ninad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2006 08:13 PM
04-26-2006 08:13 PM
Re: change the priority of the process
so if you want the process to run at priority 39 user renice -n 19 pid
Rgds,
Ajit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2006 08:19 PM
04-26-2006 08:19 PM
Re: change the priority of the process
As you said , I use negative value with renice command , but now the PRI and NI value is 19 and is the top priority process ,
I check with top command , it is the first process , so I feel it is very strange , could suggest what is wrong ? thx.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2006 08:35 PM
04-26-2006 08:35 PM
Re: change the priority of the process
#renice --19 PID
this will solve your problem
anith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2006 08:38 PM
04-26-2006 08:38 PM
Re: change the priority of the process
Please let us know if you wish to
1. Run the process with high priority (This process must get preference over others)
OR
2. Low priority (This process must get lesser preference)
e.g. Change nice value by 10
For 1. do renice -n -10 pid (This will give more preference/priority to the process)
For 2. do renice -n 10 pid (This will give lesser preference/priority to this process)
Hope this clarifies.
Regards,
Ninad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2006 08:59 PM
04-26-2006 08:59 PM
Re: change the priority of the process
I want to ". Low priority (This process must get lesser preference)" , thx.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2006 09:13 PM
04-26-2006 09:13 PM
Re: change the priority of the process
As mentioned in my reply above, you should use
renice -n 19 pid [ Note it should be 19 and not -19]
This will tell the scheduler in the kernel to give this process lesser priority by a value of 19.
Now the scheduler manages to give the respective CPU times to processes according to their priority and other processes running on the system.
I think you are confused by the 2 fields Priority and Nice.
Nice will by default have a vaule of 20.
Now you can change Nice value from -20 to +20 depending on whether you want to give high priority or low priority respectively.
Now according to this Nice value and other processes running, the current priority vaule of the process is adjusted to give it the CPU time.
Hope this clarifies,
Ninad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2006 09:33 PM
04-26-2006 09:33 PM
Re: change the priority of the process
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2006 09:48 PM
04-26-2006 09:48 PM
Re: change the priority of the process
Would you like to appreciate time and suggestion people have given for your query. You can do that by assigning relevant points to the solutions.
Regards,
Ninad