- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: light load system call to check CPU load
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
11-22-1999 06:04 AM
11-22-1999 06:04 AM
light load system call to check CPU load
I want to find out a light load system call which can be used to check out CPU
load on HP servers. I know shell command top can do the job. But top is too
heavy load. Please advice.
thanks,
Jean
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-1999 06:40 AM
11-22-1999 06:40 AM
Re: light load system call to check CPU load
a loop and watch resources over time, which is its most valuable feature.
Typing just sar at the root prompt will report on CPU activity. It can also
report on things like swapping, buffer cache, system calls, run queue, and some
kernel tables. See the man page.
MrNeil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-1999 07:33 PM
11-22-1999 07:33 PM
Re: light load system call to check CPU load
have a little perl script which runs on a multiproccess machine via cron every
30 mins to gather some data which I use in an excel spreadsheet to report on
monthly performance.
#!/usr/local/bin/perl
# Author: Anthony Goonetilleke
# Desc: Get amount of cpu usage
###############################
$DATE=`date`;
chop($DATE);
@STATS=`/usr/bin/sar -uM 1 5`;
print ("START $DATE");
print "@STATS\n";
print ("END $DATE\n\n*****");
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-1999 05:29 AM
11-23-1999 05:29 AM
Re: light load system call to check CPU load
in generating formatted reports to track system usage over time. (mwa also
does this, of course, with significantly more refinement and significantly more
overhead). For command line troubleshooting, though, I prefer vmstat. More
information in a concise format with negligible overhead.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-1999 12:23 AM
12-13-1999 12:23 AM
Re: light load system call to check CPU load
Thanks for your suggestion. "sar" seems to be light
load. Is there any system call which I can
use in the C/C++ program to check cpu load
instead of making a system call?
thanks much again,
Jean
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2000 10:15 PM
07-30-2000 10:15 PM
Re: light load system call to check CPU load
1. uptime : not continuously monitor CPU load.
2. vmstat : continuously monitor CPU load
For me, I use cron and uptime together.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2000 11:50 PM
07-30-2000 11:50 PM
Re: light load system call to check CPU load
The pstat() man page gives some examples, but looking in /usr/include/sys/pstat.h gives the most info.
Andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2000 06:29 AM
07-31-2000 06:29 AM
Re: light load system call to check CPU load
Hope this helps.
Tony