AIX 시스템 명령(cpu, memory, disk)

2010.05.11 10:43

조인상 조회 수:22226

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

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

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

 

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

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


AIX 시스템 명령(cpu, memory, disk) | 운영체제_패키지 2005/10/31 22:11 

http://blog.naver.com/bunny121/140018912543

CPU 관련
CPU 정보 확인
topas

sys : 커널이 사용하는 process time slice에 대한 백분율.
User : 사용자 프로그램에서 사용하는 사용율.
Idle : 지금 사용되고 있지 않은 부분.
Wio : 디스크에서의 응답을 기다리는 부분을 말하는데 이 부분은 다른 프로세스가 올라와서 리소스 요청을 하면 사용될 수 있는 부분                   
                   
sar -P ALL 3 10 (root)

sar -P ALL 3 10 (root)

% sar -P ALL 1 2

AIX aix 1 5 0001D01F4C00    05/20/03

12:54:00 cpu    %usr    %sys    %wio  %idle
12:54:02  0      32      52      15      1
          1      31      45      19      4
          -      31      49      17      2
12:54:03  0      25      48      7      20
          1      36      34      9      21
          -      32      40      8      20
평균      0      29      50      11      9
          1      34      39      13      14
-        32      45      12      11                   
                   
lsattr -El proc0 (5L)

state    enable          프로세서 상태 거짓
type      PowerPC_RS64-III 프로세서 유형 거짓
frequency 601600000        프로세서 속도 거짓                   
                   
CPU 사용량 확인
TOP

메모리 관련
메모리 정보 확인
topas

Memory : 물리적 메모리와 페이징 영역에 대한 부분을 보여준다.
물리적 메모리는 일단 계산 가능 영역(computational area)이 있고 계산 불가 영역(noncomputational area)이 있는데 계산 가능 영역(computational)은 프로세스가 사용하는 메모리의 부분이고
계산 불가 영역(noncomputational area)은 파일 캐시(file cache)용도로 사용하는 부분을 말한다.
paging in, out에 대한 부분도 보여주고 이 외에도 top process와 디스크 등의 사용율을 보여준다.                   
                   
svmon -G

size        inuse      free        pin        virtual
memory      1048565    901587    146978      56480    216102
pg space    753664      41379
              work      pers      clnt
pin          56480          0          0
in use      180237    721350          0                   
                   
프로세스 메모리 확인
ps -aux

시스템에서 진행 중인 프로세스에 대한 정보를 %CPU, %MEM, RSS 값과 함께 보여준다.

svmon -P <id>

% svmon -P 13658

-------------------------------------------------------------------------------
    Pid Command          Inuse      Pin    Pgsp  Virtual  64-bit Mthrd
  13658 at              19230    1605    1820    13917    Y    Y

    Vsid    Esid Type Description                Inuse  Pin Pgsp Virtual
  4c272      11 work text data BSS heap          8371    0  34  403
      0        0 work kernel seg                  3109  1576 1745  4647
  50994        - pers /dev/home_lv:5513252        2503    0    -    -
    89a2        - pers /dev/home_lv:5513251        2169    0    -    -
  14204      10 pers text data BSS heap,/dev/home 1590    0    -    -
  601f8 90000000 work shared library text            467    0    3  490
  4c993        - pers /dev/home_lv:5513250        223    0    -    -
  500d5        - pers /dev/home_lv:5513249        220    0    -    -
  44991        - pers /dev/home_lv:5513248        215    0    -    -
    c402 9001000a work shared library data            111    0    0  111
  1c207 90020014 work shared library                110    0  37  132
  ………….                   
                   
시스템 메모리 확인
%vmstat -p 1 10

Usage: vmstat [-cisS] [disk ...] [interval [count]]

%vmstat 1 1
procs    memory            page          disk        faults      cpu
r b w  swap  free  re mf  pi po fr  de sr s6 sd sd sd  in  sy  cs  us  sy  id
0 0 0  44048  2936  3 959 44 34 43  0 1  0  2  2 1  867 6994 3662 18  9  72                   
                   
Memory Top 3 확인
svmon -uP -t 3 | grep -p Pid 또는 svmon -P -t 3 -p

% svmon -uP -t 3 | grep -p Pid
-------------------------------------------------------------------------------
    Pid Command    Inuse  Pin  Pgsp  Virtual  64-bit  Mthrd
  31462  at      95870  1605  1949  39704    Y      Y

-------------------------------------------------------------------------------
    Pid Command    Inuse  Pin  Pgsp  Virtual  64-bit    Mthrd
  26852  at      20352  1607  1841  14624    Y        Y

-------------------------------------------------------------------------------
    Pid Command    Inuse  Pin  Pgsp  Virtual  64-bit    Mthrd
13658  at      19296  1605  1820  13917    Y        Y                   
                   
Real Memory Check
Real Memory 사용률이 높은 3개의 프로세스를 체크하는 방법

% ps gu|head -n 1;ps gu|egrep -v "CPU|kproc"|sort +3b -n -r|head -n 3
USER  PID %CPU %MEM  SZ  RSS    TTY STAT  STIME TIME
qa64  31462  0.5  4.0  141680 143816  - A    04:40:11  5:12
qa64  13658  0.5  1.0  38536  40584    A    04:24:05  5:23
qa64  26852  0.5  1.0  41320  43804  - A    04:39:39  4:59
…………                   
                   
시스템 관련
LOG 확인
syslog

기본적으로 /var/adm/syslog 여기에 위치해 있으나 없는 경우는 아래 syslog.conf에 설정되어 있는 파일 경로에서 찾으면 확인 가능하다.

syslog.conf

% vi /etc/syslog
마지막 부분에
# example:
# "mail messages, at debug or higher, go to Log file. File must exist."
# "all facilities, at debug and higher, go to console"
# "all facilities, at crit or higher, go to all users"
#  mail.debug          /usr/spool/mqueue/syslog
#  *.debug              /dev/console
#  *.crit                      *
#  *.debug              /tmp/syslog.out    rotate size 100k files 4
#  *.crit              /tmp/syslog.out    rotate time 1d                   
                   
운영 체제 버전 확인
Oslevel

5.1.0.0 또는 4.3.3.0 의 버전(Version) 으로 표시

uname -M

IBM,7025-6F1

uname -a

AIX aix 1 5 0001D01F4C00

패치 번호 확인
lslpp

% lslpp -L | grep motif
X11.adt.motif            5.1.0.0  C  F  AIXwindows Application
X11.motif.lib            5.1.0.10  C  F  AIXwindows Motif Libraries
X11.motif.mwm          5.1.0.0  C  F  AIXwindows Motif Window Manager
X11.msg.ko_KR.motif.lib  5.1.0.0  C  F  AIXwindows Motif Libraries
X11.msg.ko_KR.motif.mwm  5.1.0.0  C  F  AIXwindows Motif Window Mgr Msgs                   
                   
디스크 관련
iostat

Usage : iostat [ -s ] [ -a ] [ -d | -t ] [ PhysicalVolume ... ] [ Interval [ Count ]

% iostat 3 1
tty:  tin    tout  avg-cpu:  % user  % sys  % idle  % iowait
    0.0  388.0              23.6    16.0    54.7      5.8   

디스크:      % tm_act    Kbps      tps    Kb_read  Kb_wrtn
hdisk1          0.1      5.8      0.1      14287  8650449
hdisk0          0.0      0.0      0.0          0        0
hdisk2          0.0      0.0      0.0          0      244
cd0              0.0      0.0      0.0          0        0
번호 제목 글쓴이 날짜 조회 수
공지 [공지] 게시자료 열람자유. 불펌금지입니다. 조인상 2010.12.07 108708
151 AIX 5.2 DNS setting 조인상 2010.05.11 24580
150 solaris나 hpux 에서는 tcp 세션 clear(접속을 끊는) 시키는 명령어가 있는데 AIX는 없나요? 조인상 2010.05.11 24533
149 AIX에서 설치된 OS의 커널비트수 확인 조인상 2010.05.11 24336
148 미러된 rootvg를 alt_disk_install 로 복제하기 [1] 조인상 2011.06.29 24307
147 신규시험 정보 Test 000-104: AIX 6.1 Administration 조인상 2010.06.02 24272
146 각종 많이 쓰이는 어플리케이션 서비스 관련 포트번호 조인상 2011.07.21 24251
145 AIX 6.1 aio 설정법 조인상 2010.07.06 24149
144 IBM pSeries 장비에 시리얼(HMC) 연결하기. file 조인상 2010.05.11 23705
143 보안점검용 스크립트 - AIX,Linux,HP-UX,Solaris 조인상 2011.01.03 23291
142 c 컴파일러 설치하기 조인상 2010.05.11 23195
141 topas 에 대하여 조인상 2010.05.11 22895
140 date 명령어에서의 형식 옵션 사용 조인상 2010.09.14 22723
139 LPAR란?? 조인상 2010.05.11 22407
138 4mm tape 이용한 tsm 구성하는 방법 조인상 2010.05.11 22360
» AIX 시스템 명령(cpu, memory, disk) 조인상 2010.05.11 22226
136 MP 설치하기 조인상 2010.05.11 21819
135 IBM AIX expert 취득 로드맵 file 조인상 2010.05.11 21779
134 Full System Partition <-> LPAR 방법 조인상 2010.05.11 21679
133 ODM에 남아있는 Default Gateway 정보 삭제하기 조인상 2010.06.21 21107
132 pSeriese 온도 확인 방법 조인상 2010.06.17 20898
서버에 요청 중입니다. 잠시만 기다려 주십시오...