- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: top command shows huge load average
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
тАО02-26-2009 05:57 PM
тАО02-26-2009 05:57 PM
top command shows huge load average
one of my hp ux 11.11 server , running on L class box, shows load avergae of more than 25. I am fearing about system crash in future. Sar average shows 55% CPU usage only. Any ideas to dig in futher and check?
BTW, i dont have any serious errors in syslog also.
Regards
Sundar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2009 07:08 PM
тАО02-26-2009 07:08 PM
Re: top command shows huge load average
But you do need to have some idea of I/O, networking and response time.
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1297575
>I am fearing about system crash in future.
I doubt there is a relation between the load average and crashing. Recently there was a thread about having a load average of 7500!
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1315579
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2009 08:23 PM
тАО02-26-2009 08:23 PM
Re: top command shows huge load average
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2009 04:58 PM
тАО02-27-2009 04:58 PM
Re: top command shows huge load average
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2009 05:50 PM
тАО02-27-2009 05:50 PM
Re: top command shows huge load average
I ran 11.11 a few years ago, and I managed to make the load average go over 110 using a modified C program that came with the HP-UX performance course. The system still held up strong. 110! That's what proved me that it was a problem with the way the load average was calculated and I stopped looking at that metric until 11.23.
Good luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-28-2009 10:11 AM
тАО02-28-2009 10:11 AM
Re: top command shows huge load average
while :
do
:
done
This works on Bourne and POSIX shells such as ksh and bash as well as HP's POSIX shell /usr/bin/sh. It loops around as fast as it can until you interrupt it with CTRL-C.
Now you can increase the load on this one CPU system by running additional copies of the program, perhaps 20 or even 200 copies at the same time. On a single processor system, the compute-intensive processes will be time shared, each getting an equal number of CPU time. top will show 4 copies (on the 1 CPU system) each using 25% of the CPU. But the load factor will be about 4.00 (after a minute or so) which means 1 process is running and 3 are ready to run. To run 4 copies of the script above, use this 1-liner 4 times:
while :;do :;done&
Now on a 4 processor system, these 4 scripts will each consume 100% CPU time and all 4 will run without stopping (no timesharing needed), but the load factor will still be 4 (4 processes running at the same time). So for the same amount of instructions between the 4 copies, the 1-CPU system will take 4 times longer to complete.
But that's the easy case: 100% CPU running for a long time. Now take a process that which has 1000 threads that run for only a few milliseconds and they are constantly starting and completing hundreds of times each second. Now the load can easily jump to easily jump to 100 or even thousands. Are there 1000 processes ready to run? It depends on time period being measured. Over a few seconds, yes. During a one millisecond period, radically varied, sometimes 50 in the queue, sometimes 100, etc. But the kernel can't spend all of its time measuring so the runqueue size is just sampled and then averaged by uptime, top and other programs.
It's important to note that most kernels will degrade the priority of long term compute-intensive processes so that I/O such as terminal keyboards, networking and disk/tape activities will run immediately. So high CPU loads are not necessarily a bad thing. Note that it is quite normal for the kernel overhead to take a much larger percentage (30-60%) when hundreds of short-lived threads or daemon processes are running.
Bill Hassell, sysadmin