- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- linux 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
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
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-01-2002 01:15 AM
тАО08-01-2002 01:15 AM
linux command
1. how do i check total cpu time spent executing in user mode ,system mode and has been idle.
2. how do i know how many disk read/write request have been made?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2002 03:25 AM
тАО08-01-2002 03:25 AM
Re: linux command
2. "sar -b"
HTH,
Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2002 04:19 AM
тАО08-01-2002 04:19 AM
Re: linux command
...
Benoit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-02-2002 04:07 AM
тАО08-02-2002 04:07 AM
Re: linux command
See `man pstat`.
Take care!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-06-2002 04:55 AM
тАО08-06-2002 04:55 AM
Re: linux command
this again, as all the other info you requested in your other threads, is retrievable from /proc/stat
I won't do the parsing here as I trust you can do it yourself (use Perl, awk, sed, cut etc)
1) cpu times
grep for "cpu":
# grep cpu /proc/stat
cpu 150081 641 30293 34879317
cpu0 150081 641 30293 34879317
The numbers are 1/100th secs for cpu time spent in
user mode, low priority user mode, sys mode, idle time
2) disk I/O
grep for "disk_io":
# grep disk_io /proc/stat
disk_io: (8,0):(394375,242327,7461810,152048,7081216) (11,0):(5781,5781,1301464,
0,0)
A full explanation can be found in "man proc".
The pair of numbers before the colons are the (major,minor) of the block devices.
# ll /dev/sda /dev/scd0
brw-rw---- 1 root disk 11, 0 Apr 11 16:25 /dev/scd0
brw-rw---- 1 root disk 8, 0 Apr 11 16:25 /dev/sda
As you can see the above dump refers to my 1st SCSI HD (8,0) and my CD writer (11,0)
The numbers following the colon are :
(total I/Os, read I/Os, blocks read, write I/Os, blocks written)