about iostat

2010.05.12 03:41

조인상 조회 수:7803

원문 : http://www.ischo.net -- 조인상 // 시스템 엔지니어

Writer : http://www.ischo.net -- ischo // System Engineer in Replubic Of Korea

+++++++++++++++++++++++++++++++++++++++++++++++++++++++

 

본문 : http://www.ischo.net -- 조인상 //시스템 엔지니어

+++++++++++++++++++++++++++++++++++++++++++++++++++++++




Input Output statistics (  iostat )

iostat  reports terminal and disk  I/O  activity and  CPU utilization.  The first line of output is for the  time period  since boot  &  each subsequent line is for  the  prior  interval . Kernel maintains  a number of counters to keep track of  the  values.

iostat's activity class options default  to  tdc  (terminal,  disk, and CPU). If any other option/s are specified,  this  default is completely overridden i.e.  iostat -d will report only statistics about the disks.



syntax:

Basic synctax is iostat  <options>  interval  count

option - let you specify the device for which information is needed like disk , cpu or terminal. (-d , -c , -t  or -tdc ) .  x options gives the extended statistics .

interval -  is time period in seconds between two samples . iostat  4  will give data at each 4 seconds interval.

count  - is the  number of times the data is needed .  iostat 4 5  will give data at 4 seconds interval  5 times


 









Example

$ iostat -xtc 5 2
                  extended disk statistics    tty      cpu
    disk r/s  w/s Kr/s Kw/s wait actv svc_t  %w  %b  tin tout us sy wt id
    sd0  2.6 3.0 20.7 22.7 0.1  0.2  59.2  6  19  0  84  3  85 11 0
    sd1  4.2 1.0 33.5  8.0 0.0  0.2  47.2  2  23
    sd2  0.0 0.0  0.0  0.0 0.0  0.0  0.0  0  0
    sd3  10.2 1.6 51.4 12.8 0.1  0.3  31.2  3  31


    The fields have the following meanings:

    disk  name of the disk
    r/s    reads per second
    w/s    writes per second
    Kr/s  kilobytes read per second
    Kw/s  kilobytes written per second
    wait  average number of transactions waiting for service (Q length)
    actv  average number of transactions  actively 
          being serviced (removed  from  the
      queue but not yet
          completed)
    %w    percent of time there are transactions  waiting
          for service (queue non-empty)
    %b    percent of time the disk is busy  (transactions
            in progress)




Results and Solutions:

The values to look from the iostat output  are:

Reads/writes  per second (r/s , w/s)
Percentage busy (%b)
Service time (svc_t)
If a disk shows consistently high reads/writes along with , the percentage busy (%b) of the disks is greater than 5 percent, and the average service time  (svc_t) is greater than 30 milliseconds, then  one of the following action needs to be taken

1.)Tune the application to use disk i/o more efficiently  by modifying the disk queries and using available cache facilities of application servers .

2.) Spread the file system of the disk on to two or more disk  using disk striping feature of volume manager /disksuite  etc.

3.) Increase the system parameter values for  inode cache  , ufs_ninode ,  which is  Number of inodes to be held in memory. Inodes are cached globally (for UFS), not on a per-file system basis 

4.) Move the file system to another faster disk /controller  or replace existing disk/controller to a faster one.
번호 제목 글쓴이 날짜 조회 수
공지 [공지] 게시자료 열람자유. 불펌금지입니다. 조인상 2010.12.07 20188
33 솔라리스 버전별 유저수 / 한 파일시스템에 만들수 있는 파일개수 조인상 2010.05.12 9879
32 최대 프로세스 확인하는 방법과 변경 방법 조인상 2010.05.12 9887
31 utmp, utmpx, wtmp 및 wtmpx 파일을 읽는 방법 조인상 2010.05.12 10027
30 센드메일 에러 config error: mail loops back to me (MX problem?) 조인상 2010.05.12 10275
29 모니터해상도가 맞지 않아 화면이 크거나 작게 나올때 조인상 2010.05.12 10583
28 같은아이디로 여러번 로그인(멀티로그인) 금지 방법 조인상 2010.05.12 10680
27 number of files (nofiles : File descriptor)값 변경하는 법 조인상 2010.05.12 11760
26 Sun Fire V440 V445 Server_admin_guide file 조인상 2012.06.07 12690
25 SUN 하드웨어 점검방법 조인상 2010.05.12 13554
24 EIS install 방법 조인상 2010.05.12 13794
23 C++ 테스트 코드 조인상 2010.05.12 14062
22 Solaris 10 IP 관리 file 조인상 2012.01.03 14068
21 솔라리스 10 매뉴얼 file 조인상 2010.05.12 14222
20 Maximum number of Process 값 확인 방법 조인상 2010.06.25 14639
19 telnet 접속시 No utmpx entry. You must exec "login" from the lowes 조인상 2010.05.12 14886
18 [ksh] 여러개의 프로세스 kill 시키는 스크립트 조인상 2010.05.12 15580
17 SUN T5240용 시리얼케이블 만들기 file 조인상 2014.06.10 15604
16 UTP 케이블. 다이렉트/크로스 제작방법 조인상 2010.05.12 15628
15 Oracle Solaris 11 OE 설치 가이드 file 조인상 2011.12.15 15751
14 tape 인식이 안될때 재인식시키는 방법 조인상 2010.05.12 16081
서버에 요청 중입니다. 잠시만 기다려 주십시오...