- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: NICE consuming high CPU
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
Discussions
Discussions
Forums
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
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-09-2010 01:26 AM
тАО12-09-2010 01:26 AM
On one of our HP-UX server, NICE is having maximum contribution in keeping CPU to be 100% utilized. So just wanted to know the reason for that and how can we prevent this. Below are the stats taken from top command. I suspect it is because all the top processes have NICE value of 22 and not 20(default).
Load averages: 3.37, 3.80, 3.84
803 processes: 655 sleeping, 146 running, 2 stopped
Cpu states:
CPU LOAD USER NICE SYS IDLE BLOCK SWAIT INTR SSYS
0 3.32 4.3% 86.6% 9.1% 0.0% 0.0% 0.0% 0.0% 0.0%
2 3.55 6.1% 78.3% 15.6% 0.0% 0.0% 0.0% 0.0% 0.0%
4 3.21 1.6% 94.9% 3.6% 0.0% 0.0% 0.0% 0.0% 0.0%
6 3.39 2.2% 83.8% 14.0% 0.0% 0.0% 0.0% 0.0% 0.0%
--- ---- ----- ----- ----- ----- ----- ----- ----- -----
avg 3.37 3.6% 86.0% 10.5% 0.0% 0.0% 0.0% 0.0% 0.0%
System Page Size: 4Kbytes
Memory: 25534184K (25214780K) real, 69598256K (65838156K) virtual, 12165272K free Page# 1/26
CPU TTY PID USERNAME PRI NI SIZE RES STATE TIME %WCPU %CPU COMMAND
0 ? 29825 uatenb1 152 22 2310M 352M run 0:22 90.85 63.48 java
4 ? 2004 root 255 28 51004K 35632K run 10:34 54.29 54.19 scan
6 ? 135 uatenb1 152 22 2306M 347M run 0:14 71.82 44.05 java
2 ? 140 uatenb1 152 22 2306M 350M run 0:11 76.52 38.52 java
6 ? 189 uatenb1 152 22 2298M 338M run 0:06 86.16 31.22 java
4 ? 209 uatenb1 152 22 2276M 318M run 0:02 63.23 11.46 java
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2010 01:41 AM
тАО12-09-2010 01:41 AM
SolutionThere is nothing to prevent, is working as it should. You want to use 100% of your CPUs.
>I suspect it is because all the top processes have NICE value of 22 and not 20 (default).
Yes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2010 02:19 AM
тАО12-09-2010 02:19 AM
Re: NICE consuming high CPU
So, how can we bring them at nice value of 20 ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2010 04:22 AM
тАО12-09-2010 04:22 AM
Re: NICE consuming high CPU
You can do it with renice command: From man renice:
NAME
renice - alter priority of running processes
SYNOPSIS
renice [-n newoffset] [-g|-p|-u] id ...
.....
-n newoffset Change the system nice value of each affected
process to 20 + newoffset. If the UNIX95
environment variable is set, the system nice
value of each affected process is changed to
current nice value + newoffset.
If newoffset is negative, the system nice value is
set to 20 minus the absolute value of newoffset.
If the UNIX95 environment variable is set and the
newoffset is negative, the system nice value is
set to current nice value minus the absolute value
of newoffset. Only users with appropriate
newoffset is negative, the system nice value is
set to current nice value minus the absolute value
of newoffset. Only users with appropriate
privileges can reduce the system nice value or set
it to less than 20. If this option is omitted,
newoffset defaults to 10.
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-11-2010 02:55 PM
тАО12-11-2010 02:55 PM
Re: NICE consuming high CPU
Are your users complaining about excessive response times?
>how can we bring them at nice value of 20?
As R.O. said, root can use "renice -n 0" on them. But this won't change your 100% CPU nor change your load average or high run-queue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-13-2010 09:21 PM
тАО12-13-2010 09:21 PM
Re: NICE consuming high CPU
Yes users are complaining....so making NICE value as 20 for those java processes will not help here ? Although NICE vakue of 20 has higher priority.
Thanks & regards,
Kavita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-13-2010 10:14 PM
тАО12-13-2010 10:14 PM
Re: NICE consuming high CPU
Yes, it will help users of just those processes. Users with nice value 22 will be slightly lower. Same with anyone already at 20, since they now have to compete with more processes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2010 03:25 AM
тАО12-14-2010 03:25 AM
Re: NICE consuming high CPU
Thanks & regards,
Kavita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2010 03:28 AM
тАО12-14-2010 03:28 AM
Re: NICE consuming high CPU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2010 01:02 PM
тАО12-14-2010 01:02 PM
Re: NICE consuming high CPU
Sure, if this user is more important than the other nice users. But it appears that those users are probably getting all of the CPU they can.
>I mean from whole system performance's perspective.
The overall system performance shouldn't change that much. But it may starve the other users nice users.