sar command (Part III) : Disk, Network reporting

In last two parts of sar command we have seen time formats to be used with command, its datafiles, CPU & Memory reporting. In this last part we will be seeing disk, network reporting using sar command.

Disk IO reporting
sar provides disk (block devices)  report with -d option.  Normally, it shows below parameters values (highlighted values are more commonly observed for performance monitoring) :
  • DEV : Block device name. It follows dev m-n format. M is major and n is minor number of block device.
  • tps : Transfers per second
  • rd_sec/s : Sector reads per second (sector is 512 byte)
  • wr_sec/s : Sector writes per second 
  • avgrq-sz :  average size (in sectors) of the requests that were issued to the device
  • avgqu-sz : average queue length of the requests that were issued to the device
  • await :The average time (in milliseconds) for I/O requests
  • svctm : The average service time (in milliseconds) for I/O requests
  • %util : Percentage  of  CPU  time  during  which  I/O requests were issued to the device
In above output, device names are not so user friendly. So to identify devices easily, -p option is available. This option prints pretty device names in DEV column and it should always be used with -d option.
Now see above output where device names are easily identifiable. sda means disk disk /dev/sda and so on.

Network utilization reporting
Option -n gives all network stats. There are total of 18 different keywords (like NFS, IP, DEV, TCP etc.) which can be used with -n option to get related parameters. Each keyword has almost 8-10 parameters to display. So in call if you are using ALL keyword, then output will be a huge list of parameters which is difficult to understand.
To keep it short here we will see only one example of keyword DEV i.e. device. This will show device i.e. network card’s parameters values. Most of the time NIC performance is checked hence we are using this keyword example.
In above example, I used DEV keyword along with -n option and took only one iteration in output. Parameters displayed for device keyword are :
  • IFACE : Its interface name. You can easily see eth0, eth1, loopback (lo) interfaces here.
  • rxpck/s : Packets received per seconds
  • txpck/s : packets transmitted per second
  • rxkB/s : kilobytes received per second
  • txkB/s  : kilobytes transmitted per second
  • rxcmp/s : compressed packets received per second
  • txcmp/s : compressed packets transmitted per second
  • rxmcst/s : Number of multicast packets received per second

This concludes sar command tutorial’s part III about disk, network reporting. This is three part tutorial with example outputs included. Put your queries, suggestions,feedback in comments below.
SHARE

sangeethakumar

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment