Home | Data Center | Contact US | Login

Á¦¸ñ i/o ¸ð´ÏÅ͸µ °ü·Ã iostat
ÀÛ¼ºÀÏ 2006-10-31 18:04:12
iostat ¸¦ ÀÌ¿ëÇÏ¿© i/o ¸¦ ¸ð´ÏÅ͸µÇÒ ¼ö ÀÖ½À´Ï´Ù.

io °ü·ÃÇÑ ¸ð´ÏÅ͸µ ÀÚ·á´Â /proc/stat ¿¡¼­ disk_io¿¡ ÇØ´çÇÕ´Ï´Ù. ±×·±µ¥ io °ü·ÃÇÑ ÀÚ·á°¡ º°·Î ¾ø¾î¼­ À̸¦ Çؼ®ÇÏ´Â°Ô Çò°¥¸³´Ï´Ù.
Ä¿³Î ¹®¼­¿¡µµ ÀÌ¿¡ ´ëÇÑ ³»¿ëÀº ¾÷°í ¾Æ¸¶µµ ¼Ò½º¸¦ º¸¾Æ¾ß Á¤È®ÇÑ ÀÌÇØ°¡ °¥°Ì´Ï´Ù. ±¸±Û¿¡¼­ ÀÌ¿¡ ´ëÇÑ ºñ½ÁÇÑ Áú¹®ÀÌ ÀÖ¾úÁö¸¸ Ä¿³Î ¼Ò½º¸¦ °¡Áö°í ¼³¸íÇÏ´õ±º¿ä. Çѹø ±¸±Û¿¡¼­ ã¾Æº¸¼¼¿ä.

http://list.ftech.net/pipermail/gllug/2002-August/025225.html

/proc/stat ´Â ºÎÆÃÀÌÈĺÎÅÍ ´©ÀûµÈ °ªÀ» º¸¿©ÁÝ´Ï´Ù.

$ cat /proc/stat | grep disk
disk_io: (3,0):(697057,40796,705670,656261,10945166) (3,1):(30,22,266,8,72)

3,0 : major/minor  (/dev/hda   3,1 Àº /dev/hdb)
µÚ¿¡ ´Ù¼¸°³ÀÇ ¼ýÀÚ°¡ ³ª¿É´Ï´Ù.

697057,40796,705670,656261,10945166
Á¦ÀÏ ¾ÕÀÇ ¼ýÀÚ´Â ¹ºÁö Àß ÀÌÇØ°¡ °¡Áö ¾Ê½À´Ï´Ù. ±×·³ µÚÀÇ ³ª¸ÓÁö ³×°³´Â?
read-requests,read-sectors,write-requests,write-sectors

The number of read requests / The total number of blocks read / The number of write requests / The total number of blocks written

¿©±â¼­ ºí·°ÀÇ ´ÜÀ§´Â 512B ytes ÀÔ´Ï´Ù.

#  iostat -td 1
Time: 10:24:44 PM  
Device:            tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
dev3-0            7.06         7.65       110.98     767678   11143682
dev3-1            0.00         0.00         0.00        266         72

Time: 10:24:45 PM  
Device:            tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
dev3-0            0.00         0.00         0.00          0          0
dev3-1            0.00         0.00         0.00          0          0


# iostat -td 1 -x /dev/hda
Linux 2.4.20-20.7BOOT (db.ldskorea.co.kr)       11/30/2003

Time: 10:26:07 PM  
Device:    rrqm/s wrqm/s   r/s   w/s  rsec/s  wsec/s    rkB/s    wkB/s avgrq-sz avgqu-sz   await  svctm  %util
/dev/hda     0.51   7.27  0.45  6.06    7.64  110.98     3.82    55.49    18.22     1.54  248.57 222.09  14.46

Time: 10:26:08 PM  
Device:    rrqm/s wrqm/s   r/s   w/s  rsec/s  wsec/s    rkB/s    wkB/s avgrq-sz avgqu-sz   await  svctm  %util
/dev/hda     0.00   0.00  0.00  0.00    0.00    0.00     0.00     0.00     0.00 42949642.96    0.00   0.00 100.00

Time: 10:26:09 PM  
Device:    rrqm/s wrqm/s   r/s   w/s  rsec/s  wsec/s    rkB/s    wkB/s avgrq-sz avgqu-sz   await  svctm  %util
/dev/hda     0.00   0.00  0.00  0.00    0.00    0.00     0.00     0.00     0.00 42949642.96    0.00   0.00 100.00

Âü°í·Î  Á¦ÀÏ Ã³À½ ³ª¿À´Â °ªÀº ºÎÆÃÀÌÈÄÀÇ °ªÀ̹ǷΠ¹«½ÃÇÏ°í ±× ´ÙÀ½ÁÙºÎÅÍ º¸¾Æ¾ß ÇÕ´Ï´Ù.

¿©±â¼­ read request, write request ¸¦ ÇÕÇÏ¿© ÃÊ´ç ³ª´«°ÍÀÌ tps ÀÔ´Ï´Ù. ÃÊ´ç io ¿äûÀ» ¾ó¸¶³ª ¸¹ÀÌ Çß³ª¸¦ º¼ ¼ö ÀÖ½À´Ï´Ù.

Áß¿äÇÑ°ÍÀº ´ÙÀ½°ú °°°ÚÁö¿ä.
ÃÊ´ç ¾ó¸¶³ª ¸¹Àº i/o ¿äûÀ» Çϴ°¡ :  tps, r/s, w/s - Àüü,  read, write io request
ÃÊ´ç Àü¼Û·® :  r/w Àü¼Û¾çÀÔ´Ï´Ù. -x ¿É¼ÇÀÌ ¾øÀ»¶§´Â ºí¶ô±âÁØÀ̸ç(Blk_read/s   Blk_wrtn/s) À̸¦ byte ·Î ¹Ù²Ù·¯¸é 512 byte ¸¦ °öÇÏ¸é µË´Ï´Ù. -x ¿É¼ÇÀÌ ÀÖÀ¸¸é ¹ÙÀÌÆ®·Î ³ª¿É´Ï´Ù. (rkB/s,    wkB/s )
r/w ºñÀ² : i/o request, Àü¼Û·®¿¡¼­ read ¿Í write ºñÀ²À» º¸¸é ÁÖ·Î ÀбâÁß½ÉÀÎÁö ¾²±âÁß½ÉÀÎÁö ¾Ë ¼ö ÀÖÀ» °ÍÀÔ´Ï´Ù.
  DNS (Domain Name System) ¼³Ä¡¹æ¹ý
  ¸ð´ÏÅ͸µ ÇÊ¿äÇÑ Ç׸ñ





ȸ»ç¼Ò°³ °³ÀÎÁ¤º¸Ãë±Þ¹æħ ÀÌ¿ë¾à°ü À̸ÞÀÏÁÖ¼Ò ¹«´Ü¼öÁý°ÅºÎ CONTACT US IDC ¾àµµ
ȸ»ç¼Ò°³ °³ÀÎÁ¤º¸Ãë±Þ¹æħ ÀÌ¿ë¾à°ü À̸ÞÀÏÁÖ¼Ò ¹«´Ü¼öÁý°ÅºÎ CONTACT US IDC ¾àµµ ȸ»ç¼Ò°³ °³ÀÎÁ¤º¸Ãë±Þ¹æħ ÀÌ¿ë¾à°ü À̸ÞÀÏÁÖ¼Ò ¹«´Ü¼öÁý°ÅºÎ CONTACT US IDC ¾àµµ