[AIX 성능 도구 17] svmon 명령 (1) 보안, .svmonrc, 요약 지표, -O 옵션

핵심 정리

  • svmon은 메모리 사용을 깊이 분석하는 명령으로, 실행 순간의 메모리 상태를 찍습니다(사용자 수준에서 인터럽트를 켠 채 돌므로 완전한 스냅숏은 아님). -i 간격 횟수로 반복합니다.
  • 보고서: -G 전역, -U 사용자, -C 명령, -P 프로세스, -S 세그먼트, -D 상세, -W·-T WLM 클래스·티어, -X XML.
  • root가 아니어도 실행할 수 있습니다. RBAC aix.system.stat 권한이 있으면 root와 같은 범위, 없으면 자기 환경·프로세스만 봅니다.
  • -O 옵션으로 출력 형식을 정합니다: summary=basic|longreal|ame, unit=auto|page|KB|MB|GB, segment=on|category, sortseg=, sortentity=, filtertype=, filterprop=notempty, filterpgsz=, pidlist=on, filename=on, timestamp=on, commandline=on, format=nolimit. 기본값은 ~/.svmonrc로 바꿉니다.
  • 보기 예: svmon -G -O unit=MB, svmon -P -t 10 -O unit=MB,sortentity=inuse, svmon -P PID -O segment=on,filename=on.
항목 내용
버전 AIX 6.1 (5.3판 Performance Tools Guide에는 이 장이 없음)
원문 Performance Tools Guide and Reference — 6.1판 314~325쪽
명령 /usr/bin/svmon
파일 $HOME/.svmonrc
관련 명령어 vmstat, ps, procmap, vmo

svmon 명령은 메모리 사용을 더 깊이 분석합니다.

svmon 명령은 메모리의 현재 상태를 찍습니다. 다만 사용자 수준에서 인터럽트를 켠 채 실행되므로 완전한 스냅숏은 아닙니다.

-i 플래그로 간격을 주면, 명령을 끝내거나 -i 플래그로 지정한 횟수에 이를 때까지 통계를 보여 줍니다.

시스템의 메모리 사용을 분석하는 다음 보고서를 만들 수 있습니다.

보고서 플래그
명령 보고서 -C
상세 보고서 -D
전역 보고서 -G
프로세스 보고서 -P
세그먼트 보고서 -S
사용자 보고서 -U
WLM 클래스 보고서 -W
WLM 티어 보고서 -T
XML 보고서 -X

svmon 명령의 자세한 내용은 Files Reference를 봅니다.

영어 원문

The svmon command

The svmon command provides a more in-depth analysis of memory usage.

The svmon command captures a snapshot of the current state of memory; however, it is not a true snapshot because it runs at the user level with interrupts enabled.

If an interval is indicated by the the -i flag statistics will be displayed until the command is killed or until the number of intervals which is specified with the-i flag, is reached.

You can generate the following different reports to analyze the memory consumption of your machine:

  • command report (-C)

  • detailed report (-D)

  • global report (-G)

  • process report (-P)

  • segment report (-S)

  • user report (-U)

  • workload management Class report (-W)

  • workload management tier report (-T)

  • XML report (-X)

For more information on the svmon command, see Files Reference.

보안

시스템의 어떤 사용자든 svmon 명령을 실행할 수 있습니다. root가 아닌 사용자에게는 두 가지 방식으로 서로 다른 두 보기를 줍니다.

  • RBAC 권한을 쓰고 사용자의 역할에 aix.system.stat 권한이 정의되어 있으면 root 사용자와 같은 보기를 얻습니다.
  • RBAC를 쓰지 않거나 사용자에게 aix.system.stat 권한이 없으면 보고서가 그 사용자의 환경이나 프로세스로 제한됩니다.

RBAC의 자세한 내용은 Files Reference를 봅니다.

영어 원문

Security

Any user of the machine can run the svmon command. It uses two different mechanisms to allow two different views for a non-root user.

The following will create the views:

  • When RBAC authorization is used, the user will have the same view as the root user if their role is defined with aix.system.stat authorization.

  • When RBAC is not used or when the user does not have the aix.system.stat authorization, the user's reports are limited to its environment or processes.

You can view the complete details of the RBAC in Files Reference.

svmon 구성 파일

svmon의 -O 옵션 목록을 담은 .svmonrc라는 구성 파일로 이 옵션들의 기본값을 바꿀 수 있습니다. 파일은 svmon 명령을 실행하는 사용자의 홈 디렉터리에 있어야 합니다.

svmon 명령은 시작할 때 다음을 합니다.

  • -O 옵션마다 기본값을 초기화합니다.
  • .svmonrc 파일을 읽어 -O 옵션의 기본값을 사용자가 정한 새 기본값으로 바꿉니다.
  • 사용자가 지정한 명령 플래그를 읽습니다.

예를 들어 다음 .svmonrc 파일은 -O 옵션이 생기기 전의 기본 보고서 형식으로 출력하게 합니다.

text
# cat .svmonrc
summary=basic
segment=category
pgsz=on

참고:

  • 파일에서 알아볼 수 없는 옵션은 무시합니다.
  • 같은 옵션이 여러 번 나오면 마지막 값만 씁니다.
영어 원문

The svmon configuration file

A configuration file named .svmonrc, containing a list of svmon -O option, can be defined to overwrite the default values of these options. This file must be defined in the home directory of the user running svmon command.

At start time, the svmon command does the following:

  • Initializes the default values for each -O option.

  • Reads the .svmonrc file and overwrites the default -O option values with these new users default values.

  • Reads the command flag defined by the user.

For example, the following .svmonrc file sets svmon to generate the default report format before the -O option were introduced:

text
# cat .svmonrc
summary=basic
segment=category
pgsz=on

Note

  • When an option is not recognized in the file, it is ignored.

  • When an option is defined more than once, only the last value will be used.

요약 보고서 지표

명령 보고서(-C), 전역 보고서(-G), 프로세스 보고서(-P), 사용자 보고서(-U), WLM 클래스 보고서(-W)에는 같은 종류의 요약 지표가 들어갑니다.

요약 지표 옵션은 다음과 같습니다.

  • -O summary=basic만 쓰면 명령 보고서(-C), 프로세스 보고서(-P), 사용자 보고서(-U), WLM 클래스 보고서(-W)를 간단한 형식으로 만듭니다.
  • -O summary=longreal만 쓰면 전역 보고서(-G)를 간단한 형식으로 만듭니다. AME(Active Memory Expansion)가 켜진 시스템에서는 전역 보고서에 새 요약 지표 두 가지가 더 있습니다.
  • -O summary=ame만 쓰면 전역 보고서(-G)에 자세한 메모리 압축 정보를 넣습니다.
  • -O summary=longame만 쓰면 전역 보고서(-G)에 메모리 압축 정보를 간단한 형식으로 넣습니다.
영어 원문

Summary report metrics

The command report (-C option), global report (-G option), process report (-P option), user report (-U option), and workload management class report (-W option) include the same set type of summary metrics.

The following are the summary metrics:

  • The -O summary=basic option used alone produces compact reports for the command report (-C), the process report (-P ), the user report (-U ), and the workload management class report (-W ).

  • The -O summary=longreal option used alone produces a compact report of the global report (-G ). In a system with Active Memory™Expansion enabled, two new summary report metrics are available for global report (-G option).

  • The -O summary=ame option used alone produces detailed memory compression information for the global report (-G).

  • The -O summary=longame option used alone produces a compact report of memory compression information for the global report (-G)

기본 요약 보고서 지표

이 형식은 이전 버전의 svmon 명령(-O 옵션이 생기기 전)과 호환되는 모드이며 80칸을 씁니다.

이 요약에는 다음 열이 늘 나옵니다.

열 설명
Inuse 보고 대상이 쓰는 페이지가 든 프레임 수(<unit> 단위)
Pin 보고 대상이 쓰는 고정(pinned) 페이지가 든 프레임 수(<unit> 단위)
Pgsp 보고 대상이 페이징 공간에 할당한 페이지 수(<unit> 단위)
Virtual 보고 대상이 가상 공간에 할당한 페이지 수(<unit> 단위)
영어 원문

Basic summary report metrics

This is the compatibility mode with the previous versions of svmon command (before the -O option was introduced). This format uses 80 columns.

In these summaries, the following columns are always displayed:

  • Inuse — Number of frames containing pages (expressed in <unit>) used by the report entities.
  • Pin — Number of frames containing pinned pages (expressed in <unit>) used by the report entities.
  • Pin — Number of pages (expressed in <unit>) allocated in the paging space by the report entities.
  • Virtual — Number of pages (expressed in <unit>) allocated in the virtual space by the report entities.

보고서 형식 옵션

svmon 명령의 보고서 형식 옵션입니다.

-G, -P, -U, -C, -W 옵션으로 두 가지 보고서를 만들 수 있습니다.

  • 간단(compact) 보고서: 대상 하나에 한 줄
  • 긴(long) 보고서: 대상 하나에 여러 줄

-G 옵션은 -O summary=longreal 옵션으로 표준 보고서에서 간단 보고서로 바꿉니다. -P, -U, -C, -W 옵션은 -O summary=basic이고 -O segment=off(기본값)일 때 간단 보고서를 만듭니다.

다음 -O 옵션은 간단 보고서와 긴 보고서에 모두 쓸 수 있습니다.

  • -O format=[80,160,nolimit]: 보고서 너비를 정합니다. 대부분의 보고서는 기본 80자이지만 160자가 필요한 보고서는 이 옵션이 저절로 설정됩니다. 문자열이 잘리지 않도록 언제든 더 넓게 지정할 수 있습니다.
  • -O timestamp=[on | off]: on이면 svmon이 데이터를 가져오기 시작할 때 기록한 타임스탬프를 보고서 맨 앞에 보여 줍니다. 데이터 수집에 시간이 걸릴 수 있으므로 -i 플래그와 함께 -O timestamp=on을 써서 간격마다 타임스탬프를 남길 수 있습니다. -i로 지정한 시간은 한 번의 반복이 끝난 때부터 다음 반복이 시작될 때까지의 간격입니다.

예

다음은 svmon을 5초마다 3번 실행하는 예입니다. 타임스탬프와 명령줄 표시는 .svmonrc 파일로 설정했습니다(명령: svmon -G -i 5 3).

text
Command line : svmon -G -i 5 3
.svmonrc: -O timestamp=on,commandline=on
Unit: page                                                   Timestamp: 11:23:02
-------------------------------------------------------------------------------
               size       inuse        free         pin     virtual  available
memory       262144      227471       34673      140246      223696      53801
pg space     131072       39091
               work        pers        clnt       other
pin          113676           0           0       10186
in use       189693           0       29586
Unit: page                                                   Timestamp: 11:23:07
-------------------------------------------------------------------------------
               size       inuse        free         pin     virtual  available
memory       262144      227473       34671      140243      223697      53800
pg space     131072       39091
               work        pers        clnt       other
pin          113673           0           0       10186
in use       189694           0       29587
Unit: page                                                   Timestamp: 11:23:12
-------------------------------------------------------------------------------
               size       inuse        free         pin     virtual  available
memory       262144      227475       34670      140244      223699      53799
pg space     131072       39091
               work        pers        clnt       other
pin          113674           0           0       10186
in use       189696           0       29587
  • -O commandline=[on|off]: on이면 보고서를 만든 명령줄을 보고서 머리에 넣습니다.

예 (명령: svmon -G -O commandline=on)

text
Command line : svmon -G -O commandline=on
Unit: page
-------------------------------------------------------------------------------
               size       inuse        free         pin     virtual  available
memory       262144      227312       34832      140242      223536      53961
pg space     131072       39091
               work        pers        clnt       other
pin          113672           0           0       10186
in use       189533           0       29587
  • -O unit=[auto,page,KB,MB,GB]: 기본은 page입니다. 이때 세그먼트마다 지표는 그 세그먼트의 페이지 크기 단위로 나옵니다. s는 4KB, m은 64KB, L은 16MB, S는 16GB 페이지입니다.

auto, KB, MB, GB를 쓰면 유효 숫자 세 자리만 보여 주므로 page가 아닌 단위로 볼 때는 결과를 조심해서 해석합니다. auto를 고르면 각 지표 바로 뒤에 단위 약자(K는 킬로바이트, M은 메가바이트, G는 기가바이트)가 붙습니다.

예

단위 옵션만 다르게 한 같은 보고서입니다.

text
# svmon -G -O unit=page
Unit: page
==============================================================================
               size       inuse        free         pin     virtual  available
memory      1048576      220617      827959      113371      194382     819969
pg space     131072        1280
               work        pers        clnt       other
pin           78124           0           0       35247
in use       194382           0       26235
# svmon -G -O unit=GB
Unit: GB
==============================================================================
               size       inuse        free         pin     virtual  available
memory         4.00        0.84        3.16        0.43        0.74       3.13
pg space       0.50           0
               work        pers        clnt       other
pin            0.30           0           0        0.13
in use         0.74           0        0.10
# svmon -G -O unit=auto
Unit: auto
==============================================================================
               size       inuse        free         pin     virtual  available
memory        4.00G     860.78M       3.16G     442.86M     758.29M      3.13G
pg space    512.00M       5.00M
               work        pers        clnt       other
pin         305.17M          0K          0K     137.68M
in use      758.29M          0K     102.49M
영어 원문

Report formatting options

Review the report formatting options for the svmon command.

The svmon configuration file can generate two types of reports for the -G, -P, -U, -C, and -W option:

  • Compact report, which is a one-line-per-entity report.

  • Long report, which uses several lines per entity.

For the -G option, you can switch from the standard report to the compact report with the option -O summary=longreal. For the -P, -U, -C and -W options, a compact report is reported when the option -O summary=basic is set and the option -O segment=off is set (default value).

The following -O options can be used in both compact or long reports:

  • -O format=[80,160,nolimit]: This option sets the width of the report. The default width of most reports is 80 characters. But, some reports need 160 characters, in which case this option is implicitly set. You can always specify to display the reports with more columns, to eliminate truncated strings.

  • -O timestamp=[on | off]: When this flag is set to on, a timestamp, recorded when the svmon command begins retrieving data, is displayed at the beginning of the report. Because the data collection can take some time, you can use the -O timestamp=on with the -i flag to specify timestamp intervals. The time specified with the -i flag is the interval between the end of one svmon command iteration and the start of the next one.

Example

In this example, the command line specifies to run svmon 3 times every 5 seconds. The timestamp and command line are set with the .svmonrc file.

  • -O commandline=[on|off]: when set to on, this option adds the command line you use to produce the report in the report header.

svmon -G -i 5 3

(26줄짜리 예는 위 한글 본문에 그대로 실었습니다.)

Example

svmon -G -O commandline=on

text
Command line : svmon -G -O commandline=on
Unit: page
-------------------------------------------------------------------------------
               size       inuse        free         pin     virtual  available
memory       262144      227312       34832      140242      223536      53961
pg space     131072       39091
               work        pers        clnt       other
pin          113672           0           0       10186
in use       189533           0       29587
  • -O unit=[auto,page,KB,MB,GB]: this option is set to page by default. In this case, the reported metrics for each segment are in the segment page size: – s are 4 KB pages – m are 64 KB pages – L are 16 MB pages – S are 16 GB pages

When auto,KB, MB, or GB are used, only the 3 most significant digits are displayed. You should be careful when interpreting the results with a unit other than page. When the auto setting is selected, the abbreviated units are specified immediately after each metric (K for kilobytes, M for megabytes, or G for gigabytes).

Examples

This is the same report using different unit options:

(27줄짜리 예는 위 한글 본문에 그대로 실었습니다.)

세그먼트 상세와 -O 옵션

svmon 명령의 세그먼트 상세와 -O 옵션입니다.

-O segment=on이나 -O segment=category를 설정하면 사용자, 명령, 프로세스, 클래스 보고서의 요약 뒤에 세그먼트 상세가 더해집니다.

  • -O segment=on: 대상마다 세그먼트 목록을 보여 줍니다.
  • -O segment=category: 대상마다 세그먼트를 세 범주로 묶습니다. system은 시스템이 쓰는 것, exclusive는 (공유 메모리(shm) 세그먼트를 빼고) 한 대상만 쓰는 것, shared는 (shm 세그먼트를 빼고) 둘 이상의 대상이 쓰는 것입니다.

svmon이 세그먼트 정보로 보고하는 항목의 설명은 다음과 같습니다.

세그먼트 유형 쓰임 Description 열에 나오는 것
persistent 로그 파일 IO space mapping
persistent 파일과 디렉터리 장치 이름 : inode 번호
persistent 큰 파일 large file 장치 이름 : inode 번호
mapping 파일 매핑 mapped to sid 원본 sid, 또는 no longer mapped
working 프로세스의 데이터 영역과 공유 메모리 세그먼트 VSID와 ESID에 따른 세그먼트의 역할에 따라 다름
client NFS와 CD-ROM 파일 VSID와 ESID에 따른 세그먼트의 역할에 따라 다름
client JFS2 파일 장치 이름 : inode 번호
rmapping I/O 공간 매핑 VSID와 ESID에 따른 세그먼트의 역할에 따라 다름

-O segment=on이나 -O segment=category를 설정했으면 다음 상세를 더할 수 있습니다.

  • -O range=on: 각 세그먼트 뒤에 그 세그먼트 안에서 페이지가 할당된 범위가 나옵니다.

예

text
# svmon -P 1 -O range=on
Unit: page
-------------------------------------------------------------------------------
     Pid Command          Inuse      Pin     Pgsp  Virtual
       1 init             16874     8052        0    16858
    Vsid      Esid Type Description              PSize  Inuse   Pin Pgsp Virtual
       0         0 work kernel segment               m    576   503    0     576
                   Addr Range: 0..3945
   d802d         d work shared library text          m    467     0    0     467
                   Addr Range: 0..562
    1001         2 work process private              s     98     4    0      98
                   Addr Range: 0..179 : 65309..65535
  1c101d         f work shared library data          s     72     0    0      72
                   Addr Range: 0..545
  1a101b         1 clnt code,/dev/hd2:531            s     11     0    -       -
                   Addr Range: 0..10
   21023         - clnt /dev/hd4:1236                s      5     0    -       -
                   Addr Range: 0..4
  • -O pidlist=on과 -O pidlist=number: 이 세그먼트를 쓰는 프로세스의 PID 목록이나 프로세스 수를 더합니다. PID마다 사용자 이름이나 명령 이름도 더합니다. -@ 플래그를 함께 주면 WPAR 이름도 더합니다.

예

text
# svmon -C yes -O pidlist=on
Unit: page
===============================================================================
Command                              Inuse      Pin     Pgsp  Virtual
yes                                  16893     8112        0    16892
    Vsid      Esid Type Description              PSize  Inuse   Pin Pgsp Virtual
       0         0 work kernel segment               m    579   506    0     579
                   System segment
   d802d         d work shared library text          m    468     0    0     468
                   Shared library text segment
  111750         2 work process private              s     18     4    0      18
                   pid(s)=348386
   e174f         2 work process private              s     18     4    0      18
                   pid(s)=340154
  131752         2 work process private              s     18     4    0      18
                   pid(s)=389352
  1c171d         2 work process private              s     18     4    0      18
                   pid(s)=360640
   81749         f work shared library data          s     17     0    0      17
                   pid(s)=340154
   71726         f work shared library data          s     17     0    0      17
                   pid(s)=360640
  101751         f work shared library data          s     17     0    0      17
                   pid(s)=348386
  121753         f work shared library data          s     17     0    0      17
                   pid(s)=389352
   a172b         1 clnt code,/dev/hd2:338            s      1     0    -       -
                   pid(s)=389352, 360640, 348386, 340154
# svmon -C yes -O pidlist=number
Unit: page
===============================================================================
Command                              Inuse      Pin     Pgsp  Virtual
yes                                  16893     8112        0    16892
    Vsid      Esid Type Description              PSize  Inuse   Pin Pgsp Virtual
       0         0 work kernel segment               m    579   506    0     579
                   System segment
   d802d         d work shared library text          m    468     0    0     468
                   Shared library text segment
  111750         2 work process private              s     18     4    0      18
                   pid number=1
   e174f         2 work process private              s     18     4    0      18
                   pid number=1
  131752         2 work process private              s     18     4    0      18
                   pid number=1
  1c171d         2 work process private              s     18     4    0      18
                   pid number=1
   81749         f work shared library data          s     17     0    0      17
                   pid number=1
   71726         f work shared library data          s     17     0    0      17
                   pid number=1
  101751         f work shared library data          s     17     0    0      17
                   pid number=1
  121753         f work shared library data          s     17     0    0      17
                   pid number=1
   a172b         1 clnt code,/dev/hd2:338            s      1     0    -       -
                   pid number=4
  • -O filename=on: persistent 세그먼트마다 해당하는 전체 파일 이름을 보여 줍니다. 파일이 깊이 중첩되어 있을 수 있으므로 이 플래그나 -S, -i 플래그와 함께 쓰면 시간이 훨씬 오래 걸릴 수 있습니다.

예

text
# svmon -P 266414 -O filename=on,format=nolimit
Unit: page
-------------------------------------------------------------------------------
     Pid Command          Inuse      Pin     Pgsp  Virtual
  266414 IBM.ServiceRMd    17227     8116        0    17174
    Vsid      Esid Type Description              PSize  Inuse   Pin Pgsp Virtual
       0         0 work kernel segment               m    579   506    0     579
   d802d         d work shared library text          m    468     0    0     468
   31322         2 work process private              s    202     4    0     202
  171316         f work shared library data          s    167     0    0     167
  1e133f         - work                              s     52    16    0      52
   11320         1 clnt code,/dev/hd2:9929           s     51     0    -       -
                        /opt/rsct/bin/IBM.ServiceRMd
   b134a         - clnt /dev/hd9var:368              s      1     0    -       -
                        /var/ct/3394394444/registry/local_tree/IBM,ServiceEvent,Class
   a134b         - clnt /dev/hd9var:372              s      1     0    -       -
                        /var/ct/3394394444/registry/local_tree/IBM,ServiceEvent,Resources
    1341         4 work shared memory segment        s      1     0    0       1
  121333         3 mmap maps 2 source(s)             s      0     0    -       -
  131312         - clnt /dev/hd9var:360              s      0     0    -       -
                        /var/ct/IBM.ServiceRM.stderr
  111310         - clnt /dev/hd9var:418              s      0     0    -       -
                        /var/ct/3394394444/lck/mc/RMIBM.ServiceRM
  • -O mapping=on: 한 세그먼트가 다른 세그먼트를 매핑하는 데 쓰일 때 원본 세그먼트와 매핑 세그먼트 정보를 더합니다. 이 옵션을 쓰면 프로세스 주소 공간에 속하지 않는 원본 세그먼트도 보고서에 나오며 별표(*)로 표시됩니다. 이들도 프로세스 수준 요약의 숫자 계산에 들어갑니다.

예

text
# svmon -P 266414 -O mapping=off
Unit: page
-------------------------------------------------------------------------------
     Pid Command          Inuse      Pin     Pgsp  Virtual
  266414 IBM.ServiceRM    17227     8116        0    17174
# svmon -P 266414 -O mapping=on
Unit: page
-------------------------------------------------------------------------------
     Pid Command          Inuse      Pin     Pgsp  Virtual
  266414 IBM.ServiceRM    17231     8116        0    17174
# svmon -P 266414 -O mapping=on,segment=on
Unit: page
-------------------------------------------------------------------------------
     Pid Command          Inuse      Pin     Pgsp  Virtual
  266414 IBM.ServiceRM    17231     8116        0    17174
    Vsid      Esid Type Description              PSize  Inuse   Pin Pgsp Virtual
       0         0 work kernel segment               m    579   506    0     579
   d802d         d work shared library text          m    468     0    0     468
   31322         2 work process private              s    202     4    0     202
  171316         f work shared library data          s    167     0    0     167
  1e133f         - work                              s     52    16    0      52
   11320         1 clnt code,/dev/hd2:9929           s     51     0    -       -
  191338 *       - clnt /dev/hd9var:363              s      3     0    -       -
  131332 *       - clnt /dev/hd9var:361              s      1     0    -       -
   b134a         - clnt /dev/hd9var:368              s      1     0    -       -
   a134b         - clnt /dev/hd9var:372              s      1     0    -       -
    1341         4 work shared memory segment        s      1     0    0       1
  131312         - clnt /dev/hd9var:360              s      0     0    -       -
  121333         3 mmap maps 2 source(s)             s      0     0    -       -
                   source(s)=131332, 191338
  111310         - clnt /dev/hd9var:418              s      0     0    -       -

이 예에서 mapping 옵션은 프로세스 266414의 주소 공간에 없는 매핑 원본 세그먼트를 더하거나 뺍니다. -O mapping=off와 -O mapping=on 사이에 Inuse가 4페이지(세그먼트 191338에서 3페이지, 131332에서 1페이지) 차이 납니다.

  • -O sortseg=[inuse | pin | pgsp | virtual]: 기본으로 대상(사용자, 프로세스, 명령, 세그먼트)마다 모든 세그먼트를 실메모리 사용량(Inuse 지표)이 큰 순서로 정렬합니다. 정렬 기준은 Inuse(쓰는 실메모리), Pin(쓰는 고정 메모리), Pgsp(쓰는 페이징 공간), Virtual(쓰는 가상 메모리) 가운데 고릅니다.

예

text
# svmon -P 1 -O unit=KB,segment=on
Unit: KB
-------------------------------------------------------------------------------
     Pid Command          Inuse      Pin     Pgsp  Virtual
       1 init             67752    32400        0    67688
    Vsid      Esid Type Description              PSize  Inuse   Pin Pgsp Virtual
       0         0 work kernel segment               m  37056 32384    0   37056
   d802d         d work shared library text          m  29952     0    0   29952
    1001         2 work process private              s    392    16    0     392
  1c101d         f work shared library data          s    288     0    0     288
  1a101b         1 clnt code,/dev/hd2:531            s     44     0    -       -
   21023         - clnt /dev/hd4:1236                s     20     0    -       -
# svmon -P 1 -O unit=KB,segment=on,sortseg=pin
Unit: KB
-------------------------------------------------------------------------------
     Pid Command          Inuse      Pin     Pgsp  Virtual
       1 init             67752    32400        0    67688
    Vsid      Esid Type Description              PSize  Inuse   Pin Pgsp Virtual
       0         0 work kernel segment               m  37056 32384    0   37056
    1001         2 work process private              s    392    16    0     392
   21023         - clnt /dev/hd4:1236                s     20     0    -       -
   d802d         d work shared library text          m  29952     0    0   29952
  1a101b         1 clnt code,/dev/hd2:531            s     44     0    -       -
  1c101d         f work shared library data          s    288     0    0     288
  • -O mpss=[on | off]: 여러 페이지 크기 세그먼트의 지표를 페이지 크기별로 나눕니다.

예

text
# svmon -P 1 -O segment=on,mpss=on
Unit: page
-------------------------------------------------------------------------------
     Pid Command          Inuse      Pin     Pgsp  Virtual
       1 init             14557     5492        0    14541
    Vsid      Esid Type Description              PSize  Inuse   Pin Pgsp Virtual
    502d         d work shared library text          m    502     0    0     502
    2002         0 work kernel segment               m    396   343    0     396
   10001         2 work process private              s    100     4    0     100
                                                     m      0     0    0       0
    8019         f work shared library data          s     73     0    0      73
                                                     m      0     0    0       0
    6017         1 clnt code,/dev/hd2:532            s     11     0    -       -
    e01f         - clnt /dev/hd4:893                 s      5     0    -       -

sm 페이지가 s와 m 페이지로 나뉩니다. 지표는 페이지 크기 단위이며 s 페이지는 4KB, m 페이지는 64KB입니다.

  • -O shmid=[on | off]: 공유 메모리 세그먼트에 연결된 공유 메모리 ID를 보여 줍니다. WPAR 안에서 실행하면 동작하지 않습니다.

예

text
# svmon -P 221326 -O commandline=on,segment=on,shmid=on,filterprop=notempty
Command line : svmon -P 221326 -O commandline=on,segment=on,shmid=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
                        shmid:3
   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
영어 원문

Segment details and -O options

Review the segment details and -O options for the svmon command.

Segment details can be added to the user, command, process, and class reports after the summary when the -O segment=on or -O segment=category option is set to:

  • -O segment=on, the list of segments is displayed for each entity.

  • -O segment=category, the segments are grouped into the following three categories for each entity: – system: used by the system – exclusive: used only by one entity, except for shared memory (shm) segments – shared: used by two or more entities, except for shared memory (shm) segments

The following table contains the description of the items that the svmon reports for segment information.

Table 8. Description table

Segment type Segment usage Description
persistent log files IO space mapping
persistent files and directories device name : inode number
persistent large files large file device name : inode number
mapping files mapping mapped to sid source sid no longer mapped

working data areas of processes and shared memory segments dependent on the role of the segment based on the VSID and ESID

Table 8. Description table (continued)

Segment type Segment usage Description
client NFS and CD-ROM files dependent on the role of the segment based on the VSID and ESID
client JFS2 files device name: inode number
rmapping I/O space mapping dependent on the role of the segment based on the VSID and ESID

When -O segment=on or -O segment=category is set, additional details can be added:

  • -O range=on: each segment is followed by the ranges, within the segment, where pages have been allocated.

Example

(18줄짜리 예는 위 한글 본문에 그대로 실었습니다.)

  • -O pidlist=on and -O pidlist=number: adds either the list of PIDs of processes or the number of processes using this segment. It also adds either the user name or the command name corresponding to each PID. When the -@ flag is added, the WPAR name is also added.

Example

(56줄짜리 예는 위 한글 본문에 그대로 실었습니다.)

  • -O filename=on: Each persistent segment's complete, corresponding file name is shown. Note that because files can be deeply nested, running the svmon command with this flag, or with the -S and -i flags, can take significantly more time.

Example

(23줄짜리 예는 위 한글 본문에 그대로 실었습니다.)

  • -O mapping=on: adds information about the source segment and the mapping segment when a segment is used to map another segment. If this option is used, source segments not belonging to the

process address space are listed in the report and marked with an asterisk (*). Note that they are also taken into account in the process-level summary's number calculations.

Example

(31줄짜리 예는 위 한글 본문에 그대로 실었습니다.)

In these examples, the mapping option adds or removes the mapping source segments which are not in the address space of the process number 266414. There is a difference of four pages (three pages from segment 191338, and one page from segment 131332) in the Inuse consumption between -O mapping=off and -O mapping=on.

  • -O sortseg=[inuse | pin | pgsp | virtual]: by default,, all segments are sorted in decreasing order of real memory usage (the Inuse metric) for each entity (user, process, command, segment). Sorting options for the report include the following: – Inuse: real memory used – Pin: pinned memory used – Pgsp: paging space memory used – Virtual: virtual memory used

Examples

(24줄짜리 예는 위 한글 본문에 그대로 실었습니다.)

  • -O mpss=[on | off]: breaks down the metrics for multiple page size segments, by page size.

Examples

(14줄짜리 예는 위 한글 본문에 그대로 실었습니다.)

sm pages are separated into s and m pages. The metrics reported are in the unit of the page size: s pages are 4 KB and m pages are 64 KB.

  • -O shmid=[on | off]: displays shared memory IDs associated with shared memory segments. This option does not work you run it in inside a WPAR.

Examples

(15줄짜리 예는 위 한글 본문에 그대로 실었습니다.)

그 밖의 -O 옵션

svmon 명령의 그 밖의 -O 옵션입니다.

  • -O process=on: 대상(사용자 이름이나 명령 이름)마다 그에 속한 프로세스의 메모리 통계를 더합니다. -@ 플래그를 주면 프로세스 보고서마다 WPAR 이름 줄이 뒤따릅니다. 사용자 보고서와 명령 보고서에서만 쓸 수 있습니다.

대상이 둘 이상인 보고서는 다음 옵션으로 거르거나 정렬할 수 있습니다.

  • -O sortentity=[inuse |...]: 보고서에 대상(프로세스, 사용자 등)이 여럿 나올 때 정렬에 쓸 요약 지표를 지정합니다. 쓸 수 있는 지표는 고른 요약 형식(-O summary)에 따라 다르며, 요약에 나오는 지표는 모두 정렬 기준으로 쓸 수 있습니다.

예

text
# svmon -P -t 5 -O summary=off -O segment=off -O sortentity=pin
Command line : svmon -P -t 5 -O summary=off -O segment=off -O sortentity=pin
Unit: page
-------------------------------------------------------------------------------
     Pid Command          Inuse      Pin     Pgsp  Virtual
  127044 dog               9443     8194        0     9443
       0 swapper           9360     8176        0     9360
    8196 wait              9360     8176        0     9360
   53274 wait              9360     8176        0     9360
  237700 rpc.lockd         9580     8171        0     9580
  • -O filtercat=[off | exclusive | kernel | shared | unused | unattached]: 세그먼트 범주로 출력을 거릅니다. 여러 개를 함께 지정할 수 있습니다.

참고: unattached 값은 -S 보고서와 함께 씁니다. 붙어 있지 않은(unattached) 세그먼트는 프로세스나 명령이 소유할 수 없기 때문입니다.

예

text
# svmon -P 1 -O unit=KB,segment=on,sortseg=pin,filtercat=off
Unit: KB
-------------------------------------------------------------------------------
     Pid Command          Inuse      Pin     Pgsp  Virtual
       1 init             58684    28348        0    58616
    Vsid      Esid Type Description              PSize  Inuse   Pin Pgsp Virtual
       0         0 work kernel segment               s  30948 28332    0   30948
   6902f         2 work process private              s    396    16    0     396
   6c10d         d work shared library text          s  26996     0    0   26996
   a9017         f work shared library data          s    276     0    0     276
   b9015         1 clnt code,/dev/hd2:531            s     44     0    -       -
   f101c         - clnt /dev/hd4:824                 s     24     0    -       -
text
# svmon -P 1 -O unit=KB,segment=on,sortseg=pin,filtercat=shared
Unit: KB
-------------------------------------------------------------------------------
     Pid Command          Inuse      Pin     Pgsp  Virtual
       1 init             58684    28348        0    58616
    Vsid      Esid Type Description              PSize  Inuse   Pin Pgsp Virtual
   6c10d         d work shared library text          s  26996     0    0   26996
   a9017         f work shared library data          s    276     0    0     276
  • -O filtertype=[off | working | persistent | client]: 세그먼트 상세의 Type 열로 거릅니다. 여러 개를 함께 지정할 수 있습니다.

예

text
# svmon -P 495618 -O segment=on,filtertype=client
Unit=page
-------------------------------------------------------------------------------
     Pid Command          Inuse      Pin     Pgsp  Virtual
  495618 IBM.AuditRMd       308        0        0        0
  Vsid      Esid Type Description              PSize  Inuse   Pin Pgsp Virtual
1619f7         - clnt /dev/fslv07:417              s    253     0    -     -
 31382         1 clnt code,/dev/hd2:9803           s     36     0    -     -
1319f2         - clnt /dev/fslv07:400              s     16     0    -     -
1a19db         - clnt /dev/fslv07:399              s      1     0    -     -
 a19cb         - clnt /dev/fslv07:397              s      1     0    -     -
 919c8         - clnt /dev/fslv07:398              s      1     0    -     -
 519c4         - clnt /dev/fslv07:358              s      0     0    -     -
1f19de         - clnt /dev/fslv07:325              s      0     0    -     -

프로세스 495618의 client 세그먼트만 나옵니다. 요약은 대상 상세에 나온 지표의 합만 보고합니다. 곧 여기의 요약 숫자는 이 프로세스의 전체 메모리 사용이 아니라 client 세그먼트로 쓴 양만 나타냅니다.

  • -O filterprop=[off | notempty | data | text]: 세그먼트 속성으로 거릅니다. Data는 계산용(computational) 세그먼트로, working-storage 세그먼트나 프로그램 텍스트(실행 파일) 세그먼트에 속한 페이지입니다. Text는 계산용이 아닌 세그먼트, 곧 파일 메모리(파일 페이지)로 나머지 페이지이며 보통 영구 저장소의 데이터 파일에서 옵니다. Notempty는 Inuse 값이 0이 아닌 세그먼트입니다. 여러 속성을 함께 지정할 수 있습니다.

예

text
# svmon -C yes -O segment=category,filterprop=notempty
Unit: page
===============================================================================
Command                              Inuse      Pin     Pgsp  Virtual
yes                                  16256     6300       80    16271
...............................................................................
SYSTEM segments                      Inuse      Pin     Pgsp  Virtual
                                      7088     6288       64     7104
    Vsid      Esid Type Description              PSize  Inuse   Pin Pgsp Virtual
       0         0 work kernel segment               m    443   393    4     444
...............................................................................
EXCLUSIVE segments                   Inuse      Pin     Pgsp  Virtual
                                       112       12        0      111
    Vsid      Esid Type Description              PSize  Inuse   Pin Pgsp Virtual
    851d         2 work process private             sm     19     4    0      19
    e6fb         2 work process private             sm     19     4    0      19
   1940f         2 work process private             sm     19     4    0      19
    1017         f work shared library data         sm     18     0    0      18
    6f73         f work shared library data         sm     18     0    0      18
    4a71         f work shared library data         sm     18     0    0      18
   24626         1 clnt code,/dev/hd2:338            s      1     0    -       -
...............................................................................
SHARED segments                      Inuse      Pin     Pgsp  Virtual
                                      9056        0       16     9056
    Vsid      Esid Type Description              PSize  Inuse   Pin Pgsp Virtual
    502d         d work shared library text          m    566     0    1     566
# svmon -C yes -O segment=category,filterprop=text
Unit: page
===============================================================================
Command                              Inuse      Pin     Pgsp  Virtual
yes                                      1        0        0        0
...............................................................................
EXCLUSIVE segments                   Inuse      Pin     Pgsp  Virtual
                                         1        0        0        0
    Vsid      Esid Type Description              PSize  Inuse   Pin Pgsp Virtual
   24626         1 clnt code,/dev/hd2:338            s      1     0    -       -
# svmon -C yes -O segment=category,filterprop=data
Unit: page
===============================================================================
Command                              Inuse      Pin     Pgsp  Virtual
yes                                  16255     6300       80    16271
...............................................................................
SYSTEM segments                      Inuse      Pin     Pgsp  Virtual
                                      7088     6288       64     7104
    Vsid      Esid Type Description              PSize  Inuse   Pin Pgsp Virtual
       0         0 work kernel segment               m    443   393    4     444
...............................................................................
EXCLUSIVE segments                   Inuse      Pin     Pgsp  Virtual
                                       111       12        0      111
    Vsid      Esid Type Description              PSize  Inuse   Pin Pgsp Virtual
    e6fb         2 work process private             sm     19     4    0      19
    851d         2 work process private             sm     19     4    0      19
   1940f         2 work process private             sm     19     4    0      19
    4a71         f work shared library data         sm     18     0    0      18
    1017         f work shared library data         sm     18     0    0      18
    6f73         f work shared library data         sm     18     0    0      18
...............................................................................
SHARED segments                      Inuse      Pin     Pgsp  Virtual
                                      9056        0       16     9056
    Vsid      Esid Type Description              PSize  Inuse   Pin Pgsp Virtual
    502d         d work shared library text          m    566     0    1     566
  • -O filterpgsz=[off | s m | L | S]: 페이지 크기로 세그먼트를 거릅니다. 여러 페이지 크기 세그먼트는 <min_size><max_size> 형식의 글자를 여럿 써서 고릅니다. 예를 들어 -O filterpgsz="sm s"는 작은 페이지 세그먼트와 작은·중간 페이지가 섞인 여러 페이지 크기 세그먼트를 고릅니다. 다만 -P 보고서에서는 동작이 조금 다릅니다. -O filterpgsz로 지정한 크기의 페이지를 하나라도 가진 프로세스를 모두 넣고, 그 프로세스의 세그먼트는 페이지 크기와 상관없이 모두 보여 줍니다.

예

text
# svmon -P -O segment=on,filterpgsz=L
Unit: page
-------------------------------------------------------------------------------
     Pid Command          Inuse      Pin     Pgsp  Virtual
  270450 ptxtst_shm_al    21674    17136        0    21658
    Vsid      Esid Type Description              PSize  Inuse   Pin Pgsp Virtual
   10002         0 work kernel segment               m    607   556    0     607
  1b9b35  70000000 work default shmat/mmap           L      2     2    0       2
   28005  9ffffffd work shared library               s   1767     0    0    1767
  188030  90000000 work shared library text          m    110     0    0     110
  1010a2  90020014 work shared library               s    114     0    0     114
  209b43 f00000002 work process private              m      5     3    0       5
  3c107a  9fffffff clnt USLA text,/dev/hd2:2774      s     13     0    -       -
   7000e  9ffffffe work shared library               s     11     0    0      11
   21b06  9001000a work shared library data          s     11     0    0      11
  241b4a  80020014 work USLA heap                    s      5     0    0       5
  281b52  8fffffff work private load data            s      4     0    0       4
  131a24        10 clnt text data BSS heap,          s      3     0    -       -
                        /dev/hd2:2745
  2a1b56        11 work text data BSS heap           s      1     0    0       1
  159a29  ffffffff work application stack            s      1     0    0       1
-------------------------------------------------------------------------------
     Pid Command          Inuse      Pin     Pgsp  Virtual
  266262 ptxtst_shm_al    17578    13040        0    17562
    Vsid      Esid Type Description              PSize  Inuse   Pin Pgsp Virtual
   10002         0 work kernel segment               m    607   556    0     607
  119ba1  70000000 work default shmat/mmap           L      1     1    0       1
   28005  9ffffffd work shared library               s   1767     0    0    1767
  188030  90000000 work shared library text          m    110     0    0     110
  1010a2  90020014 work shared library               s    114     0    0     114
  3e19fe f00000002 work process private              m      5     3    0       5
  3c107a  9fffffff clnt USLA text,/dev/hd2:2774      s     13     0    -       -
   7000e  9ffffffe work shared library               s     11     0    0      11
   c1a1a  9001000a work shared library data          s     11     0    0      11
  2a9a57  80020014 work USLA heap                    s      5     0    0       5
  149b2b  8fffffff work private load data            s      4     0    0       4
  131a24        10 clnt text data BSS heap,          s      3     0    -       -
                        /dev/hd2:2745
  1f9b3d  ffffffff work application stack            s      1     0    0       1
  2b1b54        11 work text data BSS heap           s      1     0    0       1
                   Addr Range: 0..3012

이 예에서는 대형 페이지를 쓰는 모든 프로세스가 나오며, 그 프로세스의 세그먼트는 페이지 크기와 상관없이 모두 나옵니다.

text
# svmon -U root -O filterpgsz=L,segment=on
Unit: page
===============================================================================
User                                 Inuse      Pin     Pgsp  Virtual
root                                 12288    12288        0    12288
    Vsid      Esid Type Description              PSize  Inuse   Pin Pgsp Virtual
  1b9b35  70000000 work default shmat/mmap           L      2     2    0       2
  119ba1  70000000 work default shmat/mmap           L      1     1    0       1
text
# svmon -C ptxtst_shm_alt_pgsz -O filterpgsz=L,segment=on
Unit: page
===============================================================================
Command                              Inuse      Pin     Pgsp  Virtual
ptxtst_shm_alt_pgsz                   12288   12288        0    12288
    Vsid      Esid Type Description              PSize  Inuse   Pin Pgsp Virtual
  1b9b35  70000000 work default shmat/mmap           L      2     2    0       2
  119ba1  70000000 work default shmat/mmap           L      1     1    0       1

위 두 예는 -P와의 차이를 보여 줍니다. 이 예들에서는 주어진 대상에 대해 지정한 크기의 페이지만 보고서에 남습니다.

영어 원문

Additional -O options

Review the additional -O options for the svmon command.

The following additional options are:

  • -O process=on: adds, for a given entity, the memory statistics of the processes belonging to the entity (user name or command name). If you specify the -@ flag, each process report is followed by a line that shows the WPAR name. This option is only valid for the User and the Command reports.

All reports containing two or more entities can be filtered and/or sorted with the following options:

  • -O sortentity=[inuse |...]: specifies the summary metric used to sort the entities (process, user, and so on) when several entities are printed in a report. The list of metrics permitted in the report depend on the type of summary (-O summary option) chosen. Any of the metrics used in a summary can be used as a sort key.

Examples

text
# svmon -P -t 5 -O summary=off -O segment=off -O sortentity=pin
Command line : svmon -P -t 5 -O summary=off -O segment=off -O sortentity=pin
Unit: page
-------------------------------------------------------------------------------
     Pid Command          Inuse      Pin     Pgsp  Virtual
  127044 dog               9443     8194        0     9443
       0 swapper           9360     8176        0     9360
    8196 wait              9360     8176        0     9360
   53274 wait              9360     8176        0     9360
  237700 rpc.lockd         9580     8171        0     9580
  • -O filtercat=[off | exclusive | kernel | shared | unused | unattached]: this option filters the output by segment category. You can specify more than one filter at a time.

Note: Use the unattached filter value with the -S report because unattached segments cannot be owned by a process or command.

Examples

text
# svmon -P 1 -O unit=KB,segment=on,sortseg=pin,filtercat=off
Unit: KB
-------------------------------------------------------------------------------
     Pid Command          Inuse      Pin     Pgsp  Virtual
       1 init             58684    28348        0    58616
    Vsid      Esid Type Description              PSize  Inuse   Pin Pgsp Virtual
       0         0 work kernel segment               s  30948 28332    0   30948
   6902f         2 work process private              s    396    16    0     396
   6c10d         d work shared library text          s  26996     0    0   26996
   a9017         f work shared library data          s    276     0    0     276
   b9015         1 clnt code,/dev/hd2:531            s     44     0    -       -
   f101c         - clnt /dev/hd4:824                 s     24     0    -       -
text
# svmon -P 1 -O unit=KB,segment=on,sortseg=pin,filtercat=shared
Unit: KB
-------------------------------------------------------------------------------
     Pid Command          Inuse      Pin     Pgsp  Virtual
       1 init             58684    28348        0    58616
    Vsid      Esid Type Description              PSize  Inuse   Pin Pgsp Virtual
   6c10d         d work shared library text          s  26996     0    0   26996
   a9017         f work shared library data          s    276     0    0     276
  • -O filtertype=[off | working | persistent | client]: this option allows you to filter on the Type column of the segment details. You can specify more than one filter at a time.

Examples

(14줄짜리 예는 위 한글 본문에 그대로 실었습니다.)

Only the client segments for process number 495618 are displayed. Note that the summary only reports the sum of the metrics displayed in the entity details. This means that the summary numbers shown here do not represent the complete memory consumption for this process, only its consumption using client segments.

  • -O filterprop=[off | notempty | data | text]: This option allows filtering on the segment property: – Data: Computational segments consisting of the pages belonging to working-storage segments or program text (executable files) segments. – Text: Non-computational segments ofFile memory (or file pages), which are the remaining pages. These pages are usually from permanent data files in persistent storage. – Notempty: Segments where the Inuse value is not 0. You can specify more than one property at a time.

Examples

(61줄짜리 예는 위 한글 본문에 그대로 실었습니다.)

  • -O filterpgsz=[off | s m | L | S]: this option filters the segment based on their page size. Multiple page size segments can be selected using multiple code letters in the form <min_size><max_size>: -O filterpgsz="sm s" filters the small page segments and the multiple page size segments with small and medium pages. For the -P report however, the behavior is slightly different. Indeed, the report contains all the processes having at least one page of the size specified with the -O filterpgsz option, and for these processes, svmon displays all their segments (whatever their page size).

Examples

(41줄짜리 예는 위 한글 본문에 그대로 실었습니다.)

In this example, all processes running large pages are reported. For these processes, all segments are displayed whatever their page size.

text
# svmon -U root -O filterpgsz=L,segment=on
Unit: page
===============================================================================
User                                 Inuse      Pin     Pgsp  Virtual
root                                 12288    12288        0    12288
    Vsid      Esid Type Description              PSize  Inuse   Pin Pgsp Virtual
  1b9b35  70000000 work default shmat/mmap           L      2     2    0       2
  119ba1  70000000 work default shmat/mmap           L      1     1    0       1
text
# svmon -C ptxtst_shm_alt_pgsz -O filterpgsz=L,segment=on
Unit: page
===============================================================================
Command                              Inuse      Pin     Pgsp  Virtual
ptxtst_shm_alt_pgsz                   12288   12288        0    12288
    Vsid      Esid Type Description              PSize  Inuse   Pin Pgsp Virtual
  1b9b35  70000000 work default shmat/mmap           L      2     2    0       2
  119ba1  70000000 work default shmat/mmap           L      1     1    0       1

The previous two examples illustrate the difference of behavior with -P. In these examples, for the given entity, only the pages of the given size are kept in the report.

자주 쓰는 형태

bash
svmon -G -O unit=MB                                # 전체 메모리(MB)
svmon -G -O summary=ame,unit=MB                    # AME 압축 정보(6.1)
svmon -P -t 10 -O unit=MB,sortentity=inuse         # 메모리 상위 10개 프로세스
svmon -U oracle -O unit=MB,segment=category        # 사용자별, 세그먼트 범주
svmon -P 12345 -O segment=on,filename=on,format=nolimit
echo "unit=MB" >> ~/.svmonrc                       # 기본 단위를 MB로