- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Extracting Load Average Stats in realtime
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-26-2001 07:45 AM
07-26-2001 07:45 AM
realtime without using system calls.
On Linux I can simply read from
/proc/loadavgs and /proc/[pid]/status. HP does not have the equivalent proc directory so was wondering whether there is some other method.
The info needs to be obtained quickly and frequently so starting external processes
and waiting for signals (e.g. launching top or uptime) are unsuitable.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2001 07:55 AM
07-26-2001 07:55 AM
Re: Extracting Load Average Stats in realtime
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2001 08:19 AM
07-26-2001 08:19 AM
Re: Extracting Load Average Stats in realtime
Thanks for your prompt response. We actually run Measureware here, but the problem I have is that if I launch any command from within the calling program, the resulting delay from calling the external program is too great.
Maybe if I can extract the stats on a regular basis and just write them out to a flat text file, that might be enough to do the task - so rather than pulling the information out, it is already to hand.....not sure this is entirely elegant though as the coding then depends on an external process running to operate!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2001 08:34 AM
07-26-2001 08:34 AM
Re: Extracting Load Average Stats in realtime
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2001 12:00 PM
07-26-2001 12:00 PM
SolutionHow about using Glance
in the advisory mode?
You can set up a syntax
file to monitor the info
you want and run glance
in the advisory mode.
For eg: (all on same line)
>cat > /tmp/glance_syntax << EOF
>PRINT " ",GBL_MEM_QUEUE," ",GBL_RUN_QUEUE, "
",GBL_NUM_CPU,GBL_CPU_TOTAL_UTIL," ", GBL_SWAP_SPACE_AVAIL_KB,"
",GBL_SWAP_SPACE_UTIL," ", GBL_MEM_PHYS,GBL_MEM_UTIL,"
",GBL_NFS_SERVER_READ_BYTE_RATE," ",GBL_NFS_SERVER_WRITE_BYTE_RATE
>EOF
(there are various other
parameters you can track.
You can find them in
the glance help file in
/opt/perf directory)
Run glance as follows:
>/opt/perf/bin/glance -iterations 300 -adviser_only -syntax $syntax >OUTPUTFILE
You can keep track of outputfile to see the load.
hope this helps
raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2001 01:22 PM
07-26-2001 01:22 PM
Re: Extracting Load Average Stats in realtime
I have had a play around with it and I'm fairly convinced this will do the job. Appears also to have minimal impact on performance aswell.
Thanks to everyone who responded!