Hi,
In one terminal I logged as root and issued the following command to monitor disk io activity:
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