- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Process Priority Issues
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
10-29-2004 04:50 PM
10-29-2004 04:50 PM
Process Priority Issues
I am having a Multi-Threaded Daemon running on HPUX 11.11.
I can see in 'top' that its PRIORITY is somewhere near 236-255 with NICE vlaue at 20.
There are other process running at priorities at 154, 156 but my daemon always remain at top of the list.
Why?
Also i witnesssed that after few minutes of execution the PRIORITY is changed to 152.
Why?
Many Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2004 05:04 PM
10-29-2004 05:04 PM
Re: Process Priority Issues
top is having a vunerability problem.it will not show multithreaded daemons properties properly(cpu %,etc).use glance to see the same process.
regds,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2004 10:50 PM
10-29-2004 10:50 PM
Re: Process Priority Issues
But what about the priority.
Why does it change from 242/255 to 152.
As 153 lies between 128-153 which is priority for Kernel Process.
Many Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2004 03:09 PM
11-01-2004 03:09 PM
Re: Process Priority Issues
Is there any system call through which i can set the Priority for my Daemon?
Many Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2004 03:58 PM
11-07-2004 03:58 PM
Re: Process Priority Issues
I have tried various calls to get the Prioirty like sched_getParame(..), getprioirty() etc but all these calls comes back with the Nice(NI) value but not the Priority(PRI) as displayed in 'top'.
How can i get the PRI Value of an process and if possible how can i change the same
Many Thanks
Lalit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2004 04:17 PM
11-07-2004 04:17 PM
Re: Process Priority Issues
CPU scheduling it little complicated. The priority allocation is dependent on extra polation of how much the process is using the CPU. For ex., during the time share schduling, a clock tick is given to a process. If that process doesn't use the CPU in certain consecutive ticks, it's future priority will be degraded. Similarly, the priority will be increased if the process is using the CPU heavily during it's clock ticks. If the process does certain kind of IO, then it will be given a non signalable priority which is between 128 and 153.
To change the priority, you will need to use 'nice' or 'renice' commands. Only root will be able to increase the priority (decrease the nice value)
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2004 04:20 PM
11-07-2004 04:20 PM
Re: Process Priority Issues
If you want to allocate more CPU resources to certain processes and less to some other, I suggest you use PRM (Process Resource Manager) instead of altering the priorities. That's a good way of controlling the resources.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2004 08:23 PM
11-07-2004 08:23 PM
Re: Process Priority Issues
man 2 rtprio for system call
This command will set your priority.
It can be quite dangerous using real-time priority, because your process can end up running at a higher priority to some system processes and cause all kinds of problems that you don't want. You must test it most thoroughly and enquire as to the status of s/w support if you turn it on.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2004 09:11 PM
11-07-2004 09:11 PM
Re: Process Priority Issues
It seems that there is no way to change prioirty either by any tool or system calls.
Steve,
the real time process priority are between 0-128. As these are much lower that that of System and User process hence will lead into more time consumption from CPU. (I might be wrong here).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2004 09:32 PM
11-07-2004 09:32 PM
Re: Process Priority Issues
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-07-2004 09:48 PM
11-07-2004 09:48 PM
Re: Process Priority Issues
I can lower the priority of process by using nice / renice statements or is there any other way of doing the same.
may be rtprio etc
Thanks