LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-26-2009, 06:04 AM   #1
ahmedb72
Member
 
Registered: Jan 2006
Location: Sydney
Distribution: RHEL
Posts: 72

Rep: Reputation: 15
Monitoring Disk Activity using sar


Hi,

In one terminal I logged as root and issued the following command to monitor disk io activity:
Code:
sar -b 2 50
Meanwhile, in another terminal, I started to copy a group of files (of size of more than 100 MB) from a CD-Rom to a folder in the local hardisk.
However the output of the sar didn't show any activity figure. When I tested the same using iostat, it worked fine.

Is there anything I missed?

Code:
#sar -b 2 50
Linux 2.6.9-42.0.0.0.1.ELsmp (rac1.mycorpdomain.com)    10/26/2009

01:45:10 PM       tps      rtps      wtps   bread/s   bwrtn/s
01:45:12 PM      0.00      0.00      0.00      0.00      0.00
01:45:14 PM      0.00      0.00      0.00      0.00      0.00
01:45:16 PM      0.00      0.00      0.00      0.00      0.00
01:45:18 PM      0.00      0.00      0.00      0.00      0.00
01:45:20 PM      0.00      0.00      0.00      0.00      0.00
01:45:22 PM      0.00      0.00      0.00      0.00      0.00
01:45:24 PM      0.00      0.00      0.00      0.00      0.00
01:45:26 PM      0.00      0.00      0.00      0.00      0.00
01:45:28 PM      0.00      0.00      0.00      0.00      0.00
01:45:30 PM      0.00      0.00      0.00      0.00      0.00
01:45:32 PM      0.00      0.00      0.00      0.00      0.00
01:45:34 PM      0.00      0.00      0.00      0.00      0.00
01:45:36 PM      0.00      0.00      0.00      0.00      0.00
01:45:38 PM      0.00      0.00      0.00      0.00      0.00
01:45:40 PM      0.00      0.00      0.00      0.00      0.00
01:45:42 PM      0.00      0.00      0.00      0.00      0.00
01:45:44 PM      0.00      0.00      0.00      0.00      0.00
01:45:46 PM      0.00      0.00      0.00      0.00      0.00
01:45:48 PM      0.00      0.00      0.00      0.00      0.00
Code:
#iostat 3 20
Linux 2.6.9-42.0.0.0.1.ELsmp (rac1.mycorpdomain.com)    10/26/2009

avg-cpu:  %user   %nice    %sys %iowait   %idle
           1.88    0.01   10.01    1.68   86.41

Device:            tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
hdc               2.14       443.39         0.00     515436          0
sda               8.62       258.73       851.25     300769     989560
sda1            111.72       253.88       851.24     295130     989544
sda2              2.87         3.09         0.01       3587         16
sda3              0.20         0.93         0.00       1076          0

avg-cpu:  %user   %nice    %sys %iowait   %idle
          19.80    0.34   70.81    9.06    0.00

Device:            tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
hdc             121.81     28703.36         0.00      85536          0
sda               7.38         2.68      2993.29          8       8920
sda1            374.50         2.68      2993.29          8       8920
sda2              0.00         0.00         0.00          0          0
sda3              0.00         0.00         0.00          0          0

avg-cpu:  %user   %nice    %sys %iowait   %idle
          17.17    0.00   66.67   16.16    0.00

Device:            tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
hdc             119.87     26829.63         0.00      79684          0
sda              65.32         0.00     42214.14          0     125376
sda1           5276.77         0.00     42214.14          0     125376
sda2              0.00         0.00         0.00          0          0
sda3              0.00         0.00         0.00          0          0
 
Old 10-27-2009, 02:50 PM   #2
boondocksaint
LQ Newbie
 
Registered: Oct 2009
Distribution: RHEL4, RHEL5, CentOS, Customized Linux
Posts: 11

Rep: Reputation: 1
just a thought...what about the -d parameter for sar??
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PC monitoring activity ariosma Linux - Networking 2 10-19-2006 12:20 AM
monitoring disk activity in GKrellM ScottReed Linux - Software 1 02-04-2006 05:18 PM
Monitoring disk activity with vmstat gives strange values. Why? tobikars Linux - Software 0 12-07-2005 01:07 AM
monitoring user activity buehler Linux - Security 1 09-02-2005 04:46 PM
monitoring I/O with sar command juanb Linux - Hardware 1 04-13-2005 12:43 PM


All times are GMT -5. The time now is 06:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration