- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- sar -M & top command
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
06-29-2004 08:26 PM
06-29-2004 08:26 PM
I'd like to know difference between 'top' & 'sar -M' command.
When I execute 'top' & 'sar -M 1 1' simultaneously to check CPU status, the results seem something different.
(top: USER SYS IDLE, sar: %usr %sys %idle)
I'd like to know the reason why.
Thank you.
Mariko
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2004 08:30 PM
06-29-2004 08:30 PM
Re: sar -M & top command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2004 08:36 PM
06-29-2004 08:36 PM
Solutiontop, by default, is taking a sample over 5 seconds, so your sar over 1 second is effectively looking at a smaller set of data. If you sar based on 5 seconds (or run top with -s to set a different sample rate), you'll probably have similar results.
You'll probably only get "very similar" values if you start sam at the same time as top, to ensure they're sampling the same 5 seconds, too.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2004 08:39 PM
06-29-2004 08:39 PM
Re: sar -M & top command
Set the delay between screen updates to time seconds. The default delay between updates is 5 seconds
If you use following command:
sar -M 5 5
then the output from sar & top may match.
sks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2004 08:42 PM
06-29-2004 08:42 PM