- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: High system 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
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
08-06-2002 07:52 AM
08-06-2002 07:52 AM
High system cpu
I have high system cpu on a HP N4000 4 processors.
Look at this, sar 2 10 :
HP-UX myserver B.11.00 U 9000/800 08/06/02
17:32:55 %usr %sys %wio %idle
17:32:57 41 26 5 28
17:32:59 41 35 1 22
17:33:01 42 35 3 19
17:33:03 44 34 4 19
17:33:05 60 26 3 12
17:33:07 58 30 1 11
17:33:09 59 27 1 12
17:33:11 50 28 2 20
17:33:13 20 41 4 34
17:33:15 18 39 4 39
Average 43 32 3 22
vmstat 2 10 :
procs memory page faults cpu
r b w avm free re at pi po fr de sr in sy cs us sy id
4 0 0 28589 824109 6 4 0 0 4 0 0 0 113 5 12 8 80
4 0 0 28589 824059 3089 2001 3 0 2018 0 0 1760 56331 2986 21 41 38
4 0 0 28589 824268 3172 2059 1 0 2073 0 0 1705 55201 2816 22 38 40
9 0 0 27256 824161 2975 2007 0 0 2012 0 0 1869 51669 2742 22 33 46
9 0 0 27256 823810 2913 2023 0 0 1996 0 0 1829 50947 2577 19 31 50
1 1 0 27874 823940 2980 1961 0 0 1962 0 0 1715 50822 2527 20 42 39
1 1 0 27874 824220 2936 1993 0 0 2008 0 0 1663 50113 2443 22 35 43
6 0 0 29439 824147 2945 1929 0 0 1940 0 0 1615 50384 2408 16 37 47
6 0 0 29439 823905 2836 1797 0 0 1768 0 0 1728 48562 2576 29 27 44
6 0 0 29439 824130 2802 1918 0 0 1926 0 0 1724 48683 2612 27 43 29
I think there is too many Page reclaims!
Now, what do I have to do with glance to find the process which consumes the system cpu?
With glance, I suspect a user script. Whan I look at the Process Ressources for this shell script, I find values like this :
Virtual Faults = 9684
Forks & VForks = 1133
Process Wait States shows 24% on PIPE.
Any ideas, comments ???
Thanks!
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2002 07:57 AM
08-06-2002 07:57 AM
Re: High system cpu
Then double click on any process name.
via the menu option reports, you can drill into the process.. you can do so also in text base via the soft keys.
PS: when including formatted text in the forums do so as an attachment... it's nearly impossible to read otherwise...
Later,
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2002 08:01 AM
08-06-2002 08:01 AM
Re: High system cpu
I think your system may be low on RAM based on the sar and vmstat outputs since the sys% is pretty high in sar (average 35%.)
Hai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2002 08:10 AM
08-06-2002 08:10 AM
Re: High system cpu
For CPU run top, this will show you who is using it all.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2002 08:42 AM
08-06-2002 08:42 AM
Re: High system cpu
You can use the find command to locate large directories:
# find / -type d -size +128
This will report directories larger than 64k in size.
Otherwise as others have suggested try to find out which processes are causing the high CPU utilisation, then use glance or tusc to find out what those processes are doing lots of.
Regards,
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2002 10:34 AM
08-06-2002 10:34 AM
Re: High system cpu
sar -a says :
iget/s = 25
namei/s > 3500
dirbk/s > 1000
Now, I am sure that an application script (launched by cron) is responsible for the problem! If I stop this crontab then sar -a says :
iget/s = 2
namei/s > 200
dirbk/s > 100
Do you known what must change the user in his script to avoid my problem (high sys cpu)?
Find command brought back some repertories but which don't belong to the user homedir!
Directories are :
/var/rbootd
/var/spool/mqueue
and some others user subdir.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2002 03:54 PM
08-06-2002 03:54 PM
Re: High system cpu
du -s /
This will make the opsystem and the disk VERY busy with directory and inode gets very high. That's perfeectly normal since the du command is summarizing all the directories. Now if your user decided to run bdf and du over and over again, then certainly you'll see this behavior. It's caused by performing directory searches.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2002 01:30 AM
08-07-2002 01:30 AM
Re: High system cpu
Complex and badly written shell scripts can certainly have a large impact on system performance as they have a habit of spawning a large number of processes. The best way to fix this is to rewrite your complex shell scripts in perl!
Regards,
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2002 08:37 AM
08-07-2002 08:37 AM
Re: High system cpu
What do you think about it?