- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Using Nice
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
07-24-2001 05:31 AM
07-24-2001 05:31 AM
CPU TTY PID USERNAME PRI NI SIZE RES STATE
2 ? 11340 patrol 255 30 1020K1444K run
TIME %WCPU %CPU COMMAND
81:47 99.84 99.66 dcm
How?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2001 05:48 AM
07-24-2001 05:48 AM
Solutionnice is the command to alter the default priority while executing itselg. See this example
sam's default priority is 20. If I am running like this
#nice -n 5 sam
Now sam's priority will be 25.
#nice -n -5 sam
Now sam's priority will be 15.
In ur case U can use renice command. This is for altering the priority of running application. See example
suppose sam is running with a priority of 20 with process id 8702. Then do like this
#renice -n -5 8702
Now sam' priority will get change to 15
#renice -n 5 8702
Now sam's priority will change to 25 from 20.
Use the same in ur application..And see man page of nice and renice.
Best of luck
Shahul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2001 05:52 AM
07-24-2001 05:52 AM
Re: Using Nice
DCE Configuration Manager .
you cant change the prio that he is running but you need to deside if you need the DCE at all .
most of the software that i kmow that use the DCE is OPENVIEW software of HP .
but i dont think that you can change the prio of the process .
you can remove the DCE or disable it .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2001 05:59 AM
07-24-2001 05:59 AM
Re: Using Nice
If I agree with Shahul on nice usage, I think think its more a kill of the process you need!
(Mind you Im pleased to see Im not the only one having to deal with such a bad product, why didnt you get sysload?...)
More seriously I wrote to our patrol administrator that IF I see patrol resources exceed 30% on one of the boxes I administer, I will just kill all patrol processes AND no I wont give him the root passwd on install...
Up to BMC to tune correctly their product...
So this is what I have on an HP box:
TTY PID USERNAME PRI NI SIZE RES STATE TIME %WCPU %CPU COMMAND
? 21051 patrol 154 24 7892K 5812K sleep 5379:38 1.50 1.50 PatrolAgent
? 26970 patrol 154 28 1448K 1688K sleep 47:51 0.07 0.07 dcm
Its nothing like your results....
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2001 06:02 AM
07-24-2001 06:02 AM
Re: Using Nice
All the process started by users will be running with system defualt priority of 20.
Normally, all processes inherit the system nice value of their parent process when they are spawned.
At boot-up, the system starts the init process at a system nice value of 20 (system default). On most systems, all processes (down to the
login shells) inherit this priority. Starting from their individual login shell processes, users can alter the system nice value of
descendent processes to as much as 39, or, with appropriate privileges, as little as 0. A system nice value of 0 establishes an
extremely high priority, whereas a value of 39 indicates a very low priority.
So in order to run your script at high priority (0) you need to issue the command #nice --20 dcm(your command)