[AIX 성능 도구 18] svmon 명령 (2) 전역·사용자·명령·프로세스·세그먼트 보고서
https://archive.horanglab.com/posts/aix-perf-svmon-2
핵심 정리
svmon -G: 전체 메모리. memory(size, inuse, free, pin, virtual, available), pg space(size, inuse), pin·in use를 work·pers·clnt·other로 나눈 값. available은 파일 캐시를 고려한 계산용 데이터에 쓸 수 있는 메모리입니다.- AME가 켜진 시스템은
-O summary=ame로 압축 풀(comprsd)·비압축 풀(ucomprsd), 목표·현재 확장 계수(txf, cxf), 부족분(dxm)을 봅니다.-O affinity=on은 전용 파티션의 메모리 친화 도메인별 통계입니다. svmon -U(사용자),-C 명령(명령),-P [PID](프로세스,-t 10으로 상위 10개),-W/-T(WLM),-S(세그먼트,-O filtercat=unattached로 주인 없는 공유 메모리 찾기).- 세그먼트 Type: pers(파일), work(데이터·스택·공유 메모리), clnt(JFS2·NFS 파일), mmap, rmap. client 세그먼트는 Pgsp·Virtual이 의미 없어
-로 나옵니다. -D는 세그먼트의 페이지·프레임 단위 상세,-X는 XSD 스키마를 따르는 XML(.svm) 출력입니다.
| 항목 | 내용 |
|---|---|
| 버전 | AIX 6.1 (5.3판 Performance Tools Guide에는 이 장이 없음) |
| 원문 | Performance Tools Guide and Reference — 6.1판 326~347쪽 |
| 명령 | /usr/bin/svmon |
| 파일 | /usr/lib/perf/svmon_measurement.xsd |
| 관련 명령어 | vmstat, rmss, ipcs, ncheck, wlmstat |
svmon 명령 보고서의 출력입니다.
(AME가 켜진 시스템에서) 메모리 확장 정보를 간단한 형식으로 보려면 다음을 입력합니다.
# svmon -G -O summary=longame
Unit: page
-----------------------------------------------------------------------------------------------------
Active Memory Expansion
-----------------------------------------------------------------------------------------------------
Size Inuse Free DXMSz UCMInuse CMInuse TMSz TMFr CPSz
262144 152625 43055 67640 98217 54408 131072 6787 26068
CPFr txf cxf CR
3888 2.00 1.48 2.45
영어 원문
Reports details
Review the output for the svmon command reports.
To display compact report of memory expansion information (in a system with Active Memory Expansion enabled), enter:
# svmon -G -O summary=longame
Unit: page
-----------------------------------------------------------------------------------------------------
Active Memory Expansion
-----------------------------------------------------------------------------------------------------
Size Inuse Free DXMSz UCMInuse CMInuse TMSz TMFr CPSz
262144 152625 43055 67640 98217 54408 131072 6787 26068
CPFr txf cxf CR
3888 2.00 1.48 2.45
전역 보고서(-G)
전역 보고서는 -G 플래그로 출력합니다. 시스템 전체의 실메모리를 자세히 보여 줍니다. 여러 요약이 있으며, memory와 inuse 요약은 늘 나옵니다.
-O summary 옵션을 쓰지 않거나 -O summary=basic이면 전역 보고서 요약의 열 머리는 다음과 같습니다.
memory: 메모리 사용 통계
| 필드 | 설명 |
|---|---|
| size | 프레임 수(실메모리 크기). 메모리 크기 조정 도구 rmss 명령이 쓸 수 없게 만든 빈 프레임은 들어가지 않습니다. |
| inuse | 페이지가 든 프레임 수. 예약 풀(16MB 페이지 풀 등)이 정의된 시스템에서는 쓰지 않더라도 예약 풀용 프레임이 들어갑니다. |
| free | 모든 메모리 풀의 빈 프레임 수. 파일 캐시에 따라 쓸 수 있는 메모리가 더 있을 수 있습니다(available 참고). |
| pin | 고정 페이지가 든 프레임 수. 예약 풀이 정의된 시스템에서는 예약 풀용 프레임이 들어갑니다. |
| virtual | 시스템 가상 공간에 할당된 페이지 수 |
| available | 계산용 데이터에 쓸 수 있는 메모리 양. 파일 캐시 크기와 빈 메모리 양으로 계산합니다. |
| stolen | 시스템에서 rmss가 실행 중일 때만 나옵니다. rmss가 가져가 VMM이 쓸 수 없다고 표시한 프레임 수 |
| mmode | 시스템이 실행 중인 메모리 모드. Ded는 AMS(Active Memory Sharing)도 AME(Active Memory Expansion)도 꺼짐, Shar는 AMS만 켜짐, Ded-E는 AMS는 꺼지고 AME는 켜짐, Shar-E는 AMS와 AME가 모두 켜짐 |
| ucomprsd | 비압축 풀의 확장 메모리 통계. inuse는 쓰고 있는 비압축 페이지 수 |
| comprsd | 압축 풀의 확장 메모리 통계. inuse는 압축 풀의 압축 페이지 수 |
pg space: 페이징 공간 사용 통계
| 필드 | 설명 |
|---|---|
| size | 페이징 공간 크기 |
| inuse | 쓰고 있는 페이징 공간 페이지 수 |
| ucomprsd | 비압축 풀에 있는 working 페이지의 확장 메모리 통계 |
| comprsd | 압축 풀에 있는 working 페이지의 확장 메모리 통계. inuse는 압축 풀의 압축 페이지 수 |
pin: 실메모리 가운데 고정 페이지가 든 부분의 통계
| 필드 | 설명 |
|---|---|
| work | working 세그먼트의 사용 중 페이지가 든 프레임 수 |
| pers | persistent 세그먼트의 사용 중 페이지가 든 프레임 수 |
| clnt | client 세그먼트의 사용 중 페이지가 든 프레임 수 |
| other | 세그먼트 제어 블록을 쓰지 않는 모든 메모리 페이지가 든 프레임 수. 물리-가상 페이지 표(PVT), 물리-가상 페이지 목록(PVLIST), 커널 특수 목적(KSP) 영역 등입니다. |
in use: 실메모리 가운데 사용 중인 부분의 통계
| 필드 | 설명 |
|---|---|
| work | working 세그먼트의 사용 중 페이지가 든 프레임 수 |
| pers | persistent 세그먼트의 사용 중 페이지가 든 프레임 수 |
| clnt | client 세그먼트의 사용 중 페이지가 든 프레임 수 |
| ucomprsd | 비압축 풀에 있는 working 페이지의 확장 메모리 통계 |
| comprsd | 압축 풀에 있는 working 페이지의 확장 메모리 통계. inuse는 압축 풀의 압축 페이지 수 |
PageSize: 시스템에서 다른 페이지 크기(4KB가 아닌 것)를 쓸 수 있고 -O pgsz=on일 때만 나옵니다. 페이지 크기마다 통계를 따로 보여 줍니다.
| 필드 | 설명 |
|---|---|
| PageSize | 다음 통계의 페이지 크기 |
| PoolSize | 예약 풀(16MB 페이지 풀 등)을 쓰는 페이지 크기의 풀 안 페이지 수 |
| inuse | 이 크기의 페이지 가운데 쓰고 있는 수 |
| pgsp | 이 크기의 페이지 가운데 페이징 공간에 할당된 수 |
| pin | 이 크기의 고정 페이지 수 |
| virtual | 이 크기의 페이지 가운데 시스템 가상 공간에 할당된 수 |
| ucomprsd | 이 크기의 페이지 가운데 비압축 상태인 수 |
Domain affinity: 친화 도메인(affinity domain)마다의 통계. -O affinity=on 옵션으로 켭니다.
| 필드 | 설명 |
|---|---|
| total | 이 친화 도메인의 전체 메모리 |
| used | 이 친화 도메인에서 쓰고 있는 메모리 |
| free | 이 친화 도메인에 남은 빈 메모리 |
| lcpus | 이 친화 도메인의 논리 CPU 목록 |
참고: ucomprsd와 comprsd 지표는 AME가 켜진 시스템에서만 나오며, 이 확장 메모리 통계를 보려면 -O summary=ame 옵션이 필요합니다.
AME가 켜진 시스템에서 -O summary=ame 옵션을 쓰면, 일반 보고서 끝의 전역 보고서 요약에 다음 메모리 정보(실제 메모리 스냅숏)가 나옵니다.
| 필드 | 설명 |
|---|---|
| True Memory | 실제(true) 메모리 크기 |
| ucomprsd | 비압축 풀의 자세한 정보. CurSz는 현재 크기, %Cur는 비압축 풀이 쓰는 실제 메모리의 비율, TgtSz는 목표 메모리 확장 계수를 이루는 데 필요한 비압축 풀의 목표 크기, %Tgt는 목표 확장 계수를 이뤘을 때 비압축 풀이 쓸 실제 메모리의 비율 |
| comprsd | 압축 풀의 자세한 정보. CurSz는 현재 크기, %Cur는 압축 풀이 쓰는 실제 메모리의 비율, TgtSz는 목표 메모리 확장 계수를 이루는 데 필요한 압축 풀의 목표 크기, %Tgt는 목표를 이뤘을 때 쓸 실제 메모리의 비율, %Max는 압축 풀이 최대 크기가 됐을 때 쓸 실제 메모리의 비율, CRatio는 압축률 |
| AME | txf는 목표 메모리 확장 계수, cxf는 현재 메모리 확장 계수, dxf는 목표 확장 계수에 이르기까지의 부족 계수, dxm은 목표 확장에 이르기까지의 부족 메모리 |
참고: 위의 실제 메모리 부분은 -O tmem=off 옵션으로 끌 수 있습니다.
-G와 함께 -O summary=longreal 옵션을 쓰면 간단 보고서 머리에 다음 지표가 나옵니다.
| 필드 | 설명 |
|---|---|
| Size | 프레임 수(실메모리 크기). rmss가 쓸 수 없게 만든 빈 프레임도 들어갑니다. |
| Inuse | 페이지가 든 프레임 수. 예약 풀이 정의된 시스템에서는 예약 풀용 프레임이 들어갑니다. |
| Free | 모든 메모리 풀의 빈 프레임 수. 파일 캐시에 따라 쓸 수 있는 메모리가 더 있을 수 있습니다. |
| Pin | 고정 페이지가 든 프레임 수. 예약 풀이 정의된 시스템에서는 예약 풀용 프레임이 들어갑니다. |
| Virtual | 시스템 가상 공간에 할당된 페이지 수 |
| Available | 계산용 데이터에 쓸 수 있는 메모리 양(파일 캐시 크기와 빈 메모리로 계산) |
| Pgsp | 페이징 공간에 할당된 페이지 수 |
-G와 -@를 함께 쓰면 WPAR 열(WPAR 이름)이 더해집니다.
참고:
-@플래그를 목록 없이 주면-O summary옵션을 쓸 때 마지막 열에 WPAR 이름이 더해지는 것 말고는 효과가 없습니다.-@뒤에 목록을 주면 나열한 WPAR마다 절이 하나씩 나옵니다. ALL을 주면 시스템 전체 절과 전역 절도 나옵니다. WPAR별로 얻을 수 없는 지표는 해당 전역 값(-@ WparList일 때)이나 "-"(-@ ALL일 때)로 바뀝니다.- WPAR별 지표 대신 전역 값을 보여 주는 곳은 보고서에 @ 표시가 붙습니다.
- 일부 지표는 WLM으로 WPAR 메모리 사용을 제한할 때만 WPAR별로 얻을 수 있습니다.
-G와 함께 -O summary=longame 옵션을 쓰면 간단 보고서 머리에 다음 AME 지표가 나옵니다.
| 필드 | 설명 |
|---|---|
| Size | 확장된 메모리 크기 |
| Inuse | 쓰고 있는 페이지 수(확장된 형태) |
| Free | 빈 목록 크기(확장된 형태) |
| DXMSz | 목표 메모리 확장에 이르기까지의 부족 메모리 |
| UCMInuse | 쓰고 있는 비압축 페이지 수 |
| CMInuse | 압축 풀의 압축 페이지 수 |
| TMSz | 실제 메모리 크기 |
| TMFr | 실제 빈 페이지 프레임 수 |
| CPSz | 압축 풀 크기 |
| CPFr | 원문은 "비압축 풀 크기"라고 적었지만 이름으로 보아 압축 풀의 빈 크기입니다. |
| txf | 목표 메모리 확장 계수 |
| cxf | 현재 메모리 확장 계수 |
| CR | 압축률 |
예
- 단위를 자동으로 골라 기본
svmon보고서를 보려면svmon -O summary=basic,unit=auto,pgsz=on이나svmon -G -O unit=auto,pgsz=on을 입력합니다.
Unit: auto
-------------------------------------------------------------------------------
size inuse free pin virtual available
memory 31.0G 2.85G 28.1G 1.65G 2.65G 27.3G
pg space 512.00M 13.4M
work pers clnt other
pin 688.57M 0K 0K 924.95M
in use 2.65G 0K 124.55M
PageSize PoolSize inuse pgsp pin virtual
s 4 KB - 2.41G 13.4M 1.34G 2.29G
m 64 KB - 376.81M 0K 241.81M 376.81M
L 16 MB 5 0K 0K 80.0M 0K
시스템의 메모리 크기는 31GB입니다. 이 가운데 2.85GB가 사용 중 프레임, 28.1GB가 빈 프레임입니다. 1.65GB가 메모리에 고정되어 있고, 2.65GB가 시스템 가상 공간에 할당되어 있으며, 27.3GB를 새 프로세스의 계산용 데이터로 쓸 수 있습니다. inuse와 pin 값에는 16MB 페이지 메모리 풀용으로 예약한 페이지(80MB)가 들어 있습니다. 페이징 공간은 512MB이며 13.4MB를 씁니다. 고정 프레임(1.65GB)은 working 세그먼트 고정 페이지(688.57MB)와 다른 고정 페이지 924.95MB(예를 들어 커널이 쓸 수 있음)로 이루어지며, 16MB 페이지 풀이 쓰지 않으면서 고정한 메모리는 세지 않습니다. 페이지가 든 프레임(2.85GB)은 working 세그먼트 페이지(2.65GB)와 client 세그먼트 페이지(124.55MB)로 이루어지며, 16MB 풀에서 예약만 되고 inuse로 세는 메모리는 세지 않습니다. 이어서 시스템에서 쓸 수 있는 페이지 크기마다 통계가 나옵니다. 예를 들어 16MB 페이지 풀은 16MB 페이지 5개로 이루어지며, 하나도 쓰지 않고, 페이징 공간에도 없으며(모두 고정되어 있으므로), 모두 고정되어 있고, 시스템 가상 공간에도 없습니다.
- 친화 도메인 정보도 보려면
svmon -G -O unit=MB,pgsz=on,affinity=on을 입력합니다.
Unit: MB
-------------------------------------------------------------------------------
size inuse free pin virtual available
memory 31744.00 3055.36 28688.64 1838.84 2859.78 27911.33
pg space 512.00 14.7
work pers clnt other
pin 833.90 0 0 924.95
in use 2859.78 0 163.59
PageSize PoolSize inuse pgsp pin virtual
s 4 KB - 1628.93 14.7 1291.47 1465.34
m 64 KB - 1346.44 0 467.38 1346.44
L 16 MB 5 48.0 0 80.0 48.0
Domain affinity free used total lcpus
0 14131.05 1475.13 15606.18 0 1 2 3
1 14589.65 1538.35 16128.00 4 5 6 7
전용 LPAR 파티션에서 뜬 이 예에는 도메인 친화 지표가 더해졌습니다. 31744MB의 메모리가 메모리 친화 도메인 두 개로 나뉩니다. 도메인 0에는 15606.18MB가 있고 1475.13MB를 쓰며 14131.05MB가 비어 있습니다. 도메인 1에는 16128MB가 있고 1538.35MB를 쓰며 14589.65MB가 비어 있습니다.
- 친화 도메인 정보를 자세히 보려면
svmon -G -O unit=MB,pgsz=on,affinity=detail을 입력합니다.
Unit: MB
-------------------------------------------------------------------------------
size inuse free pin virtual available
memory 31744.00 3055.70 28688.30 1838.91 2860.11 27910.99
pg space 512.00 14.7
work pers clnt other
pin 833.96 0 0 924.95
in use 2860.11 0 163.58
PageSize PoolSize inuse pgsp pin virtual
s 4 KB - 1629.26 14.7 1291.47 1465.68
Domain affinity used
0 129735
1 44909
m 64 KB - 1346.44 0 467.44 1346.44
Domain affinity used
0 12432
1 8512
L 16 MB 5 48.0 0 80.0 48.0
Domain affinity used
0 4096
1 8192
Domain affinity free used total lcpus
0 14131.05 1475.13 15606.18 0 1 2 3
1 14589.65 1538.35 16128.00 4 5 6 7
이 예에서는 페이지 크기별 보고서에도 친화 도메인별 분류가 나옵니다. 이 옵션은 실행에 시간이 좀 걸립니다.
- 공유 파티션에서 친화 도메인 정보를 보려고
svmon -G -O unit=MB,pgsz=on,affinity=on을 입력하면 다음과 같이 나옵니다.
Unit: MB
-------------------------------------------------------------------------------
size inuse free pin virtual available
memory 4096.00 811.59 3284.41 421.71 715.08 3248.66
pg space 512.00 6.23
work pers clnt other
pin 284.02 0 0 137.68
in use 715.08 0 96.5
PageSize PoolSize inuse pgsp pin virtual
s 4 KB - 506.78 6.23 288.77 410.27
m 64 KB - 304.81 0 132.94 304.81
Domain affinity free used total lcpus
*** not supported in shared pools ***
메모리 친화 도메인은 전용 파티션에서만 의미가 있습니다.
- 한 줄짜리 전역 보고서를 보려면
svmon -O summary=longreal을 입력합니다.
Unit: page
------------------------------------------------------------------------
Memory
-----------------------------------------------------------------------
Size Inuse Free Pin Virtual Available Pgsp
262144 187219 74925 82515 149067 101251 131072
여기 나오는 지표는 기본 형식의 지표와 같습니다. 메모리는 262144프레임이며 187219프레임이 사용 중이고 74925프레임이 남아 있습니다. 149067페이지가 가상 메모리에 할당되어 있고 101251프레임을 쓸 수 있습니다.
- 전역 메모리 통계를 MB 단위로 일정 간격마다 보려면
svmon -G -O unit=MB,summary=shortreal -i 60 5를 입력합니다.
Unit: MB
-------------------------------------------------------------------------------
Size Inuse Free Pin Virtual Available Pgsp
1024.00 709.69 314.31 320.89 590.74 387.95 512.00
1024.00 711.55 312.39 320.94 592.60 386.02 512.00
1024.00 749.10 274.89 322.89 630.15 348.53 512.00
1024.00 728.08 295.93 324.57 609.11 369.57 512.00
1024.00 716.79 307.21 325.66 597.50 381.16 512.00
60초마다 메모리 스냅숏을 5분 동안 찍어 시스템 전체를 감시하는 예입니다.
- (AME가 켜진 시스템에서) 메모리 확장 정보를 자세히 보려면
svmon -G -O summary=ame을 입력합니다.
Unit: page
--------------------------------------------------------------------------------------
size inuse free pin virtual available mmode
memory 262144 152619 43061 73733 154779 41340 Ded-E
ucomprsd - 98216 -
comprsd - 54403 -
pg space 131072 1212
work pers clnt other
pin 66195 0 0 7538
in use 147831 0 4788
ucomprsd 93428
comprsd 54403
--------------------------------------------------------------------------------------
True Memory: 131072
CurSz %Cur TgtSz %Tgt MaxSz %Max CRatio
ucomprsd 105004 80.11 37450 28.57 - - -
comprsd 26068 19.89 93622 71.43 45308 34.57 2.45
txf cxf dxf dxm
AME 2.00 1.48 0.52 67641
- (AME가 켜진 시스템에서) 실제 메모리 스냅숏을 끄고 메모리 확장 정보를 보려면
svmon -G -O summary=ame,tmem=off를 입력합니다.
Unit: page
--------------------------------------------------------------------------------------
size inuse free pin virtual available mmode
memory 262144 152619 43061 73733 154779 41340 Ded-E
ucomprsd - 98216 -
comprsd - 54403 -
pg space 131072 1212
work pers clnt other
pin 66195 0 0 7538
in use 147831 0 4788
ucomprsd 93428
comprsd 54403
영어 원문
Global report
To print the Global report, specify the -G flag. The Global report displays a system-wide detailed real memory view of the machine. This report contains various summaries, only the memory and inuse summaries are always displayed.
When the -O summary option is not used, or when it is set to -O summary=basic, the column headings used in global reports summaries are:
memory
Specifies statistics describing the use of memory, including:
size Number of frames (size of real memory)
Tip: This does not include the free frames that have been made unusable by the memory sizing tool, the rmss command.
inuse Number of frames containing pages
Tip: On a system where a reserved pool is defined (such as the 16 MB page pool), this value includes the frames reserved for any of these reserved pools, even if they are not used. free Number of frames free in all memory pools. There may be more memory available depending on the file cache (see: available) pin Number of frames containing pinned pages
Tip: On a system where a reserved pool is defined (such as the 16 MB page pool), this value includes the frames reserved for any of these reserved pools.
virtual
Number of pages allocated in the system virtual space
available
Amount of memory available for computational data. This metric is calculated based on the size of the file cache and the amount of free memory.
stolen Displayed only when rmss runs on the machine. Number of frames stolen by rmss and marked unusable by the VMM
mmode
Indicates the memory mode the system is running.
Following are the current possible values for mmode.
Ded Neither Active Memory Sharing nor Active Memory Expansion is enabled.
Shar Only Active Memory Sharing is enabled, Expansion in not enabled.
Ded-E
Active Memory Sharing is not enabled but Expansion is enabled.
Shar-E Both Active Memory Sharing & Active Memory Expansion are enabled.
ucomprsd
This gives a breakdown of expanded memory statistics in the uncompressed pool, including: inuse Number of uncompressed pages that are in use.
comprsd
This gives a breakdown of expanded memory statistics in the compressed pool, including: inuse Number of compressed pages in the compressed pool.
pg space
Specifies statistics describing the use of paging space.
size Size of paging space
inuse Number of paging space pages used
ucomprsd
This gives a breakdown of expanded memory statistics of working pages in the uncompressed pool, including: inuse Number of compressed pages in the compressed pool.
comprsd
This gives a breakdown of expanded memory statistics of working pages in the compressed pool, including: inuse Number of compressed pages in the compressed pool.
Pin Specifies statistics on the subset of real memory containing pinned pages, including:
work Number of frames containing working segment in use pages
pers Number of frames containing persistent segment in use pages
clnt Number of frames containing client segment in use pages
other Number of frames containing all memory pages that do not use segment control blocks. Examples for these memory pages are physical to virtual page tables (PVT), physical to virtual page lists (PVLIST), and kernel special purpose (KSP) region.
in use Specifies statistics on the subset of real memory in use, including:
work Number of frames containing working segment in use pages
pers Number of frames containing persistent segment in use pages
clnt Number of frames containing client segment in use pages
ucomprsd
This gives a breakdown of expanded memory statistics of working pages in the uncompressed pool, including: inuse Number of uncompressed pages in the compressed pool.
comprsd
This gives a breakdown of expanded memory statistics of working pages in the compressed pool, including: inuse Number of compressed pages in the compressed pool.
PageSize
Displayed only if alternative page sizes (non-4KB) are available on the system and the option -O pgsz=on is set. It displays separate sets of statistics for each of the page sizes available on the system.
PageSize
Page size for the following statistics
PoolSize
Number of pages in the pool for a page size using reserved pools (such as the 16 MB page pool)
inuse Number of pages of this size that are used
pgsp Number of pages of this size that are allocated in the paging space
pin Number of pinned pages of this size
virtual
Number of pages of this size that are allocated in the system virtual space
ucomprsd
Number of pages of this size that are in uncompressed form.
Domain affinity
Displays statistics per affinity domain. This is activated by the -O affinity=on option.
total Total memory in this affinity domain.
used Total memory used in this affinity domain.
free Total remaining free memory in this affinity domain
lcpus List of logical cpus in this affinity domain.
Note: The ucomprsdand comprsd metrics are available only in systems with Active Memory Expansion enabled.–O summary=ame option is needed to show these expanded memory statistics.
When the –O summary=ame option is used in a system with Active Memory Expansion enabled, the following memory information (true memory snapshot) is displayed in the global report summary at the end of the regular report.
True Memory
True memory size.
ucomprsd
Displays detailed information about the uncompressed pool, including
CurSz Current size of the uncompressed pool. %Cur Percentage of true memory used by the uncompressed pool
TgtSz Target size of the uncompressed pool needed to achieve the target memory expansion factor. % Tgt Percentage of true memory that will be used by the uncompressed pool when the target memory expansion factor is achieved.
comprsd
Displays detailed information about the compressed pool, including:
CurSz
Current size of the compressed pool
%Cur Percentage of true memory used by the compressed pool.
TgtSz Target size of the compressed pool needed to achieve the target memory expansion factor.
% Tgt Percentage of true memory that will be used by the compressed pool when the target memory expansion factor is achieved
% Max
Percentage of true memory that will be used by the compressed pool when the compressed pool achieves maximum size.
CRatio
Compression ratio
AME Displays the following information
txf Target Memory Expansion Factor
cxf Current Memory Expansion Factor
dxf Deficit factor to reach the target expansion factor
dxm Deficit memory to reach the target expansion
Note: The above true memory section of expanded memory statistics can be turned off using the option –O tmem=off.
When the -O summary=longreal option is set with -G, the compact report header contains the following metrics:
Size Number of frames (size of real memory)
Tip: This includes any free frames that have been made unusable by the memory sizing tool, the rmss command.
Inuse Number of frames containing pages
Tip: On a system where a reserved pool is defined (such as the 16 MB page pool), this value includes the frames reserved for any of these reserved pools.
Free Number of frames free in all memory pools. There may be more memory available depending on the file cache (see: available)
Pin Number of frames containing pinned pages
Tip: On a system where a reserved pool is defined (such as the 16 MB page pool), this value includes the frames reserved for any of these reserved pools.
Virtual
Number of pages allocated in the system virtual space
Available
Amount of memory available for computational data. This metric is calculated based on the size of the file cache and the amount of free memory.
Pgsp Number of pages allocated in the paging space
When -G is used in conjunction with -@ the following additional column is displayed:
WPAR WPAR name
Note
If you specify the
-@flag without a list, the flag has no effect except when the-O summaryoption is used, then the WPAR name is added in the last column. If a list is provided after the-@flag, the svmon command report includes one section per WPAR listed. If ALL is specified, a system-wide and a global section will also be present. Any metric not available on a per WPAR basis is either replaced by the corresponding global value (in the case of-@WparList) or by a "-" (in the case of-@ ALL).Global values are displayed instead of a per WPAR metrics. They are flagged by the presence of a @ in the report.
Some of the metrics are only available on a per WPAR basis if the WLM is used to restrict the WPAR memory usage.
When the -O summary=longameoption is set with -G , the compact report header contains the following Active Memory Expansion metrics
Size Expanded memory size
Inuse Number of pages in use (expanded form).
Free Size of freelist (expanded form).
DXMSz
Deficit memory to reach the target memory expansion
UCMInuse
Number of uncompressed pages in use.
CMInuse
Number of compressed pages in the compressed pool.
TMSz True memory size
TMFr True number of free page frames
CPSz Size of Compressed pool.
CPFr Size of Uncompressed pool.
txf Target Memory Expansion Factor
cxf Current Memory Expansion Factor
CR Compression Ratio.
Examples
- To display the default svmon report, with automatic unit selection, enter:
svmon -O summary=basic,unit=auto,pgsz=on or
svmon -G -O unit=auto,pgsz=on
Unit: auto
-------------------------------------------------------------------------------
size inuse free pin virtual available
memory 31.0G 2.85G 28.1G 1.65G 2.65G 27.3G
pg space 512.00M 13.4M
work pers clnt other
pin 688.57M 0K 0K 924.95M
in use 2.65G 0K 124.55M
PageSize PoolSize inuse pgsp pin virtual
s 4 KB - 2.41G 13.4M 1.34G 2.29G
m 64 KB - 376.81M 0K 241.81M 376.81M
L 16 MB 5 0K 0K 80.0M 0K
The memory size of the system is 31GB. This size is split into the in-used frames for 2.85 GB and into the free frames for 28.1 GB. 1.65 GB are pinned in memory, 2.65 GB are allocated in the system virtual space and 27.3 GB are available to be used as computational data by new processes. The inuse and pin values include the pages reserved for the 16 MB page memory pool (80 MB). The size of the paging space is 512 MB, where 13.4 MB are used. The pinned frames (1.65 GB) is composed of working segment pinned pages (688.57 MB) and 924.95 MB of other pin pages (can be used by the kernel for example), not counting the memory not used but pinned by the 16 MB page pool. The number of frames containing pages (2.85 GB) is composed of working segment pages (2.65 GB) and client segment pages (124.55 MB), not counting the memory that is only reserved but counted inuse from the 16 MB pool. Then statistics are displayed for each page size available on the system. For instance, the 16 MB page pool is composed of 5 pages of 16 MB. None of these are used, none are in the paging space (since they are all pinned), all of these are pinned, and none are in the system's virtual space. • To also display the affinity domain information, enter:
svmon -G -O unit=MB,pgsz=on,affinity=on
(15줄짜리 예는 위 한글 본문에 그대로 실었습니다.)
In this example taken on a dedicated LPAR partition, we added the domain affinity metrics. The 31744 MB of memory are split into 2 memory affinity domain: – The domain 0 contains 15606.18 MB of memory with 1475.13 MB used, and 14131.05 MB free. – The domain 1 contains 16128 MB of memory with 1538.35 MB used and 14589.65 MB free.
- To display detailed affinity domain information, enter:
svmon -G -O unit=MB,pgsz=on,affinity=detail
(24줄짜리 예는 위 한글 본문에 그대로 실었습니다.)
In this example, we can see that the breakdown by affinity domain is also shown in the per-page size report. This option takes some time to execute.
- On a shared partition, attempting to display affinity domain information, results in:
svmon -G -O unit=MB,pgsz=on,affinity=on
(13줄짜리 예는 위 한글 본문에 그대로 실었습니다.)
Memory affinity domains only have meaning for dedicated partitions.
- To display the one line global report, enter:
svmon -O summary=longreal
Unit: page
------------------------------------------------------------------------
Memory
-----------------------------------------------------------------------
Size Inuse Free Pin Virtual Available Pgsp
262144 187219 74925 82515 149067 101251 131072
The metrics reported here are identical to the metrics in the basic format. There is a memory size of 262144 frames with 187219 frames inuse and 74925 remaining frames. 149067 pages are allocated in the virtual memory and 101251 frames are available.
- To display global memory statistics in MB units at interval, enter:
svmon -G -O unit=MB,summary=shortreal -i 60 5
Unit: MB
-------------------------------------------------------------------------------
Size Inuse Free Pin Virtual Available Pgsp
1024.00 709.69 314.31 320.89 590.74 387.95 512.00
1024.00 711.55 312.39 320.94 592.60 386.02 512.00
1024.00 749.10 274.89 322.89 630.15 348.53 512.00
1024.00 728.08 295.93 324.57 609.11 369.57 512.00
1024.00 716.79 307.21 325.66 597.50 381.16 512.00
This example shows how to monitor the whole system by taking a memory snapshot every 60 seconds for 5 minutes.
- To display detailed memory expansion information (in a system with Active Memory Expansion enabled), enter:
svmon -G -O summary=ame
(19줄짜리 예는 위 한글 본문에 그대로 실었습니다.)
- To display memory expansion information with true memory snapshot turned-off (in a system with Active Memory Expansion enabled), enter:
svmon -G -O summary=ame,tmem=off
Unit: page
--------------------------------------------------------------------------------------
size inuse free pin virtual available mmode
memory 262144 152619 43061 73733 154779 41340 Ded-E
ucomprsd - 98216 -
comprsd - 54403 -
pg space 131072 1212
work pers clnt other
pin 66195 0 0 7538
in use 147831 0 4788
ucomprsd 93428
comprsd 54403
사용자 보고서(-U)
사용자 보고서는 지정한 로그인 이름 모두, 또는 인수가 없으면 모든 사용자의 메모리 사용 통계를 보여 줍니다.
-U 플래그로 출력합니다. 공통 요약 지표의 열에 더해 다음 열이 있습니다.
| 열 | 설명 |
|---|---|
| User | 사용자 이름 |
이 사용자가 소유한 프로세스가 기본 4KB가 아닌 크기의 페이지를 쓰고 -O pgsz=on 옵션을 설정했으면, 이 통계 뒤에 페이지 크기마다의 통계가 나옵니다. 페이지 크기별 요약의 지표는 기본으로 그 페이지 크기 단위입니다.
참고:
- 인수 없이
-@플래그를 주면 이 통계 뒤에 사용자가 속한 WPAR가 나옵니다. 사용자가 발견된 WPAR 이름을 보여 주는 WPAR 열이 더해집니다. -O activeusers=on옵션을 주면 메모리를 쓰지 않는(Inuse가 0페이지인) 사용자는 보고서에 나오지 않습니다.
예
- 사용자별 메모리 사용 통계를 보려면
svmon -U를 입력합니다.
Unit: page
===============================================================================
User Inuse Pin Pgsp Virtual
root 56007 16070 0 54032
daemon 14864 7093 0 14848
guest 14705 7087 0 14632
bin 0 0 0 0
sys 0 0 0 0
adm 0 0 0 0
uucp 0 0 0 0
nobody 0 0 0 0
시스템에서 메모리를 쓰는 모든 사용자의 요약입니다. 기본 정렬 기준인 Inuse 열을 쓰며, -O 옵션을 주지 않았으므로 기본 단위(page)를 씁니다. 페이지 하나는 4KB입니다.
root 사용자의 모든 프로세스가 쓰는 세그먼트에서 실메모리에 있는 페이지의 합인 Inuse 열은 56007페이지입니다. 고정된 페이지의 합인 Pin 열은 16070페이지, 쓰는 페이징 공간 페이지의 합인 Pgsp 열은 0페이지, 프로세스 가상 공간의 페이지 합인 Virtual 열은 54032페이지입니다.
- WPAR별로 활성 사용자마다 메모리 사용 통계를 보려면
svmon -U -O summary=basic,activeusers=on -@ ALL을 입력합니다.
Unit: auto
###############################################################################
######## WPAR : Global
###############################################################################
===============================================================================
User Inuse Pin Pgsp Virtual
root 155.49M 49.0M 0K 149.99M
daemon 69.0M 34.8M 0K 68.9M
###############################################################################
######## WPAR : wp0
###############################################################################
===============================================================================
User Inuse Pin Pgsp Virtual
root 100.20M 35.4M 0K 96.4M
###############################################################################
######## WPAR : wp1
###############################################################################
===============================================================================
User Inuse Pin Pgsp Virtual
root 100.20M 35.4M 0K 96.4M
###############################################################################
######## WPAR : wp2
###############################################################################
===============================================================================
User Inuse Pin Pgsp Virtual
root 100.14M 35.4M 0K 96.3M
각 WPAR 문맥에서 실행해 시스템에서 도는 모든 WPAR의 모든 사용자를 자세히 봅니다. 활성이 아닌 사용자가 있으므로 명령줄에 -O activeusers=on을 더해 활성 사용자만 남깁니다. WPAR마다 root 사용자가 있으며, 이 예에서는 모두 같은 프로세스 목록을 실행하므로 쓰는 메모리 양이 같습니다. 전역 WPAR의 root 사용자는 WPAR보다 더 많은 프로세스를 실행하므로 메모리를 더 씁니다.
영어 원문
User report
The User report displays the memory usage statistics for all specified login name or when no argument is specified for all users.
To print the user report, specify the -U flag. This report contains all the columns detailed in the common
summary metrics as well as its own defined here
User Indicates the user name
If processes owned by this user use pages of a size other than the base 4 KB page size, and the -O pgsz=on option is set, these statistics are followed by breakdown statistics for each page size. The metrics reported in this per-page size summary are reported in the page size unit by default.
Note
If you specify the
-@flag without an argument, these statistics will be followed by the users assignments to WPARs. This information is shown with an additional WPAR column displaying the WPAR name where the user was found.If you specify the
-O activeusers=onoption, users which do not use memory (Inuse memory is 0 page) are not shown in the report.
Examples
- To display per user memory consumption statistics, enter:
# svmon -U
Unit: page
===============================================================================
User Inuse Pin Pgsp Virtual
root 56007 16070 0 54032
daemon 14864 7093 0 14848
guest 14705 7087 0 14632
bin 0 0 0 0
sys 0 0 0 0
adm 0 0 0 0
uucp 0 0 0 0
nobody 0 0 0 0
This command gives a summary of all the users using memory on the system. This report uses the default sorting key: the Inuse column. Since no -O option was specified, the default unit (page) is used. Each page is 4 KB.
The Inuse column, which is the total number of pages in real memory from segments that are used by all the processes of the root user, shows 56007 pages. The Pin column, which is the total number of pages pinned from segments that are used by all the processes of the root user, shows 16070 pages. The Pgsp column, which is the total number of paging-space pages that are used by all the processes of the root user, shows 0 pages. The Virtual column (total number of pages in the process virtual space) shows 54032 pages for the root user.
- To display per WPAR per active user memory consumption statistics, enter:
# svmon -U -O summary=basic,activeusers=on -@ ALL
(26줄짜리 예는 위 한글 본문에 그대로 실었습니다.)
In this case, we run in each WPAR context and we want some details about every users in all the WPARs running on the system. Since there are users that are not active, we want to keep only the active user by adding the -O activeusers=on option on the command line. Each WPAR has a root user, which in this example consumes the same amount of memory since each one runs the exact same list of processes. The root user of the Global WPAR uses more memory since more processes are running in the Global than in a WPAR.
명령 보고서(-C)
명령 보고서는 지정한 명령 이름의 메모리 사용 통계를 보여 줍니다. -C 플래그로 출력합니다.
공통 요약 지표의 열에 더해 다음 열이 있습니다.
| 열 | 설명 |
|---|---|
| Command | 명령 이름 |
이 명령을 실행하는 프로세스가 기본 4KB가 아닌 크기의 페이지를 쓰고 -O pgsz=on 옵션을 설정했으면, 이 통계 뒤에 페이지 크기마다의 통계가 나옵니다. 지표는 기본으로 그 페이지 크기 단위입니다.
예
- yes 명령의 메모리 통계를 프로세스별로 나누고 세그먼트별 범주 통계와 함께 보려면
svmon -C yes -O summary=basic,pidlist=on,segment=category,process=on을 입력합니다.
Unit: page
===============================================================================
Command Inuse Pin Pgsp Virtual
yes 14405 5492 0 14404
-------------------------------------------------------------------------------
Pid Command Inuse Pin Pgsp Virtual
217132 yes 14405 5492 0 14404
397448 yes 14405 5492 0 14404
372980 yes 14405 5492 0 14404
...............................................................................
SYSTEM segments Inuse Pin Pgsp Virtual
6336 5488 0 6336
Vsid Esid Type Description PSize Inuse Pin Pgsp Virtual
2002 0 work kernel segment m 396 343 0 396
...............................................................................
EXCLUSIVE segments Inuse Pin Pgsp Virtual
37 4 0 36
Vsid Esid Type Description PSize Inuse Pin Pgsp Virtual
711 2 work process private sm 19 4 0 19
126a3 f work shared library data sm 17 0 0 17
1b70a 1 clnt code,/dev/hd2:338 s 1 0 - -
...............................................................................
SHARED segments Inuse Pin Pgsp Virtual
8032 0 0 8032
Vsid Esid Type Description PSize Inuse Pin Pgsp Virtual
502d d work shared library text m 502 0 0 502
Shared library text segment
이 예는 yes 명령을 봅니다. 보고서는 여러 하위 보고서로 나뉩니다. 명령의 요약 줄은 명령이 쓰는 Inuse 메모리, 메모리의 Pin 페이지, 페이징 공간, 가상 페이지를 보여 줍니다. -O process=on 옵션은 이 명령의 프로세스 목록이 든 프로세스 절을 더합니다.
- yes 명령의 메모리 통계를 프로세스별로 나누고 파일 이름을 포함한 세그먼트별 통계와 함께 보려면
svmon -C yes -O summary=basic,segment=on,pidlist=on,filename=on을 입력합니다.
Unit: page
===============================================================================
Command Inuse Pin Pgsp Virtual
yes 14405 5492 0 14404
Vsid Esid Type Description PSize Inuse Pin Pgsp Virtual
502d d work shared library text m 502 0 0 502
Shared library text segment
2002 0 work kernel segment m 396 343 0 396
System segment
13722 2 work process private sm 19 4 0 19
pid(s)=397566
1a72b f work shared library data sm 17 0 0 17
pid(s)=397566
1b70a 1 clnt code,/dev/hd2:338 s 1 0 - -
/usr/bin/yes
pid(s)=397566, 295038, 217212
세그먼트가 프로세스 주소 공간에 있으면 세그먼트마다 PID 목록을 보여 주고, 모든 client·persistent 세그먼트의 파일 이름도 보여 줍니다.
- init 명령의 메모리 통계를 프로세스별로 나눠 보려면
svmon -@ -C init -O commandline=on,segment=off,process=on을 입력합니다.
# svmon -@ -C init -O commandline=on,segment=off,process=on
Command line : svmon -@ -C init -O commandline=on,segment=off,process=on
Unit: page
===============================================================================
Command Inuse Pin Pgsp Virtual
init 18484 8900 0 18469
-------------------------------------------------------------------------------
Pid Command Inuse Pin Pgsp Virtual
1 init 18494 8900 0 18477
WPAR=Global
159976 init 18484 8900 0 18469
WPAR=wp1
233722 init 18484 8900 0 18469
WPAR=wp2
180562 init 18484 8900 0 18469
WPAR=wp0
-------------------------------------------------------------------------------
WPAR 문맥에서 -@ 플래그와 -O process=on을 함께 쓰면 보고서에 WPAR 정보가 더해집니다. 이 예는 어느 init 프로세스가 어느 WPAR에 속하는지 보여 줍니다.
영어 원문
Command report
The Command report displays the memory usage statistics for the specified command names. To print the command report, specify the -C flag.
This report contains all the columns detailed in the common summary metrics as well as its own defined here:
Command
Indicates the command name.
If processes running this command use pages of size other than the base 4KB page size, and the -O pgsz=on option is set, these statistics are followed by breakdown statistics for each page size. The metrics reported in this per-page size summary are reported in the page size unit by default.
Examples
- To display memory statistics about the yes command, with breakdown by process and categorized detailed statistics by segment, enter:
# svmon -C yes -O summary=basic,pidlist=on,segment=category,process=on
(27줄짜리 예는 위 한글 본문에 그대로 실었습니다.)
In this example, we are looking at the yes command. The report is divided in several sub-reports. The summary line for the command displays the Inuse memory, the Pin pages in memory, the paging space and virtual pages used by the command. The -O process=on option adds the process section, where we have the list of the processes for this command.
- To display memory statistics about the yes command, with breakdown by process and statistics by segment including file names, enter:
# svmon -C yes -O summary=basic,segment=on,pidlist=on,filename=on
(16줄짜리 예는 위 한글 본문에 그대로 실었습니다.)
This report displays for each segment its list of pids when the segment is in a process address space. It also displays the filename of all client and persistent segments.
- To display memory statistics about the init command, with breakdown by process, enter:
# svmon -@ -C init -O commandline=on,segment=off,process=on
(17줄짜리 예는 위 한글 본문에 그대로 실었습니다.)
In a WPAR context, the -@ flag combined with the -O process=on flag, adds WPAR information in the report. This example shows which init process belongs to which WPAR.
프로세스 보고서(-P)
프로세스 보고서는 모든 프로세스나 지정한 프로세스의 메모리 사용 통계를 보여 줍니다. -P 플래그로 출력합니다.
공통 요약 지표의 열에 더해 다음 열이 있습니다.
| 열 | 설명 |
|---|---|
| Pid | 프로세스 ID |
| Command | 프로세스가 실행하는 명령 |
프로세스가 기본 4KB가 아닌 크기의 페이지를 쓰고 -O pgsz=on 옵션을 설정했으면, 이 통계 뒤에 페이지 크기마다의 통계가 나옵니다.
프로세스 정보 뒤에는 프로세스가 쓴 모든 세그먼트의 정보가 나옵니다. 세그먼트 정보는 "세그먼트 보고서"를 봅니다.
참고:
-@플래그를 주면 프로세스의 가상 PID와 WPAR 이름을 보여 주는 줄 두 개가 더 나옵니다. 가상 PID가 올바르지 않으면 대시(-)가 나옵니다.-P옵션이 지원하는-O affinity플래그는 on이면 프로세스의, detail이면 세그먼트마다의 도메인 친화 정보를 줍니다. 공유 파티션에서는 메모리 친화 정보를 얻을 수 없습니다.
예
- 실메모리 사용량 기준 상위 10개 프로세스를 KB 단위로 보려면
svmon -P -O unit=KB,summary=basic,sortentity=inuse -t 10을 입력합니다.
Unit: KB
-------------------------------------------------------------------------------
Pid Command Inuse Pin Pgsp Virtual
344254 java 119792 22104 0 102336
209034 xmwlm 68612 21968 0 68256
262298 IBM.CSMAgentR 60852 22032 0 60172
270482 rmcd 60844 21996 0 60172
336038 IBM.ServiceRM 59588 22032 0 59344
225432 IBM.DRMd 59408 22040 0 59284
204900 sendmail 59240 21968 0 58532
266378 rpc.statd 59000 21980 0 58936
168062 snmpdv3ne 58700 21968 0 58508
131200 errdemon 58496 21968 0 58108
실메모리를 가장 많이 쓰는 프로세스 10개입니다. inuse로 정렬했으며 java 프로세스가 119792KB, xmwlm 데몬이 68612KB 순입니다. 다른 지표는 메모리에 고정된 KB, 페이징 공간 KB, 가상 메모리입니다.
- 프로세스의 비어 있지 않은 모든 세그먼트 정보를 보려면
svmon -P 221326 -O commandline=on,segment=on,filterprop=notempty를 입력합니다.
Command line : svmon -P 221326 -O commandline=on,segment=on,filterprop=notempty
Unit: page
-------------------------------------------------------------------------------
Pid Command Inuse Pin Pgsp Virtual
221326 java 20619 6326 9612 27584
Vsid Esid Type Description PSize Inuse Pin Pgsp Virtual
502d d work text or shared-lib code seg m 585 0 1 585
0 0 work kernel segment m 443 393 4 444
14345 3 work working storage sm 2877 0 7865 9064
15364 e work shared memory segment sm 1082 0 1473 1641
1b36a f work working storage sm 105 0 106 238
17386 - work s 100 34 64 146
1a38b 2 work process private sm 7 4 24 31
상세 절은 프로세스 221326이 쓰는 비어 있지 않은 세그먼트마다 정보를 보여 줍니다. 가상 세그먼트 식별자(Vsid)와 유효 세그먼트 식별자(Esid), 세그먼트 유형과 설명(persistent 세그먼트면 볼륨 이름과 파일의 i-node 포함)이 나옵니다. 세그먼트를 이루는 페이지 크기(Psize 열, s는 4KB, L은 16MB, sm은 이 경우 작은·중간 페이지가 섞인 다중 크기 페이지), 메모리의 페이지 수(Inuse 열), 고정 페이지 수(Pin 열), 페이징 공간에서 쓰는 페이지 수(Pgsp 열), 가상 페이지 수(Virtual 열)도 나옵니다.
- 프로세스가 쓰는 비어 있지 않은 모든 세그먼트의 정보를 공유 메모리 ID와 친화 도메인 데이터와 함께 보려면
svmon -P 221326 -O commandline=on,segment=on,affinity=on,shmid=on,filterprop=notempty를 입력합니다.
Command line : svmon -P 221326 -O commandline=on,segment=on,affinity=on,shmid=on,filterprop=notempty
Unit: page
-------------------------------------------------------------------------------
Pid Command Inuse Pin Pgsp Virtual
221326 java 20619 6326 9612 27584
Domain affinity Npages
0 29345
1 11356
Vsid Esid Type Description PSize Inuse Pin Pgsp Virtual
502d d work text or shared-lib code seg m 585 0 1 585
Domain affinity Nbpages
0 4800
1 4560
0 0 work kernel segment m 443 393 4 444
Domain affinity Nbpages
0 5744
1 1344
14345 3 work working storage sm 2877 0 7865 9064
Domain affinity Nbpages
0 1518
1 1359
15364 e work shared memory segment sm 1082 0 1473 1641
shmid:3
Domain affinity Nbpages
1b36a f work working storage sm 105 0 106 238
Domain affinity Nbpages
0 48
1 57
17386 - work s 100 34 64 146
Domain affinity Nbpages
0 5744
1 1344
1a38b 2 work process private sm 7 4 24 31
Domain affinity Nbpages
0 3
1 4
상세 절은 프로세스 221326이 쓰는 모든 세그먼트를 보여 줍니다. 이 경우 affinity 옵션이 각 Vsid에 도메인 친화 분류를 더합니다. Vsid 15364에는 공유 메모리 ID(shmid: 3)도 나오며, ipcs 명령의 결과와 맞춰 볼 수 있습니다.
- 세그먼트별 분류가 들어간 예전 형식으로 메모리 통계를 보려면
svmon -P 209034 -O segment=on을 입력합니다.
Unit: page
-------------------------------------------------------------------------------
Pid Command Inuse Pin Pgsp Virtual
209034 xmwlm 15978 5492 0 15929
Vsid Esid Type Description PSize Inuse Pin Pgsp Virtual
502d d work shared library text m 495 0 0 495
2002 0 work kernel segment m 396 343 0 396
19288 c work shared memory segment sm 1477 0 0 1477
b27a f work shared library data sm 106 0 0 106
d27c 2 work process private sm 90 4 0 90
1b24a - clnt /dev/hd4:15493 s 22 0 - -
1f24e 1 clnt code,/dev/hd2:2521 s 18 0 - -
8079 3 clnt file mapped read write, s 8 0 - -
/dev/hd3:5
a27b - clnt /dev/hd2:123146 s 1 0 - -
- 비어 있지 않은 세그먼트만 보고, 여러 페이지 크기 세그먼트는 페이지 크기별로 나눠 보려면
svmon -P 209034 -O segment=on,filterprop=notempty,mpss=on을 입력합니다.
Pid Command Inuse Pin Pgsp Virtual
209034 xmwlm 15977 5492 0 15929
Vsid Esid Type Description PSize Inuse Pin Pgsp Virtual
502d d work shared library text m 495 0 0 495
2002 0 work kernel segment m 396 343 0 396
19288 c work shared memory segment s 5 0 0 1477
m 92 0 0 0
b27a f work shared library data s 106 0 0 106
m 0 0 0 0
d27c 2 work process private s 74 4 0 90
m 1 0 0 0
1b24a - clnt /dev/hd4:15493 s 21 0 - -
1f24e 1 clnt code,/dev/hd2:2521 s 18 0 - -
8079 3 clnt file mapped read write, s 8 0 - -
/dev/hd3:5
a27b - clnt /dev/hd2:123146 s 1 0 - -
앞의 두 예는 MPSS 페이지에서 Inuse, Pin, Pgsp, Virtual 열에 보고되는 값의 차이를 보여 줍니다. 이 시스템에서 프로세스 209034는 sm 페이지를 씁니다. 첫 보고서의 지표는 4KB 페이지(더 작은 페이지 크기) 단위이고, -O mpss=on으로 페이지 크기별로 나누면 s 페이지는 4KB, m 페이지는 64KB 단위입니다. 그래서 세그먼트 19288은 첫 예에서 1477×4=5908KB, 둘째 예에서 5×4×1024 + 92×64×1024 = 5908KB입니다. client 세그먼트는 Pgsp와 Virtual 열이 의미가 없으므로 대시로 나옵니다.
- 프로세스의 매핑 세그먼트 정보를 KB 단위로 자세히 보려면
svmon -P 340216 274676 -O segment=on,unit=KB,mapping=on을 입력합니다.
Unit: KB
-------------------------------------------------------------------------------
Pid Command Inuse Pin Pgsp Virtual
274676 ptxtstmmap 57276 21968 0 57256
Vsid Esid Type Description PSize Inuse Pin Pgsp Virtual
502d d work shared library text m 31744 0 0 31744
2002 0 work kernel segment m 25344 21952 0 25344
10661 2 work process private sm 76 16 0 76
1a36b f work shared library data sm 52 0 0 52
14665 1 clnt code,/dev/hd2:825 s 12 0 - -
11660 * - work mmap paging sm 8 0 0 8
source=b2ba
d65c * - work mmap paging sm 8 0 0 8
source=b2ba
13662 * - work mmap paging sm 8 0 0 8
source=b2ba
4655 * - work mmap paging sm 8 0 0 8
source=b2ba
b2ba - clnt /dev/hd3:13 s 8 0 - -
1350 * - work mmap paging sm 8 0 0 8
source=b2ba
18329 3 mmap maps 5 source(s) sm 0 0 - -
source(s)=b2ba/13662, b2ba/d65c, b2ba/4655, b2ba/11660
source(s)=b2ba/1350
-------------------------------------------------------------------------------
Pid Command Inuse Pin Pgsp Virtual
340216 ptxtstmmap 57240 21968 0 57216
Vsid Esid Type Description PSize Inuse Pin Pgsp Virtual
502d d work shared library text m 31744 0 0 31744
2002 0 work kernel segment m 25344 21952 0 25344
f65e 2 work process private sm 76 16 0 76
19668 f work shared library data sm 52 0 0 52
1d66c - clnt /dev/hd3:14 s 12 0 - -
14665 1 clnt code,/dev/hd2:825 s 12 0 - -
1c66d 3 mmap maps 3 source(s) sm 0 0 - -
source(s)=1d66c, 1d66c, 1d66c
mapping 옵션으로 프로세스 주소 공간에 없는 mmap 세그먼트도 보여 줍니다. 프로세스 274676은 공유 메모리 파일(client 세그먼트 b2ba)을 만들었고, 이 세그먼트를 프로세스 주소 공간에 없는 mmap 세그먼트(11660, d65c, 13662, 4655, 1350)가 씁니다. 프로세스의 mmap 세그먼트는 모든 mmap 세그먼트와 그 원본(b2ba/13662, …) 목록을 보여 줍니다. 프로세스 340216은 개인 메모리 파일을 만들었으며, 이 자원을 쓰는 세그먼트가 모두 프로세스 전용이고 이미 기본으로 보이므로 mmap 세그먼트가 더 나오지 않습니다.
영어 원문
Process report
The process report displays the memory usage statistics for all or the specified process names. To print the process report, specify the -P flag.
This report contains all the columns detailed in the common summary metrics as well as its own defined here: Pid Indicates the process ID.
Command
Indicates the command the process is running.
If processes use pages of size other than the base 4KB page size, and the -O pgsz=on option is set, these statistics are followed by breakdown statistics for each page size. The metrics reported in this per-page size summary are reported in the page size unit by default.
After process information is displayed, svmon displays information about all the segments that the process used. Information about segments are described in the paragraph Segment Report.
Note
If you specify the
-@flag, the svmon command displays two additional lines that show the virtual pid and the WPAR name of the process. If the virtual pid is not valid, a dash sign (-) is displayed.The
-O affinityflag supported by the-Poption, gives details on domain affinity for the process when set to on and for each of the segments when set to detail. Note that the Memory affinity information is not available for the shared partitions.
Examples
- To display the top 10 list of processes in terms of real memory usage in KB unit, enter:
# svmon -P -O unit=KB,summary=basic,sortentity=inuse -t 10
(13줄짜리 예는 위 한글 본문에 그대로 실었습니다.)
This example gives the top 10 processes consuming the most real memory. The report is sorted by the inuse count, 119792 KB for the java process, 68612 KB for the xmwlm daemon and so on. The other metrics are: KB pinned in memory, KB of paging space and virtual memory.
- To display information about all the non empty segments of a process, enter:
# svmon -P 221326 -O commandline=on,segment=on,filterprop=notempty
(13줄짜리 예는 위 한글 본문에 그대로 실었습니다.)
The detailed section displays information about each non empty segment used by process 221326. This includes the virtual, Vsid, and effective, Esid, segment identifiers. The type of the segment is also displayed along with its description that consists of a textual description of the segment, including the volume name and i-node of the file for persistent segments. The report also details the size of the pages the segment is backed by (Psize column), where s denotes 4 KB pages and L denotes 16 MB pages, and sm a multi size page (small and medium page in this case) the number of pages in memory (Inuse column), the number of pinned pages (Pin column), the number of pages used in the paging space (Pgsp column), and the number of virtual pages (Virtual column).
- To display information about all the non empty segments used by a process, including the corresponding shared memory ids and affinity domain data, enter:
# svmon -P 221326 -O commandline=on,segment=on,affinity=on,shmid=on,filterprop=notempty
(36줄짜리 예는 위 한글 본문에 그대로 실었습니다.)
The detailed section displays the list of all segments used by the process 221326. In this case, the -O affinity=detail option adds for each Vsid, the Domain affinity breakdown. The Vsid 15364 also shows the shared memory id (shmid: 3 in this case). This information can be matched with the results given by the ipcs command.
- To display memory statistics in the legacy format which includes a breakdown by segments, enter:
$ svmon -P 209034 -O segment=on
(15줄짜리 예는 위 한글 본문에 그대로 실었습니다.)
- To only display non empty segments and add per page size breakdown for segments with multiple page sizes, enter:
$ svmon -P 209034 -O segment=on,filterprop=notempty,mpss=on
(16줄짜리 예는 위 한글 본문에 그대로 실었습니다.)
The 2 previous examples show the difference of the values reported in the Inuse, Pin, Pgsp and Virtual columns with MPSS pages. On this system sm pages are used by the process 209034, the metrics reported in the first report are in 4KB pages (in the smaller page size) while when the break down by page size is displayed with the -O mpss=on option, s pages are in 4KB page and m pages are in 64KB pages. So, for the segment 19288 this gives 1477*4=5908KB in the first example, and 5*4*1024 + 92*64*1024 =5908KB in the second example. Dashes are put on the Pgsp and Virtual memory columns for the client segments because it is meaningless for this type of segment.
- To display detailed information about mapping segments for a process, in KB unit, enter:
$ svmon -P 340216 274676 -O segment=on,unit=KB,mapping=on
(36줄짜리 예는 위 한글 본문에 그대로 실었습니다.)
The mapping option is used in this case to also show mmaped segments which are not in the address space of the process. The process 274676 has created a shared memory file (client segment b2ba), this segment is used by mmap segments (11660, d65c, 13662, 4655, 1350) which are not in the address space of the process. The mmap segment of the process gives the list of all mmaped segment and their associated source (b2ba/13662, ...). The process 340216 has created a private memory file, no extra mmap segments are displayed since all segments which are using this resource are private to the process and are already so shown by default.
WLM 클래스 보고서(-W)
클래스 보고서는 -W 플래그로 출력합니다.
공통 요약 지표의 열에 더해 다음 열이 있습니다.
| 열 | 설명 |
|---|---|
| Class 또는 Superclass | 클래스나 슈퍼클래스 이름 |
-O subclass=on 옵션을 더하면 하위 클래스 목록을 보여 줍니다.
예
- 시스템의 모든 WLM 클래스의 메모리 통계를 보려면
svmon -W -O unit=page,commandline=on,timestamp=on을 입력합니다.
Command line : svmon -W -O unit=page,commandline=on,timestamp=on
Unit: page Timestamp: 10:41:20
===============================================================================
Superclass Inuse Pin Pgsp Virtual
System 121231 94597 19831 135505
Unclassified 27020 8576 67 8659
Default 17691 12 1641 16491
Shared 15871 0 0 13584
Unmanaged 0 0 0 0
이 예는 시스템의 모든 WLM 클래스를 보고합니다. 정렬 옵션을 주지 않았으므로 Inuse(실메모리 사용량)가 정렬 기준입니다. System 클래스는 실메모리 121231페이지를 쓰고, 94597프레임이 고정되어 있으며, 페이징 공간에 예약되거나 쓰인 페이지는 19831, 가상 공간에 할당된 페이지는 135505입니다.
- 시스템의 모든 WLM 클래스와 하위 클래스의 메모리 통계를 보려면
svmon -W -O subclass=on -O unit=page,commandline=on,timestamp=on을 입력합니다.
Command line : svmon -W -O subclass=on -O unit=page,commandline=on,timestamp=on
Unit: page Timestamp: 10:43:18
===============================================================================
Superclass Inuse Pin Pgsp Virtual
System 120928 94609 19831 135202
System.Default 120928 94609 19831 135202
System.Shared 0 0 0 0
Unclassified 27020 8576 67 8659
Default 17691 12 1641 16491
Default.Default 17691 12 1641 16491
Default.Shared 0 0 0 0
Shared 15871 0 0 13584
Shared.Default 15871 0 0 13584
Shared.Shared 0 0 0 0
Unmanaged 0 0 0 0
이 예는 모든 WLM 클래스와 하위 클래스를 보고합니다. 정렬 옵션을 주지 않았으므로 Inuse가 정렬 기준입니다. System 클래스는 실메모리 120928페이지를 쓰며, System Default 하위 클래스에 120928페이지, Shared 하위 클래스에 0페이지로 나뉩니다.
영어 원문
Workload management class report
To print the class report, specify the -W flag.
This report contains all the columns detailed in the common summary metrics as well as its own defined here:
Class or Superclass
Indicates the class or superclass name.
The -O subclass=on option can be added to display the list of subclasses.
Examples
- To display memory statistics about all WLM classes in the system, enter:
# svmon -W -O unit=page,commandline=on,timestamp=on
Command line : svmon -W -O unit=page,commandline=on,timestamp=on
Unit: page Timestamp: 10:41:20
===============================================================================
Superclass Inuse Pin Pgsp Virtual
System 121231 94597 19831 135505
Unclassified 27020 8576 67 8659
Default 17691 12 1641 16491
Shared 15871 0 0 13584
Unmanaged 0 0 0 0
In this example, all the WLM classes of the system are reported. Since no sort option was specified, the Inuse metric (real memory usage) is the sorting key. The class System uses 121231 pages in real memory. 94597 frames are pinned. The number of pages reserved or used in paging space is 19831. The number of pages allocated in the virtual space is 135505.
- To display memory statistics about all WLM classes and subclasses in the system, enter:
# svmon -W -O subclass=on -O unit=page,commandline=on,timestamp=on
(15줄짜리 예는 위 한글 본문에 그대로 실었습니다.)
In this example, all the WLM classes and sub-classes of the system are reported. Since the no sort option was specified, the Inuse metric (real memory usage) is the sorting key. The class System uses 120928 pages in real memory, they are split into 120928 pages in the System Default sub-class, and no pages in the Shared sub-class.
WLM 티어 보고서(-T)
티어 보고서는 -T 플래그로 출력합니다.
공통 요약 지표의 열에 더해 다음 열이 있습니다.
| 열 | 설명 |
|---|---|
| Tier | 티어 번호 |
| Superclass | 티어가 슈퍼클래스에 적용될 때(-a 플래그를 쓸 때) 나오는 선택적 열로, 슈퍼클래스 이름 |
-O subclass=on 옵션을 더하면 하위 클래스 목록을 보여 줍니다. -a <supclassname> 옵션은 지정한 슈퍼클래스의 상세만 보고합니다.
예
- 시스템의 모든 WLM 티어와 슈퍼클래스의 메모리 통계를 보려면
svmon -T -O unit=page를 입력합니다.
Unit: page
===============================================================================
Tier Inuse Pin Pgsp Virtual
0 137187 61577 2282 110589
===============================================================================
Superclass Inuse Pin Pgsp Virtual
System 81655 61181 2282 81570
Unclassified 26797 384 0 2107
Default 16863 12 0 15040
Shared 11872 0 0 11872
Unmanaged 0 0 0 0
1 9886 352 0 8700
===============================================================================
Superclass Inuse Pin Pgsp Virtual
myclass 9886 352 0 8700
정의된 모든 티어의 모든 슈퍼클래스를 보고합니다. 티어마다 Inuse, Pin, 페이징 공간, 가상 메모리의 요약 머리가 있고 이어서 그 클래스 목록이 나옵니다.
- 시스템의 모든 WLM 티어, 슈퍼클래스, 클래스의 메모리 통계를 보려면
svmon -T -O subclass=on -O unit=page,commandline=on,timestamp=on을 입력합니다.
Command line : svmon -T -O subclass=on -O unit=page,commandline=on,timestamp=on
Unit: page Timestamp: 10:44:31
===============================================================================
Tier Inuse Pin Pgsp Virtual
0 181824 103185 21539 174250
===============================================================================
Superclass Inuse Pin Pgsp Virtual
System 121242 94597 19831 135516
===============================================================================
Class Inuse Pin Pgsp Virtual
System.Default 121242 94597 19831 135516
System.Shared 0 0 0 0
Unclassified 27020 8576 67 8659
===============================================================================
Superclass Inuse Pin Pgsp Virtual
Default 17691 12 1641 16491
===============================================================================
Class Inuse Pin Pgsp Virtual
Default.Default 17691 12 1641 16491
Default.Shared 0 0 0 0
===============================================================================
Superclass Inuse Pin Pgsp Virtual
Shared 15871 0 0 13584
===============================================================================
Class Inuse Pin Pgsp Virtual
Shared.Default 15871 0 0 13584
Shared.Shared 0 0 0 0
Unmanaged 0 0 0 0
티어마다 각 클래스의 하위 클래스 수준 상세도 볼 수 있습니다.
- 티어 안의 특정 WLM 슈퍼클래스의 메모리 통계를 세그먼트와 페이지 크기별 상세와 함께 보려면
svmon -T 0 -a myclass2 -O segment=on,pgsz=on,pidlist=on을 입력합니다.
Unit: page
===============================================================================
Tier Superclass Inuse Pin Pgsp Virtual
0 myclass2 36 4 0 36
PageSize Inuse Pin Pgsp Virtual
s 4 KB 36 4 0 36
m 64 KB 0 0 0 0
===============================================================================
Class Inuse Pin Pgsp Virtual
myclass2.Default 36 4 0 36
Vsid Esid Type Description PSize Inuse Pin Pgsp Virtual
711 2 work process private sm 19 4 0 19
pid(s)=372980
126a3 f work shared library data sm 17 0 0 17
pid(s)=372980
===============================================================================
Class Inuse Pin Pgsp Virtual
myclass2.Shared 0 0 0 0
티어 0에서 슈퍼클래스 myclass2의 모든 하위 클래스 통계를 보고합니다. -O pgsz=on으로 페이지 크기별 분포를 보여 주고, -O segment=on이므로 하위 클래스 통계 뒤에 세그먼트 통계가 나오며, -O pidlist=on이므로 세그먼트마다 그것을 쓰는 프로세스 목록이 나옵니다.
영어 원문
Workload management tier report
To print the tier report, specify the -T flag.
This report contains all the columns detailed in the common summary metrics as well as its own defined here:
Tier Indicates the tier number
Superclass
The optional column heading indicates the superclass name when tier applies to a superclass (when the -a flag is used).
The -O subclass=on option can be added to display the list of subclasses. The -a <supclassname> option allows reporting only the details of a given super class.
Examples
- To display memory statistics about all WLM tiers and superclasses in the system, enter:
# svmon -T -O unit=page
(15줄짜리 예는 위 한글 본문에 그대로 실었습니다.)
All the superclasses of all the defined tiers are reported. Each Tier has a summary header with the Inuse, Pin, Paging space, and Virtual memory, and then the list of all its classes.
- To display memory statistics about all WLM tiers, superclasses and classes in the system, enter:
# svmon -T -O subclass=on -O unit=page,commandline=on,timestamp=on
(28줄짜리 예는 위 한글 본문에 그대로 실었습니다.)
Details at sub-class level can also be displayed for each class of each Tier.
- To display memory statistics about a particular WLM superclass in a tier, with segment and per page size details, enter:
# svmon -T 0 -a myclass2 -O segment=on,pgsz=on,pidlist=on
(18줄짜리 예는 위 한글 본문에 그대로 실었습니다.)
The statistics of all the subclasses, in the tier 0, of the superclass myclass2 are reported. The distribution between the different page sizes is displayed by the -O pgsz=on option. Then, as -O segment=on is specified, the subclass statistics are followed by its segments statistics. Finally, as -O pidlist=on' is specified for each segment, the list of process which uses it, is displayed.
세그먼트 보고서(-S)
세그먼트 보고서는 -S 플래그로 출력합니다.
공통 요약 지표의 열에 더해 다음 열이 있습니다.
| 열 | 설명 |
|---|---|
| Vsid | 가상 세그먼트 ID. VMM 안에서 세그먼트를 유일하게 식별합니다. |
| Esid | 유효 세그먼트 ID. 세그먼트가 한 프로세스(주소 공간 하나)에만 속할 때만 올바르며, 프로세스가 세그먼트를 어떻게 쓰는지 나타냅니다. 여러 프로세스(여러 주소 공간)가 매핑하면 -(하이픈)이 나옵니다. 정확한 Esid는 세그먼트를 쓰는 각 프로세스 ID에 -P 플래그를 적용해 얻습니다. 열린 파일이나 다중 스레드 구조를 관리하는 세그먼트도 프로세스의 사용자 주소 공간에 속하지 않으므로 -가 나옵니다. |
| Type | 세그먼트 유형. pers는 persistent, work는 working, clnt는 client, mmap은 매핑, rmap은 실메모리 매핑 세그먼트 |
| Description | 세그먼트를 글로 설명합니다. 내용은 세그먼트 유형과 쓰임에 따라 다릅니다. 로그와 연결되지 않은 persistent 세그먼트면 연결된 파일의 장치 이름과 i-node 번호를 콜론으로 구분해 보여 줍니다. 장치 이름과 i-node는 ncheck 명령이나 -O filename=on으로 파일 이름으로 바꿀 수 있습니다. 큰 파일의 주 세그먼트면 설명 앞에 large file이 붙습니다. |
| PSize | 세그먼트 안 페이지의 크기 |
참고:
- 깊이 중첩된 파일 시스템에서는 장치 이름과 inode 번호를 파일 이름으로 바꾸는 데 오래 걸릴 수 있으므로
-O filename=on옵션은 조심해서 씁니다. - 로그와 연결된 persistent 세그먼트면 log 문자열이 나옵니다. working 세그먼트면
svmon이 세그먼트의 역할을 알아내려 합니다. 예를 들어 커널, 공유 라이브러리 같은 특수 working 세그먼트를 알아봅니다. 프로세스의 개인 데이터 세그먼트면 private가, 프로세스의 코드 세그먼트이고-P플래그에 응답해 세그먼트 보고서를 출력하면 설명 앞에 code가 붙습니다. - 세그먼트를 여러 프로세스가 다른 방식으로 매핑하면(예: 한 프로세스의 개인 세그먼트를 다른 프로세스가 공유 메모리로 매핑) 설명이 비어 있습니다. 정확한 설명은 세그먼트를 쓰는 각 프로세스 ID에
-P플래그를 적용해 얻습니다. - 설명이 설명 칸에 다 들어가지 않으면 잘립니다. 출력을 넓히려면
-O format플래그를 씁니다.-O format=160이면 160칸으로 보여 주어 설명 칸이 넓어집니다.-O format=nolimit이면 열 정렬이 깨지더라도 설명을 모두 출력합니다.
제한
- 세그먼트 보고서는 주(primary) 세그먼트에만 만들 수 있습니다.
예
- 세그먼트 목록의 정보를 그것을 쓰는 프로세스 목록과 함께 보려면
svmon -S 11c02 3393e5 2c10da 2c4158 1b1a34 -O pidlist=on을 입력합니다.
Unit: page
Vsid Esid Type Description PSize Inuse Pin Pgsp Virtual
11c02 - work kernel heap s 65536 0 0 65536
System segment
3393e5 3 work working storage s 10143 0 0 10143
pid(s)=168138
2c4158 - work s 5632 5632 0 5632
System segment
1b1a34 - work L 2 2 0 2
Unattached segment
2c10da - clnt /dev/hd2:4183 s 2110 0 - -
Unused segment
목록의 세그먼트마다 정보가 나옵니다. Esid는 프로세스의 주소 공간 안에서만 의미가 있으므로 -O pidlist=on을 줄 때만 Esid 열에 정보가 나옵니다. 이 경우 세그먼트 3393e5가 프로세스 168138에 속하므로 Esid가 나오고, 다른 경우는 나오지 않습니다. 세그먼트 11c02는 커널 고정 힙입니다. 세그먼트 2c4158은 특별한 특성이 없습니다. 세그먼트 2c10da는 장치가 /dev/hd2, inode 번호가 4183인 파일에 관한 것이며, client 세그먼트이므로 Paging space와 Virtual 필드는 의미가 없습니다. 세그먼트 1b1a34는 16MB 페이지 2개(4KB 페이지 8192개에 해당)가 든 16MB 페이지 세그먼트입니다.
- 시스템의 붙어 있지 않은(unattached) 모든 세그먼트 정보를 보려면
svmon -S -O filtercat=unattached를 입력합니다.
Unit: page
Vsid Esid Type Description PSize Inuse Pin Pgsp Virtual
1b1a34 - work L 2 2 0 2
2618ce - work s 1 0 0 1
이 예의 보고서에는 공유 메모리 영역을 할당하고 해제하지 않은 채 끝난 프로세스에서 온 모든 세그먼트가 들어 있습니다.
- (실메모리 사용량, 곧 inuse 필드로 정렬한) 상위 10개 텍스트 세그먼트를 파일 이름과 함께 보려면
svmon -S -t 10 -O unit=auto,filterprop=text,filename=on을 입력합니다.
Unit: auto
Vsid Esid Type Description PSize Inuse Pin Pgsp Virtual
1a0cb - clnt /dev/hd2:4140 s 7.62M 0K - -
/usr/ccs/lib/libc.a
a37b - clnt /dev/hd2:65692 s 4.34M 0K - -
/usr/java5/jre/bin/libj9jit23.so
1150 - clnt /dev/hd2:16394 s 3.77M 0K - -
/usr/lpp/xlC/lib/aix61/libC.a
16667 - clnt /dev/hd2:2716 s 3.10M 0K - -
/usr/bin/ptxtstoverflow_heap
14285 - clnt /dev/hd2:131333 s 2.91M 0K - -
/opt/rsct/lib/libct_rmf.a
8159 - clnt /dev/hd2:9535 s 2.52M 0K - -
/usr/lib/drivers/nfs.ext
1b2ca - clnt /dev/hd2:65747 s 2.27M 0K - -
/usr/java5/jre/lib/core.jar
f23e - clnt /dev/hd2:115081 s 1.88M 0K - -
/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE/libperl.
17026 - clnt /dev/hd2:8470 s 1.79M 0K - -
/usr/lib/boot/unix_64
15104 - clnt /dev/hd2:2258 s 1.41M 0K - -
/usr/lib/libdns_nonsecure.a
-O filename=on 옵션으로 각 client 텍스트 세그먼트의 파일 이름을 보여 줍니다. -O unit=auto 옵션 때문에 각 세그먼트가 쓰는 메모리 양에 단위 표시가 붙습니다. 세그먼트 1a0cb는 실메모리 7.62MB를 쓰며 고정 메모리는 없습니다. client 세그먼트이므로 페이징 공간과 가상 메모리는 의미가 없습니다. 보고서 기본 형식이 80칸이라 세그먼트 f23e의 Description이 잘렸습니다. 파일의 전체 경로를 보려면 -O format=180이나 -O format=nolimit을 씁니다.
영어 원문
Segment report
To print the segment report, specify the -S flag.
This report contains all the columns detailed in the common summary metrics as well as its own defined here: Vsid Indicates the virtual segment ID. Identifies a unique segment in the VMM.
Esid Indicates the effective segment ID. The Esid is only valid when the segment belongs to only one process (i.e: only one address space). When provided, it indicates how the segment is used by the process. If the Vsid segment is mapped by several processes (i.e: several address spaces), then this field contains - (hyphen). The exact Esid values can be obtained through the -P flag applied on each of the process identifiers using the segment. A - (hyphen) also displays for segments used to manage open files or multi-threaded structures because these segments are not part of the user address space of the process.
Type Identifies the type of the segment:
pers indicates a persistent segment
work indicates a working segment
clnt indicates a client segment
mmap indicates a mapped segment
rmap indicates a real memory mapping segment
Description
Gives a textual description of the segment. The content of this column depends on the segment type and usage.
If the segment is a persistent segment and is not associated with a log, then the device name and i-node number of the associated file are displayed, separated by a colon. The device name and
i-node can be translated into a file name with the ncheck command or by using the -O filename=on flag. If the segment is the primary segment of a large file, then the words large file are prepended to the description.
PSize Indicates the size of the pages inside the segment.
Note
Mapping device name and inode number to file names can be a lengthy operation for deeply nested file systems. Because of that, the
-O filename=onoption should be used with caution.If the segment is a persistent segment and is associated with a log, then the string log displays. If the segment is a working segment, then the svmon command attempts to determine the role of the segment. For instance, special working segments such as the kernel and shared library are recognized by the svmon command. If the segment is the private data segment for a process, then private prints out. If the segment is the code segment for a process, and the segment report prints out in response to the
-Pflag, then the string code is prepended to the description.If the segment is mapped by several processes and used in different ways (that is, a process private segment mapped as shared memory by another process), then the description is empty. The exact description can be obtained through
-Pflag applied on each process identifier using the segment.If a segment description is too large to fit in the description space, then the description is truncated. If you need to enlarge the output you can use the
-O formatflag. When set to-O format=160, the report is displayed in 160 columns, which means more room for the description field. When set to-Oformat=nolimit, the description will be fully printed even if it brakes the column alignment.
Restriction
- Segment reports can only be generated for primary segments.
Examples
- To display information about a list of segments including the list of processes using them, enter:
# svmon -S 11c02 3393e5 2c10da 2c4158 1b1a34 -O pidlist=on
Unit: page
Vsid Esid Type Description PSize Inuse Pin Pgsp Virtual
11c02 - work kernel heap s 65536 0 0 65536
System segment
3393e5 3 work working storage s 10143 0 0 10143
pid(s)=168138
2c4158 - work s 5632 5632 0 5632
System segment
1b1a34 - work L 2 2 0 2
Unattached segment
2c10da - clnt /dev/hd2:4183 s 2110 0 - -
Unused segment
Information about each segment in the list is displayed. The Esid column contains information only when -O pidlist=on is specified because the Esid has a meaning only in the address space of a process. In this case, since the segment 3393e5 belongs to the process 168138, the Esid is reported, in all other cases no information is displayed. The segments 11c02 is the kernel pinned heap. The segment 2c4158 has no special characteristics. The segment 2c10da is relative to a file whose device is /dev/hd2 and whose inode number is 4183. The Paging space and Virtual fields of the segment 2c10da are not meaningful (because it is a client segment). The segment 1b1a34 is a 16 MB page segment which contains 2 pages of 16 MB (equivalent to 8192 pages of 4KB).
- To display information about all unattached segments in the system, enter:
# svmon -S -O filtercat=unattached
Unit: page
Vsid Esid Type Description PSize Inuse Pin Pgsp Virtual
1b1a34 - work L 2 2 0 2
2618ce - work s 1 0 0 1
In this example, the report contains all the segments coming from processes which have allocated shared memory areas, and which have exited without freeing these memory areas.
- To display the top 10 (in real memory consumption or sorted by the inuse field) text segments with their corresponding file name, enter:
# svmon -S -t 10 -O unit=auto,filterprop=text,filename=on
(22줄짜리 예는 위 한글 본문에 그대로 실었습니다.)
The -O filename=on option allows in this case to display the filename of each client text segment. The amount of memory used by every segment is put with the unit identifier because of the -O unit=auto option. The segment 1a0cb holds 7.62MB of real memory and no pinned memory. The paging space and virtual memory are meaningless for client segments. The Description of the segment f23e is truncated because the default format of the report is 80 columns. The -O format=180 or -O format=nolimit could be used to display the full path of this file.
이름 붙은 공유 라이브러리 영역
이름 붙은 공유 라이브러리 영역(NSLA, Named Shared Library Areas)을 쓰면 세그먼트 설명에 영역 이름이 들어갑니다.
체크포인트를 뜰 때 WPAR를 썼고 다시 시작했으면 일부 공유 라이브러리 영역이 WPAR 전용일 수 있습니다. 이때는 영역 이름 뒤에 WPAR 이름이 붙습니다. WPAR 안에서 이름 붙은 공유 라이브러리 영역을 쓴다고 그 영역이 그 WPAR 전용이라는 뜻은 아닙니다. 자세한 것은 NSLA 문서를 봅니다.
그 밖의 경우 영역은 시스템 전체용이므로 WPAR 이름을 빼고 보여 줍니다.
보일 수 있는 예는 다음과 같습니다.
| 표시 | 뜻 |
|---|---|
myarea |
시스템 전체용 영역 myarea가 시스템에 정의되어 있음 |
@mywpar |
이름 없는 영역이 WPAR mywpar에 정의되어 있음(원문은 @myarea라고 적음) |
myarea@mywpar |
이름이 myarea인 영역이 WPAR mywpar에 정의되어 있음 |
예
시스템 전체용 이름 붙은 공유 라이브러리 영역(명령: svmon -P 381050 -O pidlist=on,pgsz=on,segment=on,summary=basic 또는 svmon -P 381050 -O pidlist=on,pgsz=on):
Unit: page
-------------------------------------------------------------------------------
Pid Command Inuse Pin Pgsp Virtual
381050 yes 11309 9956 0 11308
PageSize Inuse Pin Pgsp Virtual
s 4 KB 221 4 0 220
m 64 KB 693 622 0 693
Vsid Esid Type Description PSize Inuse Pin Pgsp Virtual
0 0 work kernel segment m 693 622 0 693
System segment
60006 d work shared library text s 185 0 0 185
myshlarea
Shared library text segment
91a08 2 work process private s 18 4 0 18
pid(s)=381050
21a23 f work shared library data s 17 0 0 17
pid(s)=381050
11920 1 clnt code,/dev/hd2:338 s 1 0 - -
pid(s)=381050
영어 원문
Named Shared Libraries
When the Named Shared Libraries (NSLA) areas are used, the segment description contains the name of the area.
When a WPAR was used during a checkpoint and restarted, some shared library areas might be local to the WPAR. The name of the WPAR is printed after the name of the area. Note that using Named Shared Library Areas in a WPAR does not mean that the area is for this WPAR only. For more information, see the documentation on NSLA.
In all other examples, the area is system-wide; therefore, the WPAR name is omitted.
The following is a list of possible examples:
myarea means a system-wide area myarea is defined on the system.
@myarea means an unnamed area is defined on the WPAR mywpar.
myarea@mywpar means an area named myarea is defined on the WPAR mywpar.
Examples
System-wide Named Shared Library area:
# svmon -P 381050 -O pidlist=on,pgsz=on,segment=on,summary=basic or # svmon -P 381050 -O pidlist=on,pgsz=on
(19줄짜리 예는 위 한글 본문에 그대로 실었습니다.)
상세 보고서(-D)
상세 보고서(-D)는 세그먼트가 소유한 페이지의 정보를 보여 주고, 요청하면 그 페이지가 매핑된 프레임도 보여 줍니다. -D 플래그로 출력합니다.
쓰는 페이지 목록 앞에 다음 필드가 나옵니다.
| 필드 | 설명 |
|---|---|
| Segid | 세그먼트 식별자 |
| Type | 세그먼트 유형 |
| PSize | 세그먼트의 페이지 크기(원문은 "The type of the segment"로 잘못 적음) |
| Address Range | 이 세그먼트가 프레임을 쓰는 범위 |
| Size of paging space allocation | 페이징 공간 할당 크기 |
| Virtual | 이 세그먼트가 쓰는 페이지 수 |
| Inuse | 이 세그먼트가 쓰는 프레임 수 |
상세 보고서의 열 머리는 다음과 같습니다.
| 열 | 설명 |
|---|---|
| Page | 가상 공간 기준 상대 페이지 번호. 가상 공간이 세그먼트 하나보다 크면(큰 파일) 세그먼트의 프레임 수(65535)보다 클 수 있습니다. |
| Frame | 실메모리의 프레임 번호. 프레임은 세그먼트의 페이지 크기와 상관없이 늘 4KB로 보므로, 4KB보다 큰 페이지는 프레임 하나가 아니라 프레임 범위에 대응합니다. 범위는 XXXXXXX..YYYYYYY로 적으며, ID XXXXXXX부터 YYYYYYY까지의 연속된 프레임을 그 페이지에 쓴다는 뜻입니다. |
| Pin | 프레임이 고정되어 있는지 |
| Ref | 프레임을 프로세스가 참조했는지 |
| Mod | 프레임을 프로세스가 수정했는지 |
| ExtSegid | 확장 세그먼트 식별자. 페이지 번호가 세그먼트의 최대 프레임 수보다 클 때만 설정됩니다. |
| ExtPage | 확장 페이지 번호. 페이지 번호가 세그먼트의 최대 프레임 수보다 클 때만 설정되며, 확장 세그먼트 안의 페이지 번호입니다. |
참고:
-@플래그는-D옵션에 영향이 없습니다.- 이 옵션은 프레임 수준 상세를 더 보여 주는
-O frame옵션만 추가로 지원합니다. - 이 보고서는 160칸 형식입니다.
예 (명령: svmon -D b9015)
Segid: b9015
Type: client
PSize: s (4 KB)
Address Range: 0..9 : 122070..122070
Page Psize Frame Pin Ref Mod ExtSegid ExtPage
0 s 74870 N N N - -
1 s 11269 N N N - -
2 s 11270 N N N - -
3 s 11271 N N N - -
4 s 11272 N N N - -
5 s 11273 N N N - -
6 s 11274 N N N - -
7 s 11275 N N N - -
8 s 986106 N N N - -
9 s 4093 N N N - -
122070 s 78191 N N N 208831 dcd6
세그먼트 b9015는 페이지 11개의 client 세그먼트이며 고정된 페이지는 없습니다. 페이지 122070은 물리적으로 확장 세그먼트 208831의 페이지 dcd6입니다.
(명령: svmon -D 6902f -O frame=on)
Segid: 6902f
Type: working
PSize: s (4 KB)
Address Range: 0..179 : 65309..65535
Size of page space allocation: 0 pages ( 0.0 MB)
Virtual: 99 frames ( 0.4 MB)
Inuse: 99 frames ( 0.4 MB)
Page Psize Frame Pin Ref Mod ExtSegid ExtPage Pincount State Swbits
65483 s 72235 Y N N - - 1/0 Hidden 88000000
65353 s 4091 Y N N - - 1/0 Hidden 88000000
65352 s 4090 Y N N - - 1/0 Hidden 88000000
65351 s 4089 Y N N - - 1/0 Hidden 88000000
65350 s 1010007 N N N - - 0/0 In-Use 88020000
65349 s 1011282 N N N - - 0/0 In-Use 88020000
65354 s 992249 N N N - - 0/0 In-Use 88020000
65494 s 1011078 N N N - - 0/0 In-Use 88020000
0 s 12282 N N N - - 0/0 In-Use 88820000
1 s 12281 N N N - - 0/0 In-Use 88820000
2 s 64632 N N N - - 0/0 In-Use 88a20000
3 s 64685 N N N - - 0/0 In-Use 88a20000
4 s 64630 N N N - - 0/0 In-Use 88a20000
5 s 64633 N N N - - 0/0 In-Use 88820000
프레임 72235는 고정되어 있고, 참조되지 않았고, 수정되지 않았으며, Hidden 상태이고, 확장 세그먼트나 대형 페이지 세그먼트에 속하지 않습니다.
영어 원문
Detailed report
The detailed report (-D) displays information about the pages owned by a segment and, on-demand, it can display the frames these pages are mapped to. To print the detailed report, specify the -D flag.
Several fields are presented before the listing of the pages used: Segid The segment identifier.
Type The type of the segment.
PSize The type of the segment.
Address Range
Ranges in which frames are used by this segment.
Ranges in which frames are used by this segment.
Size of paging space allocation
Virtual
Number of pages used by this segment.
Inuse Number of frames used by this segment.
Column headings in a detailed report
Page Relative page number to the virtual space. This page number can be higher than the number of frames in a segment (65535) if the virtual space is larger than a single segment (large file).
Frame Frame number in the real memory. Since frames are always considered 4KB in size regardless of the page size of the segment, for any page size larger than 4 KB, a range of frames instead of a single frame is associated to one page. This range is noted as XXXXXXX..YYYYYYY, which means that the continuous range of frames between ID XXXXXXX and YYYYYYY is used for the given page.
Pin Indicates if the frame is pinned or not.
Ref Indicates if the frame has been referenced by a process.
Mod Indicates if the frame has been modified by a process.
ExtSegid
Extended segment identifier. This field is only set when the page number is higher than the maximum number of frames in a segment.
ExtPage
Extended page number. This field is only set when the page number is higher than the maximum number of frames in a segment and indicates the page number within the extended segment.
Note
The -@ flag has no effect on the -D option.
This option only supports the additional
-O frameoption, which shows additional frame level details.The format used by this report is on 160 columns.
Examples
#svmon -D b9015
(16줄짜리 예는 위 한글 본문에 그대로 실었습니다.)
The segment b9015 is a client segment with 11 pages. None of them are pinned. The page 122070 is physically the page dcd6 in the extended segment 208831.
# svmon -D 6902f -O frame=on
(22줄짜리 예는 위 한글 본문에 그대로 실었습니다.)
The frame 72235 is pinned, not referenced and not modified, it is in the Hidden state, it does not pertain to an extended segment nor to a large page segment.
XML 보고서(-X)
XML 보고서는 -X 옵션으로 출력합니다.
기본으로 표준 출력에 출력합니다. -o filename 플래그로 파일에 쓸 수 있습니다. -O affinity 옵션을 쓰면 친화 정보가 보고서에 더해집니다.
참고: -O affinity=detail 옵션은 계산에 오래 걸릴 수 있습니다.
XML 보고서의 확장자는 .svm입니다. 보고서를 덮어쓰지 않으려면 -O overwrite=off 옵션을 줍니다(기본은 on).
이 XML 파일은 /usr/lib/perf/svmon_measurement.xsd 파일의 XSD(XML Schema Definition)를 씁니다. 스키마에 설명이 들어 있으므로 누구든 이 보고서의 XML 데이터로 응용 프로그램을 만들 수 있습니다.
이 파일의 데이터는 시스템 전체의 스냅숏입니다. -G, -P, -S, -W, -U, -C 옵션에 해당하는 보고서를 만들 수 있을 만큼 데이터가 들어 있습니다.
영어 원문
XML report
To print the XML report, specify the -X option.
By default the report is printed to standard output. The -o filename flag allows you to redirect the report to a file. When the -O affinity option is used, affinity information is added to the report.
Note: The -O affinity=detail option can take a long time to compute.
The extension of XML reports is .svm. To prevent a report overwrite, the option -O overwrite=off option can be specified (by default this option is set to on).
This XML file uses a XML Schema Definition (XSD) which can be found in the file: /usr/lib/perf/ svmon_measurement.xsd. This schema is self-documented and thus can be used by anyone to build custom application using the XML data provided in these reports.
The data provided in this file is a snapshot view of the whole machine. It contains enough data to build an equivalent of the -G, -P, -S, -W, -U, and -C options.
자주 쓰는 형태
svmon -G -O unit=MB,pgsz=on # 전체 + 페이지 크기별
svmon -G -O unit=MB,summary=shortreal -i 60 5 # 1분마다 5번
svmon -P -t 10 -O unit=MB,summary=basic,sortentity=inuse
svmon -C java -O unit=MB,segment=category,process=on
svmon -S -O filtercat=unattached # 주인 없는 공유 메모리
svmon -X -o /tmp/svmon_snap # XML 스냅숏(.svm)
관련 글: svmon 명령 (1), svmon 명령어, RSI API, 연재 목차