svmon 명령어 (AIX 5.3·6.1)

핵심 정리

  • 메모리의 현재 상태를 보고합니다. 플래그가 없으면 시스템 수준의 실제 메모리(전역 보고서, -G)를 보여 줍니다.
  • 보고서: -G(전역), -P [PID](프로세스), -U [사용자](사용자), -C 명령(명령별), -S [SID](세그먼트), -D SID(세그먼트 상세), -W·-T(WLM 클래스·티어), -X(XML).
  • 단위는 기본으로 페이지(4KB)이며 -O unit=MB나 unit=auto로 바꿉니다. -O를 주면 짧은(compact) 형식, 없으면 긴 형식입니다.
  • 자주 쓰는 형태: svmon -G -O unit=MB, svmon -P -O summary=basic,unit=MB -t 10, svmon -P PID -O segment=on, svmon -U -t 10.
  • -t 개수로 상위 N개, -i 간격 [횟수]로 반복, -O sortentity=inuse|pin|pgsp|virtual로 정렬합니다.
  • root가 아니면 자기 프로세스만 봅니다(aix.system.stat 역할이 있으면 root와 같음). 6.1에서 -@(WPAR)와 AME 요약이 생겼습니다.
항목 내용
버전 AIX 5.3, AIX 6.1 (6.1에서 -@, mpss·file_mem_scan·tmem·threadaffinity 옵션, AME 요약, 예제가 더해짐)
원문 IBM Commands Reference — 5.3 Volume 5, 6.1 Volume 5
파일 /usr/bin/svmon, XML 스키마 /usr/lib/perf/svmon_schema.xsd, 설정 .svmonrc
관련 명령어 vmstat, ps, topas, vmo

목적

메모리 사용 상태를 보여 줍니다.

영어 원문

Captures and analyzes a snapshot of virtual memory.

구문

보고서 구문
명령 svmon -C commands [ -O options ] [ -t count ] [ -i interval [ numintervals ] ] [ -@ [ ALL | wparnames ] ]
상세 세그먼트 svmon -D sids [ -O options ] [ -i interval [ numintervals ] ]
전역 svmon -G [ -O options ] [ -i interval [ numintervals ] ] [ -@ [ ALL | wparnames ] ]
프로세스 svmon -P [ pids ] [ -O options ] [ -t count ] [ -i interval [ numintervals ] ] [ -@ [ ALL | wparnames ] ]
세그먼트 svmon -S [ sids ] [ -O options ] [ -t count ] [ -i interval [ numintervals ] ] [ -@ [ ALL | wparnames ] ]
사용자 svmon -U [ lognames ] [ -O options ] [ -t count ] [ -i interval [ numintervals ] ] [ -@ [ ALL | wparnames ] ]
WLM 클래스 svmon -W [ classnames ] [ -O options ] [ -t count ] [ -i interval [ numintervals ] ] [ -@ [ ALL | wparnames ] ]
WLM 티어 svmon -T [ tiers ] [ -O options ] [ -a supclassname ] [ -t count ] [ -i interval [ numintervals ] ] [ -@ [ ALL | wparnames ] ]
XML svmon -X [ -o filename ] [ -i interval [ numintervals ] ] [ -c comment ] [ -O options ]

표 안의 |는 세로 막대(선택)입니다. -@는 6.1 구문에만 있습니다.

설명

svmon 명령은 메모리의 현재 상태에 대한 정보를 보여 줍니다. 다만 svmon은 인터럽트가 켜진 사용자 수준에서 돌므로, 보여 주는 정보가 메모리의 정확한 순간 사진은 아닙니다.

플래그를 지정하지 않으면 기본으로 시스템 수준의 실제 메모리를 보고합니다.

메모리 소비를 자세히 보고 다음 보고서를 만들 수 있습니다: 명령, 상세 세그먼트, 전역, 프로세스, 세그먼트, 사용자, WLM 클래스, WLM 티어, XML 보고서. 보고서는 짧은(compact) 형식이나 긴(long) 형식으로 나옵니다. -O 플래그를 주면 짧은 형식, 주지 않으면 긴 형식입니다.

영어 원문

The svmon command displays information about the current state of memory. However, the displayed information does not constitute a true snapshot of memory because the svmon command runs at user level with interrupts enabled.

If you specify no flag, the svmon command, by default, reports real memory at the system level.

You can see memory consumption details and generate the following types of reports. To see more information about a type of report, select one of the following links:

  • Command report

  • Detailed segment report

  • Global report

  • Process report

  • Segment report

  • User report

  • Workload management class report

  • Workload management tier report

  • XML report

The output of these reports can be in compact format or long format. To generate compact format report, specify the -O flag. If you do not specify the -O flag, the report is in long format.

명령 보고서(-C)

지정한 명령의 메모리 사용 통계를 보여 줍니다(-C).

  • 짧은 형식: 명령마다 한 줄 요약(-O 지정).
  • 긴 형식: 명령마다 요약, 페이지 크기별 보고, 세그먼트 상세(-O 없음).
영어 원문

The command report displays the statistics of memory use for the specified command. To print this report, specify the -C flag. The command report can be in compact format or in long format:

  • Compact report — A one line summary for each command. To set compact report as the default format, specify the -O flag.
  • Long report — A multiple lines report for each command that contains a summary, a size-per-page report, and the details of the segments. To set long report as the default format, do not specify the -O flag.

상세 세그먼트 보고서(-D)

지정한 주 세그먼트의 상세 정보를 보여 줍니다(-D). 긴 형식만 있습니다.

영어 원문

The detailed segment report displays detailed information about the primary segments that are specified. To print the detailed segment report, specify the -D flag.

The detailed segment report is in long report format only.

전역 보고서(-G)

시스템 전체에서 쓰고 있는 실제 메모리와 페이징 공간의 통계를 보여 줍니다(-G). 플래그를 주지 않으면 이 보고서가 기본입니다.

  • 짧은 형식: 시스템의 주요 지표만 한 줄(최대 160자)로.
  • 긴 형식(기본): 메모리, 페이지 크기, 친화성 도메인(affinity domain)의 요약을 여러 줄로. memory는 시스템의 메모리 소비, Page Size는 페이지 크기별 소비, Affinity Domain은 도메인별 메모리 친화성입니다.

참고(6.1): 커널 잠금(vmo의 vmm_klock_mode)이 켜져 있으면 전역 보고서의 고정(pinned) 페이지에 커널 잠금 페이지가 들어갑니다. 자세한 내용은 vmo -h vmm_klock_mode를 봅니다.

영어 원문

The global report displays the statistics of the real memory and paging space that are in use for the whole system. If you do not specify any flag, the global report is the default format of report that the svmon command generates.

To print the global report, specify the -G flag.

The global report can be in compact format or long format:

  • Compact report — A report on only the main metrics of the system. This report is one line with a maximum of 160 characters.
  • Long report — A summary of memory, page size, and affinity domain. The report is multiple lines, which is the default format of global report. By default, the following metrics are displayed: • The memory metric displays the memory consumption of the machine. • The Page Size metric displays the memory consumption of the Page Size. • The Affinity Domain metric reports the memory affinity by affinity domain.
  • Note: Pinned memory pages in the Global report of the svmon command includes kernel locked pages

when the kernal lock (vmm_klock_mode option) is enabled. For more information about the kernal lock option, refer to the vmo -h vmm_klock_mode command documentation.

프로세스 보고서(-P)

지정한 활성 프로세스의 메모리 사용을 보여 줍니다(-P). 프로세스 목록을 주지 않으면 모든 활성 프로세스를 보여 줍니다.

  • 짧은 형식: 프로세스마다 한 줄(-O 지정).
  • 긴 형식: 프로세스마다 요약, 페이지 크기별 보고, 세그먼트 상세(-O 없음).

참고(6.1): 응용 프로그램이 메모리를 풀어도 사용량이 줄어 보이지 않습니다. 풀린 메모리는 프로세스별 빈 목록으로 가고, svmon은 이를 여전히 그 응용 프로그램에 할당된 메모리로 셉니다.

영어 원문

The process report displays the memory use for the specified active process. If you do not specify a list of processes, the svmon command displays the memory use statistics for all active processes.

To print the process report, specify the -P flag.

The process report can be in compact format or long format:

  • Compact report — A one line report for each process. To set the compact report as the default format, specify the -O flag.
  • Long report — A multiple lines summary for each process. To set the long report as the default format, do not specify the -O flag. This report contains a summary for each process, a per-page-size report, and the details of the segments.
  • Note: The svmon command does not show the decrease in the count for the memory usage when the

application releases the memory. When the memory is released from the application, it goes back to the memory free list of the per-process. The svmon command accounts for the memory that is released as the allocated memory for that application.

세그먼트 보고서(-S)

지정한 세그먼트의 메모리 사용 통계를 보여 줍니다(-S). 목록을 주지 않으면 정의된 모든 세그먼트를 보여 주며, 세그먼트마다 여러 줄의 지표가 나옵니다.

영어 원문

The segment report displays the statistics of memory use for the specified segments. To display the statistics for all of the defined segments, do not specify any list.

To print the segment report, specify the -S flag.

The segment report includes metrics for each specified segment. The report contains several lines of metrics for each segment.

사용자 보고서(-U)

지정한 사용자(로그인 이름)의 메모리 사용 통계를 보여 줍니다(-U). 목록을 주지 않으면 모든 사용자를 보여 줍니다.

  • 짧은 형식: 사용자마다 한 줄(-O 지정).
  • 긴 형식: 사용자마다 요약, 페이지 크기별 보고, 세그먼트 상세.
영어 원문

The user report displays the statistics of memory use for the specified users (login names). To display the statistics for all of the users, do not specify any list of login names.

To print the user report, specify the -U flag.

The user report can be in compact format or long format:

  • Compact report — A one line report for each user. To set the compact report as the default format, specify the -O flag.
  • Long report — A multiple lines summary for each user. To set the long report as the default format, do not specify the -O flag. This report contains a summary for each user, a per-page-size report, and the details of the segments.

WLM 클래스 보고서(-W)

지정한 WLM 클래스의 메모리 사용 통계를 보여 줍니다(-W). 목록을 주지 않으면 정의된 모든 클래스를 보여 줍니다.

  • WLM이 돌고 있지 않으면 WLM must be started 메시지만 나오고 통계는 나오지 않습니다. WLM이 passive 모드면 통계 앞에 WLM is running in passive mode가 나옵니다.
  • 짧은 형식과 긴 형식(클래스마다 요약, 페이지 크기별 보고, 세그먼트 상세)이 있습니다.
영어 원문

The workload management class report displays statistics of memory use for the specified workload management classes. To display the statistics for all of the defined classes, do not specify any class.

To print the workload management class report, specify the -W flag.

Restriction: This report is available only when the Workload Manager is running. If the Workload Manager is not running, the following message is displayed and no statistics are reported: WLM must be started

If the Workload Manager is running in passive mode, the svmon command displays the following message before displaying the statistics: WLM is running in passive mode

The workload management class report can be in compact format or long format:

  • Compact report — A one line report for each class. To set the compact report as the default format, specify the -O flag.
  • Long report — A multiple lines summary for each class. To set the long report as the default format, do not specify the -O flag. This report contains a summary for each class, a per-page size report, and the details of the segments.

WLM 티어 보고서(-T)

티어 번호, 슈퍼클래스 이름, 티어에 속한 세그먼트가 실제 메모리에서 쓰는 전체 페이지 수 같은 티어 정보를 보여 줍니다(-T). 긴 형식만 있으며, WLM이 돌고 있어야 합니다(메시지는 클래스 보고서와 같음).

영어 원문

The workload management tier report displays information about the tiers, such as the tier number, the superclass name, and the total number of pages in real memory from segments belonging to the tier.

To print the tier report, specify the -T flag. Only the long report format is supported.

Restriction: This report is available only when the Workload Manager is running. If the Workload Manager is not running, the following message is displayed and no statistics are reported: WLM must be started

If the Workload Manager is running in passive mode, the svmon command displays the following message before displaying the statistics: WLM is running in passive mode

XML 보고서(-X)

-X로 XML 형식 보고서를 만듭니다. 전역 환경, 프로세스, 세그먼트, 사용자, WLM 클래스, 실행 중인 명령의 데이터가 들어갑니다.

  • 기본은 표준 출력이며, 파일로 쓰려면 파일 이름을 지정합니다(원문은 -O filename이라고 적었지만 플래그 표에서는 -o filename). 확장자는 .svm입니다.
  • .svm 파일은 /usr/lib/perf/svmon_schema.xsd의 XML 스키마(XSD)를 따르며, 스키마가 스스로 설명하므로 XML 데이터로 응용 프로그램을 만들 수 있습니다.
  • (6.1) -O affinity를 주지 않거나 off로 두면 시스템 수준의 도메인 친화성만 보고합니다.
영어 원문

You can use the svmon command with an -X flag to generate a report in XML format. The XML report contains data of the global environment, the processes, the segments, the users, the workload management classes, and the commands running on the system.

The report is by default printed to the standard output. To print the output to a file named filename, specify the -O filename flag. The extension of the output file will be .svm.

The .svm file uses an XML Schema Definition (XSD) that the /usr/lib/perf/svmon_schema.xsd file defines. You can use the XML data in the XML reports to build custom applications because the schema is self-documented.

In the XML report, if you do not specify the -O affinity argument, or set it to the off value, only the domain affinity at system level is reported.

플래그

플래그를 주지 않으면 -G가 기본입니다.

플래그 설명
-@ [ALL | wparnames] WPAR 보고서를 보여 줍니다. ALL은 전역 보고서부터 모든 WPAR을 이름 순으로, WPAR 이름 목록은 주어진 순서대로 처리하며 보고서마다 WPAR 이름 머리글로 나눕니다. 이때 보이는 정보는 그 WPAR 안에서만 의미가 있습니다(예: PID는 WPAR 안의 가상 PID). 목록 없이 -@만 주면 기존 보고서에 WPAR 정보(이름, 가상 PID)를 더합니다. WPAR 안에서는 쓸 수 없습니다. 6.1부터
-a supclassname 티어 보고서(-T)에서 범위를 그 슈퍼클래스의 하위 클래스로 제한합니다.
-c comment XML 보고서에 주석을 넣습니다. -X와 함께 씁니다.
-C commands 지정한 명령을 실행하는 프로세스의 메모리 사용 통계를 보여 줍니다.
-D sids 지정한 세그먼트의 메모리 사용 통계와 세그먼트마다 모든 프레임의 상세 상태를 보여 줍니다.
-G 전역 보고서를 보여 줍니다.
-i interval [numintervals] interval초마다 통계를 모아 출력하고, numintervals번 되풀이합니다. 횟수가 없으면 Ctrl+C로 멈출 때까지 돕니다. 일부 옵션은 통계를 모으는 데 몇 초가 걸려 실제 간격이 더 길 수 있습니다.
-o filename XML 보고서의 출력 파일을 지정합니다. -X와 함께 씁니다.
-O options 보고서의 내용과 표시 방식을 바꿉니다(아래 옵션). 명령을 실행하는 디렉터리에 .svmonrc 설정 파일을 두면 기본값을 바꿀 수 있습니다.
-P [pids] 지정한 프로세스의 메모리 사용 통계를 보여 줍니다.
-S [sids] 지정한 세그먼트(16진수, 주 세그먼트)의 메모리 사용 통계를 보여 줍니다. 목록이 없으면 정의된 모든 세그먼트입니다.
-t count 상위 count개만 출력합니다.
-T [tiers] 지정한 티어 번호의 모든 클래스의 메모리 사용 통계를 보여 줍니다. 목록이 없으면 정의된 모든 티어입니다.
-U [lognames] 지정한 로그인 이름의 메모리 사용 통계를 보여 줍니다. 목록이 없으면 정의된 모든 로그인입니다.
-W [classnames] 지정한 WLM 클래스의 메모리 사용 통계를 보여 줍니다. 목록이 없으면 정의된 모든 클래스입니다.
-X XML 보고서를 만듭니다.
영어 원문

If no command line flag is given, then the -G flag is the default.

  • -@ [ ALL | wparnames ] — Displays report for the workload partitions. The -@ ALL option specifies to display the report for all of the WPAR starting with the global report, and to process all of the available WPAR, sorting them by the name. When you specify a list of WPAR names in the wparnames parameter, the WPAR information is displayed in a header, and the report is displayed without adding WPAR information. All information displayed is restricted to the WPAR that was processed and has meaning only inside the WPAR. For example, the pid displayed is virtual pid, which is the pid inside the WPAR. The same rule applies to the svmon options. Each WPAR name in the list is processed in the given order and each svmon report is separated by the WPARname header. When you do not specify a list, the svmon command adds WPAR information to existing reports. The pid section and segments section of the report contain the WPAR name when one is available. Virtual pid information might also be displayed. When all of the keywords are used, the svmon command processes all of the available WPAR, sorting them by the WPAR name. Note: The -@ flag is not supported when executed within a workload partition.
  • -a supclassname — Restricts the scope to the subclasses of the supclassname parameter (in the Tier report that is returned with the -T flag).
  • -c < comment > — Adds a comment, specified by the comment parameter, into the XML report. Use the -c flag with the -X flag.
  • -C commands — Displays memory use statistics for the processes running the commands that are specified by the commands parameter.
  • -D sids — Displays memory use statistics for the segments that the sids parameter specifies, and a detail status of all of the frames of each segment.
  • -G — Displays a global report.
  • -i interval [ numintervals ] — Displays statistics repetitively. The svmon command collects and prints statistics in the interval that the interval parameter specifies. The numintervals parameter specifies the number of repetitions. If the numintervalsparameter is not specified, the svmon command runs until you interrupt it (Ctrl+C). Tip: The observed interval might be larger than the specified interval because it might take a few seconds to collect statistics for some options.
  • -o filename — Specifies the output file with the filename parameter for XML reports. Use this flag with the -X flag.
  • -O options — Changes the content and presentation of the reports that the svmon command generates. You can specify values to the options parameter to modify the output. Tip: To overwrite the default values that are defined previously by the -O options flag, you can define the .svmonrc configuration file in the directory where the svmon command is launched.
  • -P [ pids ] — Displays the memory-usage statistics for the processes that the pids parameter specifies.
  • -S [ sids ] — Displays the memory-usage statistics for segments that the sids parameter specifies. The sids parameter is a hexadecimal value. The segment IDs (SIDs) that are specified must be of primary segments. If you do not specify a list of SIDs, the statistics of memory use are displayed for all of the defined segments.
  • -t count — Displays the top object in the count parameter to be printed.
  • -T [ tiers ] — Displays the memory-usage statistics of all of the classes of the tier numbers that the tiers parameter specifies. If you do not specify a list of tiers, the statistics of memory use are displayed for all of the defined tiers.
  • -U [ lognames ] — Displays the memory-usage statistics for the login name that the lognames parameter specifies. If you do not specify a list of login identifiers, the statistics of the memory use are displayed for all of the defined login identifiers.
  • -W [ classnames ] — Displays the memory-usage statistics for the Workload Manager class that the classnames parameter specifies. If you do not specify a list of class names, the statistics of memory usage are displayed for all of the defined class names.
  • -X — Generates the XML report.

매개변수

매개변수 설명
commands 명령 보고서(-C)에 넣을 명령. 실행 파일의 정확한 기본 이름이며 여럿 지정할 수 있습니다.
options -O로 줄 보고서 옵션. 쉼표로 나누거나, 따옴표로 감싸 쉼표·빈칸으로 나눕니다(아래 표).
count 출력할 상위 개수(-t)
interval, numintervals 통계를 모아 출력하는 간격과 되풀이 횟수(-i)
ALL, wparnames -@의 대상(6.1)
sids 세그먼트 ID. 주 세그먼트여야 합니다.
pids 프로세스 ID(10진수). 없으면 모든 활성 프로세스
lognames 정확한 로그인 이름. 없으면 모든 로그인
classnames 정확한 WLM 클래스 이름. 하위 클래스는 슈퍼클래스.하위클래스
tiers 티어 번호. 없으면 모든 티어
supclassname 하위 클래스를 제한할 슈퍼클래스 이름(목록은 안 됨)
filename 출력 파일 이름. 확장자 .svm이 없으면 자동으로 붙음(-o, -X와 함께)
comment XML 보고서의 <CollectionHeader><Comment>에 넣을 문자열(-X, -c와 함께)

-O의 옵션

옵션 값(기본) 뜻
activeuser on, off(off) 활성 사용자만 보여 줌(-U)
affinity on, detail, off 메모리 친화성 도메인 정보. detail은 세그먼트 수준까지
commandline on, off 프로세스의 전체 명령줄을 보여 줌
file_mem_scan on, off(off) 파일 시스템이 갱신하지 않는 파일(원격 파일 등)의 세그먼트 정보를 얻으려고 세그먼트 표 전체를 훑음(6.1)
filename on, off(off) 파일 세그먼트마다 파일 이름을 보여 줌. 조심해서 씀
filtercat off, exclusive, kernel, shared, unused, unattached 세그먼트를 범주로 거름. unattached는 어떤 프로세스도 쓰지 않는 공유 메모리 세그먼트(6.1 설명)
filterpgsz off, s, m, L, S 페이지 크기로 거름(s 4KB, m 64KB, L 16MB, S 16GB). 6.1은 최소최대 형태로 범위도 지정
filterprop off, notempty, data, text 세그먼트 속성으로 거름
filtertype off, working, persistent, client 세그먼트 형식으로 거름(작업, 영구(JFS 등), 클라이언트(NFS·JFS2 등))
format 80, 160, nolimit 출력 폭
frame on, off 프레임 수준 상세(-D)
mapping on, off(off) mmap 세그먼트의 원본 세그먼트를 보여 줌. 프로세스 주소 공간 밖이면 * 표시
mpss on, off(off) 혼합 페이지 크기 세그먼트를 페이지 크기별로 나눔(6.1)
overwrite on, off XML 출력 파일을 덮어씀
pgsz on, off(off) 페이지 크기별 절을 보여 줌
pidlist on, number, off 세그먼트마다 PID 목록이나 PID 수를 보여 줌
process on, off(off) 대상(명령, 사용자, 클래스)에 속한 프로세스 목록
range on, off 세그먼트 안에서 할당된 페이지 범위
segment on, category, off 세그먼트 상세를 보여 줌(category는 범주별로 묶음)
shmid on, off 공유 메모리 ID를 보여 줌
sortentity inuse, pin, pgsp, virtual(inuse) 보고서를 실제 메모리, 고정 메모리, 페이징 공간, 가상 메모리 소비가 큰 순서로 정렬
sortseg inuse, pin, pgsp, virtual 세그먼트를 같은 기준으로 정렬
subclass on, off WLM 하위 클래스를 보여 줌
summary basic, longreal, ame, longame(basic) 요약 형식. longreal은 실제 메모리를 160열 긴 형식으로, ame·longame은 AME 정보(-G만, 6.1)
svmonalloc on, off svmon 자신이 쓴 메모리를 보여 줌
timestamp on, off 시각을 보여 줌
tmem on, off(on) 끝에 실제 메모리(true memory) 상세를 붙임. summary=ame일 때(-G, 6.1)
unit auto, page, KB, MB, GB, TB(page) 지표의 단위

옵션마다 쓸 수 있는 보고서(범위)가 다릅니다. 범위와 옵션별 자세한 설명은 영어 원문을 봅니다. 예제 22의 threadaffinity(6.1)는 프로세스 스레드의 홈 SRAD와 친화성 통계를 보여 줍니다.

영어 원문
  • commands — Specifies the commands to be reported in the command report ( -C ). The value of the commands parameter is a string. You can specify more than one command. The value of the commands parameter is the exact base name of an executable file.
  • options — Specifies the content and presentation of each report. Use this parameter with the -O flag. The values of the options parameter must be separated by commas, or enclosed in quotation marks (“ ”) and separated by commas or spaces. The following values are valid to the options parameter. Tip: The scope specifies the reports that support the value. • activeuser = [ on | off ] The activeuser argument specifies that the svmon command displays only the active user. – Default value: off – Scope: User report ( - U ) You can specify the following values to the activeuser option: on Displays only the active user. off Displays all of the user. • affinity = [ on | detail | off ] The affinity argument specifies that the svmon command displays the memory affinity at process level or segment level. – Default value: off – Scope: Global report ( -G ), process report ( -P ), and segment report ( -S ) You can specify the following values to the affinity option: on Displays memory affinity at process level detail Displays memory affinity at segment level off Does not display the memory affinity In the XML report, if you do not specify the -O affinity argument, or set it to the off value, only the domain affinity at system level is reported. Note: 1. Use the -O affinity = detail argument with caution. 2. The summary argument with the value of longreal or longname is not supported with the affinity argument. • commandline = [ on | off ] The commandline argument specifies that the svmon command displays the command that is used for the current report. – Default value: off – Scope: All reports You can specify the following values to the commandline option: on Displays the command that is used for the current report off Does not display the command that is used for the current report

| |

  • options — ( Continued description of the valid values for the options parameter). • file_mem_scan = [ on | off ] If the segment information for some files, such as remote files is not updated by the file system, by default, value of the svmon command does not collect the segment information for those files. By turning file_mem_scan=on, the svmon command scans the entire system's segment table to gather segment information of those files. – Default value: off – Scope: Command report ( -C ), process report ( -P ), segment report ( -S ), workload management tier report ( -T ), user report ( -U ), and workload management class report ( -W ), global report when affinity is on ( -G -O affinity = on) You can specify the following values for the file_mem_scan option: on Displays the report with client segments for all files including the files for which the segment information is not updated by the file system. off Displays the report with client segments for all files excluding the files for which the segment information is not updated by the file system. Note: If you use the value of file_mem_scan = on, the performance might be impacted based on the number of files opened while running the command and the number of segments in the system.
  • options — ( Continued description of the valid values for the options parameter). • filename = [ on | off ] The filename argument specifies that the svmon command displays the file names of each file segment. – Default value: off – Scope: Command report ( -C ), process report ( -P ), segment report ( -S ), workload management tier report ( -T ), user report ( -U ), and workload management class report ( -W ) You can specify the following values to the filename option: on Displays the file names of each file segment off Does not displays the file name of each file segment Note: Use the filename argument with caution. • filtercat = [ off exclusive kernel shared unused unattached ] The filtercat argument specifies that the svmon command filters the segments by category. – Default value: off – Scope: Command report ( -C ), process report ( -P ), segment report ( -S ), workload management tier report ( -T ), user report ( -U ), and workload management class report ( -W ) You can specify the following values to the filtercat option to filter the segments by category: kernel Filters the kernel segments. exclusive Filters the exclusive segments. The exclusive segments are used by only one process, except the shared-memory segments that are always reported as either shared or unattached. shared Filters the shared segments. The shared segments are used by more than one process, or shared-memory segments used by at least one process. unused Filters the unused segments. The unused segments are not used by any processes. unattached Filters the unused shared-memory segments. The unattached segments are shared-memory segments that are not used by any process. off Deactivates the filter. The off option is the same as the command -O filtercat = "kernel exclusive shared unused". Note: The filtercat option changes the value of the reported basic metrics in the summary header because it adds or removes segments from the report.
  • options — ( Continued description of the valid values for the options parameter). • filterpgsz = [ off s m L S ] The filterpgsz argument specifies that the svmon command filters the segments by page size. – Default value: off – Scope: Command report ( -C ), detailed segment report ( -D ), process report ( -P ), segment report ( -S ), workload management tier report ( -T ), user report ( -U ), and workload management class report ( -W ) You can specify the following values to the filterpgsz option to filter the segments by page size: Filters the segments that are 4 KB (small) in page size m Filters the segments that are 64 KB (medium) in page size L Filters the segments that are 16 MB (large) in page size S Filters the segments that are 16 GB (supreme) in page size off Deactivates the filterpgsz option Note: The filterpgsz argument changes the values of the reported metrics in the summary header, because it adds or removes segments from the report. To filter segments of different page sizes, you can specify various parameters in the form of <min_size><max_size>. For example, to filter the segments with small page size and the segments with small and medium page sizes, enter the following command: svmon -O filterpgsz="sm s" • filterprop = [ off notempty data text ] The filterprop argument specifies that the svmon command filters the segments report by property. – Default value: off – Scope: Command report ( -C ), process report ( -P ), segment report ( -S ), workload management tier report ( -T ), user report ( -U ), and workload management class report ( -W ) You can specify the following values to the filterprop option to filter the segments by property: notempty Filters the segments with value that is in use and is not equal to zero data Filters the data segments, which are computational text Filters the text segments, which are not computational off Deactivates the filterprop option Note: The filterprop argument changes the value of the reported basic metrics in the summary header because it adds or removes segments from the report.
  • options — ( Continued description of the valid values for the options parameter). • filtertype = [ off working persistent client ] The filtertype argument specifies that the svmon command filters the segments by type. – Default value: off – Scope: Command report ( -C ), process report ( -P ), segment report ( -S ), workload management tier report ( -T ), user report ( -U ), and workload management class report ( -W ) You can specify the following values to the filtertype option to filter the segments by type: working Filters the working segments persistent Filters the persistent segments, such as the segments on journaled file system (JFS) client Filters the client segments, such as the segments on enhance journaled file system (JFS2) or network file system (NFS) off Deactivates the filtertype option, which is the same as the -O filtertype = "working persistent client" command Note: The filtertype argument changes the value of the reported basic metrics in the summary header, because it adds or removes segments from the report. • format = [ 80 | 160 | nolimit ] The format argument specifies the maximum width, in characters, for the output of the svmon command. – Default value: 80 – Scope: Command report ( -C ), process report ( -P ), segment report ( -S ), workload management tier report ( -T ), user report ( -U ), and workload management class report ( -W ) You can specify the following values to the format option: 80 Limits the width of the output to 80 characters. In a process report, some fields are truncated. In a segment report, some fields are displayed on separate lines. 160 Limits the width of the output to 160 characters. In a process report, some fields are truncated. In a segment report, some fields are displayed on separate lines. nolimit Does not limit the width in character. Does not truncate fields or display them in separate lines. Some columns of the report might be shifted. Tip: You can use the summary argument to force the value of the format option to 160 characters. • frame = [ on | off ] The frame argument specifies that the svmon command displays the information per frame. – Default value: off – Scope: Detailed segment report ( -D ) You can specify the following values to the frame option: on Displays the information per frame off Displays the report automatically
  • options — ( Continued description of the valid values for the options parameter). • mapping = [ on | off ] The mapping argument specifies that the svmon command displays the source segments that are associated with the segments that are created by the mmap subroutine (also known as the mmap segments). When the source segments do not pertain to the process address space and the mapping = on value is specified, the source segments are integrated into the report and are flagged with an asterisk (*). – Default value: off – Scope: Command report ( -C ), process report ( -P ), segment report ( -S ), workload management tier report ( -T ), user report ( -U ), and workload management class report ( -W ) You can specify the following values to the mapping option: on Displays the source segments that are associated to the segments created by the mmap subroutine off Does not display the source segments that are associated with the segments created by the mmap subroutine Note: The mapping argument changes the values of the reported metrics in the summary header because it adds or removes segments from the report. • mpss = [ on | off ] The mpss argument breaks down the value of the mixed page size segment into individual page sizes. – Default value: off – Scope: Command report ( -C ), process report ( -P ), segment report ( -S ), workload management tier report ( -T ), user report ( -U ), and workload management class report ( -W ) You can specify the following values to the mpss option: on Breaks down the value of the mixed page size segment into individual page sizes off Does not break down the value of the mixed page size segment • overwrite = [ on | off ] The overwrite argument overwrites the XML file that the svmon command produced. – Default value: on – Scope: XML report ( -X ) You can specify the following values to the overwrite option: on Overwrites the XML file that the svmon command generated off Does not overwrite the XML file
  • options — ( Continued description of the valid values for the options parameter). • pgsz = [ on | off ] The pgsz argument specifies that the svmon command displays the sections per page size. – Default value: off – Scope: Command report ( -C ), process report ( -P ), workload management tier report ( -T ), user report ( -U ), and workload management class report ( -W ) You can specify the following values to the pgsz option: on Displays the sections per page size off Displays the report automatically • pidlist = [ on | number | off ] The pidlist argument specifies that the svmon command displays a list of process IDs (PIDs) or the number of different PIDs for each segment. – Default value: off – Scope: Command report ( -C ), process report ( -P ), segment report ( -S ), workload management tier report ( -T ), user report ( -U ), and workload management class report ( -W ) You can specify the following values to the filename option: on Displays a list of process IDs for each segment. For special segments, a label is displayed instead a list of process IDs. The following labels are displayed: – System segment: Labels the segments that are flagged as system segments – Unused segment: Labels the segments that are not used by any existing processes. For example, persistent segments that are relative to the files that are no longer in use. – Unattached segment: Labels the shared-memory segments that are not used by any existing processes. – Shared-library text: Labels the segments that contain a shared library. The shared library can be used by most of the processes. This label prevents the display of a long list of processes. number Displays the number of different process IDs for each segment. off Does not displays the list or number of process IDs for each segment.
  • options — ( Continued description of the valid values for the options parameter). • process = [ on | off ] The process argument specifies that the svmon command displays the list of the processes that belong to the entity. – Default value: off – Scope: Command report ( -C ), user report ( -U ), and workload management class report ( -W ) You can specify the following values to the process option: on Displays the list of the processes that belong to the entity off Does not display the list of processes that belong to the entity • range = [ on | off ] The range argument specifies that the svmon command displays the ranges of pages within the segments that have been allocated. – Default value: off – Scope: Command report ( -C ), process report ( -P ), segment report ( -S ), workload management tier report ( -T ), user report ( -U ), and workload management class report ( -W ) You can specify the following values to the range option: on Displays the ranges of pages within the allocated segments off Does not display the ranges of pages within the allocated segments • segment = [ on | category | off ] The segment argument specifies that the svmon command displays the segment statistics for entities. – Default value: off – Scope: Command report ( -C ), process report ( -P ), workload management tier report ( -T ), user report ( -U ), and workload management class report ( -W ) You can specify the following values to the segment option: on Displays a unique segment list. The segments are sorted by the values of the sortseg argument. category Groups the segments in three categories: system, exclusive, and shared. The segments in each category are sorted by the values of the sortseg argument. off Does not display the segment lists. • shmid = [ on | off ] The shmid argument displays the shared-memory ID that is associated with a shared-memory segment. Restriction: The shmid argument cannot work with a workload partitionworkload partition. – Default value: off – Scope: Command report ( -C ), process report ( -P ), segment report ( -S ), workload management tier report ( -T ), user report ( -U ), and workload management class report ( -W ) You can specify the following values to the shmid option: on Displays the shared-memory ID associated to a shared-memory segment off Does not display the shared-memory ID associated to a shared-memory segment Note: Use the shmid argument with caution.
  • options — ( Continued description of the valid values for the options parameter). • sortentity = [ inuse | pin | pgsp | virtual ] The sortentity argument specifies the method for the svmon command in sorting the reports. – Default value: inuse – Scope: Command report ( -C ), process report ( -P ), segment report ( -S ), workload management tier report ( -T ), user report ( -U ), and workload management class report ( -W You can specify the following values to the sortentity option to sort the reports: inuse Sorts the reports in decreasing order of real memory consumption pin Sorts the reports in decreasing order of pinned memory consumption pgsp Sorts the reports in decreasing order of paging space consumption virtual Sorts the reports in decreasing order of virtual memory consumption • sortseg = [ inuse | pin | pgsp | virtual ] The sortseg argument specifies the method for the svmon command in sorting the segment reports. – Default value: inuse – Scope: Command report ( -C ), process report ( -P ), segment report ( -S ), workload management tier report ( -T ), user report ( -U ), and workload management class report ( -W ) You can specify the following values to the sortseg option to sort the segment reports: inuse Sorts the segments in decreasing order of real memory consumption pin Sorts the segments in decreasing order of pinned memory consumption pgsp Sorts the segments in decreasing order of paging space consumption virtual Sorts the segments in decreasing order of virtual memory consumption • subclass = [ on | off ] The subclass specifies that the svmon command displays the statistics of memory use for the subclass of the workload management classes. – Default value: off – Scope: Workload management tier report ( -T ) and workload management class report ( -W ) You can specify the following values to the subclass options: on Displays the statistics of memory use of the workload management classes' subclasses off Does not display the statistics of memory use of the workload management classes' subclasses
  • options — ( Continued description of the valid values for the options parameter). • summary = [ basic | longreal | ame | longame ] The summary argument specifies the format to display the summary for the svmon command. – Default value: basic – Scope: Command report ( -C ), global report ( -G ), process report ( -P ), user report ( -U ), and workload management class report ( -W ) summary = [ ame | longame ] is available only with global report (-G). You can specify the following values to the summary option: basic Displays the basic headers for the svmon command longreal Displays the real memory information in a long format (160 columns per line). Note: The summary argument with the value of longreal is supported along with the -G flag only. ame Displays the Active Memory™Expansion information (in an Active Memory Expansion enabled system). longame Displays the Active Memory Expansion information (in an Active Memory Expansion enabled system) in a long format. • svmonalloc = [ on | off ] The svmonalloc argument specifies that the svmon command displays the maximum size of the memory that it dynamically allocated during its processing. – Default value: off – Scope: All reports You can specify the following values to the svmonalloc options: on Displays the maximum size of the allocated memory off Does not display the maximum size of the allocated memory • threadaffinity= [ on | off ] The threadaffinity argument specifies that the svmon command displays the home SRADIDs (Scheduler Resource Allocation Domain Identifier) and the thread SRAD (Scheduler Resource Allocation Domain) affinity statistics for the threads of a process. – Default value: off – Scope: Process report (-P) You can specify the following values to the threadaffinity option: on Displays the home SRADIDs and thread SRAD affinity statistics for the threads of a process. off Does not display the home SRADIDs and thread SRAD affinity statistics for the threads of a process. • timestamp = [ on | off ] The timestamp argument specifies that the svmon command displays the timestamp at the beginning of the report. – Default value: off – Scope: Command report ( -C ), process report ( -P ), segment report ( -S ), workload management tier report ( -T ), user report ( -U ), and workload management class report ( -W ) You can specify the following values to the timestamp option: on Displays the time stamp at the beginning of the report off Does not display the time stamp at the beginning of the report
  • options — ( Continued description of the valid values for the options parameter). • tmem = [ on | off ] The tmem argument specifies the svmon command to append the true memory details. – Default value: on – Scope: Global report (-G). You can specify the following values to the tmem option. on Displays the true memory information at the end of the report off Does not display the true memory information. Note: The summary argument must have the value of ame. • unit = [ auto | page | KB | MB | GB | TB ] The unit argument modifies the metrics unit of the report. – Default value: page – Scope: Command report ( -C ), process report ( -P ), segment report ( -S ), workload management tier report ( -T ), user report ( -U ), and workload management class report ( -W ) You can specify the following values to the unit option: auto Expresses the values in the most appropriate unit with at most three significant digits. The unit used in the report is specified for each metric. page Expresses the values in 4 KB page units. The unit used in the report is specified in the report header. KB Expresses the values in kilobytes (KB) MB Expresses the values in megabytes (MB) GB Expresses the values in gigabytes (GB) TB Expresses the values in terabytes (TB) Tip: To overwrite the default values that are defined previously by the -O options flag, you can define the .svmonrc configuration file in the directory where the svmon command is launched.
  • count — Specifies the top object to be printed. Use the count parameter with the -T flag.
  • interval — Specifies the interval for the svmon command to collect and print statistics. Use the interval parameter with the -i flag.
  • numintervals — Specifies the number of repetitions for the svmon command to collect and print statistics when the interval parameter is specified. Use the numintervals parameter with the -i interval option. If the numintervalsparameter is not specified, the svmon command runs until you interrupt it (Ctrl+C).
  • ALL — Specifies that the -@ flag displays the report for all of the WPAR starting with the global report, and then process all of the available WPAR, sorting them by the WPAR name.
  • wparnames — Specifies the workload partitions whose information is to be displayed. When you specify the -@ wparnames option, all of the information displayed is restricted to the WPAR that the wparnames parameter specifies, and has meaning only inside the WPAR. Each WPAR name in the list is processed in the given order and each svmon report is separated by the WPARname header.
  • sids — Specifies the segment IDs (SIDs). The SIDs must be primary segments.
  • pids — Specifies the process IDs (PIDs). The value of the pids parameter is a decimal value. If you do not supply any list of process IDs (PIDs), the statistics of memory use are displayed for all active processes. Use the pids parameter with the -P flag.
  • lognames — Specifies the login names. The value of the lognames parameter is a string. It is an exact login name. If you do not specify any lists of login identifiers, the statistics of the memory use are displayed for all of the defined login identifiers. Use the lognames parameter with the -U flag.
  • classnames — Specifies the Workload Manager class. The value of the classnames parameter is a string. It is the exact name of a class. For a subclass, the name should be in the form superclassname.subclassname.
  • tiers — Specifies a tier number for the classes. If you do not specify a list of tiers, the statistics of memory use are displayed for all of the defined tiers. Use the tiers parameter with the -T flag.
  • supclassname — Specifies the name of the superclass that the subclasses are restricted to. You cannot specify a list of classes for this flag.
  • filename — Specifies the name of the output file. It is an alpha-numeric string. The suffix of the output file name is .svm. It is automatically added to the file name if you do not specify the suffix. Use the filename parameter with the -o flag and the -X flag.

|

  • comment — Specifies the string to add in the <CollectionHeader><Comment> tag of the XML report. Use the comment parameter with the -X flag and the -c flag.

보안

모든 사용자가 svmon을 실행할 수 있습니다. root가 아니면 자기 프로세스만 보입니다. RBAC가 켜져 있고 사용자에게 aix.system.stat 역할이 있으면 root와 같은 범위를 볼 수 있습니다.

영어 원문

Any user can run the svmon command. If the user is not a root user, the view will be limited to the user's own processes.

If RBAC is activated and the aix.system.stat role that is attributed to the user, the user can see the same view that the root user does.

예제

명령 하는 일
svmon -G -O summary=longreal -i 60 30 30분 동안 1분마다 전역 통계를 한 줄 형식으로
svmon -G -O unit=auto,timestamp=on,pgsz=on,affinity=detail 단위 자동, 시각, 페이지 크기별, 상세 친화성 정보를 넣은 전역 통계
svmon -G -O summary=longreal -@ ALL 시스템과 모든 WPAR의 전역 통계를 짧은 형식으로(6.1)
svmon -P -O summary=basic,unit=MB 모든 프로세스의 메모리 소비(MB)를 짧은 형식으로
svmon -P -O segment=on,sortentity=virtual,sortseg=pgsp 모든 프로세스를 가상 페이지 수로, 세그먼트는 페이징 공간 페이지 수로 정렬
svmon -P 123456 -O segment=on,pidlist=on,range=on,mapping=on,shmid=on,filename=on,affinity=detail 프로세스 123456의 메모리 소비를 최대한 자세히
svmon -S -t 10 -O filtercat=kernel,sortseg=inuse 실제 메모리 페이지 수로 정렬한 시스템(커널) 세그먼트 상위 10개
svmon -S -O filtercat=unattached 프로세스에 붙어 있지 않은 모든 세그먼트
svmon -S -O filterpgsz=L -O range=on 16MB 세그먼트만, 주소 범위와 함께
svmon -S -@ 전역 WPAR에서 세그먼트마다 속한 WPAR 이름(6.1)
svmon -C oracle -O summary=basic,filtercat=shared 모든 Oracle 프로세스의 공유 세그먼트만 짧은 형식으로
svmon -U -t 10 -O summary=basic -i 60 1분마다 메모리를 가장 많이 쓰는 사용자 상위 10명
svmon -W Mysupclass -O subclass=on 슈퍼클래스 Mysupclass와 하위 클래스의 메모리 사용
svmon -T 0 -a Mysupclass Mysupclass의 티어 0 하위 클래스의 메모리 사용
svmon -D 36cfb -O frame=on 세그먼트 36cfb의 프레임을 프레임 수준 상세로
svmon -X -o lpar01.svm, svmon -X -o lpar01 lpar01.svm 파일에 XML 보고서
svmon -X -o lpar_affinity -O affinity=on 친화성 도메인 상세가 있는 XML 보고서
svmon -X -o lpar_affinitydet -O affinity=detail 세그먼트 수준 친화성 상세가 있는 XML 보고서
svmon -G -O summary=ame 메모리 압축 상세와 끝에 실제 메모리 상세(6.1)
svmon -G -O summary=ame,tmem=off 메모리 압축 상세, 실제 메모리 상세는 끔(6.1)
svmon -G -O summary=longame AME 상세를 한 줄 형식으로(6.1)
svmon -P 1 -O threadaffinity=on 프로세스 스레드의 홈 SRAD ID와 SRAD 친화성 통계(6.1)

원문 예제의 명령 앞 #은 root 셸 안내 문구입니다.

영어 원문
  1. To display global statistics in a one line format every minute for 30 minutes, enter the following command:
# svmon -G -O summary=longreal -i 60 30
  1. To display global statics with automatic unit selection, a time stamp, per page size data, and detailed affinity information, enter the following command:
# svmon -G -O unit=auto,timestamp=on,pgsz=on,affinity=detail
  1. To display global statistics for the system and all of its WPAR in a compact format, enter the following command:
# svmon -G -O summary=longreal -@ ALL
  1. To display the memory consumption in megabytes (MB) of all processes in a compact report, enter the following command:
# svmon -P -O summary=basic,unit=MB
  1. To display the memory consumption of all processes according to the number of virtual pages, and sort the segments for each process by the number of pages in the paging space, enter the following command:
# svmon -P -O segment=on,sortentity=virtual,sortseg=pgsp
  1. To display the memory consumption of process 123456 in full detail, enter the following command:
# svmon -P 123456 -O segment=on,pidlist=on,range=on,mapping=on,shmid=on,filename=on,affinity=detail
  1. To display the top 10 system segments sorted by the number of pages in real memory, enter the following command:
# svmon -S -t 10 -O filtercat=kernel,sortseg=inuse
  1. To display all of the segments that are not attached to a process, enter the following command:
# svmon -S -O filtercat=unattached
  1. To display only 16 MB segments with their address ranges, enter the following command:
# svmon -S -O filterpgsz=L -O range=on
  1. In the global WPAR, to display the WPAR name that each segment belongs to, enter the following command:
# svmon -S -@
  1. To display the memory consumption of all Oracle processes in a compact report for only the shared segments, enter the following command:
# svmon -C oracle -O summary=basic,filtercat=shared
  1. To display the top 10 users running the processes that consume the most memory every minute, enter the following command:
# svmon -U -t 10 -O summary=basic -i 60
  1. To display the memory use for the Mysupclass superclass with its subclasses, enter the following command:
# svmon -W Mysupclass -O subclass=on
  1. To display the memory use for the 0 tier subclasses of the Mysupclass superclass, enter the following command:
# svmon -T 0 -a Mysupclass
  1. To display the frames that belong to the 36cfb segment with frame level details, enter the following command:
# svmon -D 36cfb -O frame=on
  1. To generate an XML report in the lpar01.svm file, enter the following command:
# svmon -X -o lpar01.svm
# svmon -X -o lpar01
  1. To generate an XML report with affinity domain details, enter the following command:
# svmon -X -o lpar_affinity -O affinity=on
  1. To generate an XML report with affinity domain details at the segment level, enter the following command:
# svmon -X -o lpar_affinitydet -O affinity=detail
  1. To display global statistics with memory compression details along with true memory snapshot at the end, enter the following command:
# svmon -G -O summary=ame
  1. To display global statistics with memory compression details with true memory details turned-off, enter the following command
# svmon -G -O summary=ame,tmem=off
  1. To display global statistics with Active Memory Expansion details (in an Active Memory Expansion enabled system) in a one line format, enter the following command
# svmon -G -O summary=longame
  1. To display the home SRADIDs and thread SRAD affinity statistics for the threads of a process, enter:
# svmon -P 1 -O threadaffinity=on

리눅스(GNU)와 다른 점

리눅스에는 같은 도구가 없으며, 비슷한 정보는 free, /proc/meminfo, smem, pmap -x PID, ps -o rss,vsz로 봅니다. AIX ps의 RSS·SZ보다 svmon -P가 공유 세그먼트와 페이징 공간까지 정확히 나눠 보여 주므로, AIX에서 프로세스별 실제 메모리를 볼 때는 svmon을 씁니다.