lparstat 명령어 (AIX 5.3·6.1)
https://archive.horanglab.com/posts/aix-cmd-lparstat
핵심 정리
- 논리 파티션(LPAR)의 구성 정보와 사용률 통계를 보고합니다.
lparstat 2 5는 2초 간격으로 5번입니다. lparstat -i는 파티션 이름·번호, 유형(Shared·Dedicated, SMT), 모드(capped·uncapped), 할당 용량, 가상 CPU, 메모리, 풀 정보를 보여 줍니다. 구성 확인에 가장 많이 씁니다.- 사용률 열:
%user·%sys·%idle·%wait(할당 용량 대비),physc(소비한 물리 프로세서),%entc(할당 용량 소비 비율),lbusy,app(풀의 쓸 수 있는 프로세서),vcsw,phint. -h는 하이퍼바이저 요약(%hypv,hcalls),-H는 하이퍼바이저 호출별 상세를 보여 줍니다(root만).- 6.1:
-m(공유 메모리·I/O 메모리 할당),-e(I/O 메모리 풀),-p(페이지 합치기),-c(AME),-E(SPURR 기반),-W(WPAR),-t(시각). - 간격이 없으면 부팅 뒤 통계를 한 번 보여 줍니다.
-i에는 간격을 쓸 수 없습니다.
| 항목 | 내용 |
|---|---|
| 버전 | AIX 5.3, AIX 6.1 (5.3은 -i, -d, -h, -H만 있고, 6.1에서 -W, -m, -e, -p, -c, -E, -t, -o, -r, -R이 더해짐) |
| 원문 | IBM Commands Reference — 5.3 Volume 3, 6.1 Volume 3 |
| 파일 | /usr/bin/lparstat |
| 관련 명령어 | mpstat, vmstat, iostat, sar, topas -L |
목적
논리 파티션(LPAR)의 정보와 통계를 보고합니다.
영어 원문
Reports logical partition (LPAR) related information and statistics.
구문
lparstat { -i [ -W ] | -W | -d | -m [ -e [ r | R ] [ -p [ w ] ] ] | [ -H | -h ] | [ -c ] | [ -E [ w ] ] [ -t ] [ Interval [ Count ] ] }
5.3 구문은 lparstat { [ -i | -d | -H | [ -h ] [ Interval [ Count ] ] }입니다.
설명
lparstat 명령은 LPAR 관련 정보와 사용률 통계를 보고합니다. 현재 LPAR 매개변수와 하이퍼바이저 정보, LPAR의 사용률 통계를 보여 주며, 정한 간격으로 여러 번 보고할 수 있습니다.
- 옵션들은 서로 배타적입니다. 옵션 없이 실행하면 부팅 뒤 LPAR의 사용률 통계를 담은 보고서 하나를 만듭니다.
-h를 주면 하이퍼바이저 요약 통계가 더해집니다. 간격과 횟수를 주면 interval초마다 count번 보고합니다.-i에는 간격과 횟수를 쓸 수 없습니다.-h와-H는 root만 쓸 수 있습니다. - Interval을 주지 않으면 시스템 시작 뒤의 통계로 보고서 하나를 만들고 끝납니다. Count는 Interval과 함께만 쓰며, Interval만 주면 계속 보고합니다. Count에 0은 쓰지 않습니다.
-i없이 실행하면 두 줄이 나옵니다. 첫째는 시스템 구성 줄로 시작할 때와 구성이 바뀔 때 나오고, 둘째는 사용률 통계로 간격마다 이전 간격과의 차이로 나옵니다.
시스템 구성 줄
| 항목 | 뜻 |
|---|---|
type |
파티션 유형(dedicated, shared) |
mode |
capped, uncapped(공유 풀의 유휴 사이클을 쓸 수 있음). 전용 LPAR은 capped나 donating |
smt |
SMT 켜짐·꺼짐. 스레드가 2개면 on, 더 많으면 스레드 수 |
lcpu |
온라인 논리 프로세서 수 |
mem |
온라인 메모리. AME가 켜져 있으면 확장된 메모리 크기이며, AME_MEMVIEW=TRUE면 실제 메모리 크기 |
psize |
풀의 온라인 물리 프로세서 수 |
ent |
할당된 처리 용량(프로세서 단위). 공유일 때만 |
-m일 때 구성 줄: lcpu, ent, mem, mpsz(속한 메모리 풀 크기, GB), iome(I/O 메모리 할당, MB), iomp(I/O 메모리 할당 풀 수)(6.1).
-c일 때 더해지는 구성 항목(6.1): mmode(메모리 모드: Ded AMS·AME 모두 꺼짐, Shar AMS 켜짐, Ded-E AME 켜짐, Shar-E 둘 다 켜짐), mem(확장 메모리 크기), tmem(실제 메모리 크기).
사용률 줄
| 열 | 표시 조건 | 뜻 |
|---|---|---|
%user |
늘 | 사용자 수준(응용 프로그램)에서 쓴 할당 처리 용량 비율 |
%sys |
늘 | 시스템 수준(커널)에서 쓴 할당 처리 용량 비율 |
%idle |
늘 | 유휴이고 남은 디스크 입출력이 없을 때 쓰지 않은 할당 용량 비율 |
%wait |
늘 | 유휴인데 남은 디스크 입출력이 있을 때 쓰지 않은 할당 용량 비율 |
physc |
공유, 전용 기부 | 소비한 물리 프로세서 수 |
vcsw |
공유, 전용 기부 | 가상 프로세서 하드웨어 선점인 가상 문맥 교환 수 |
%entc |
공유 | 소비한 할당 용량 비율. 짧은 간격에서는 100%를 넘을 수 있음 |
lbusy |
공유 | 사용자·시스템 수준에서 실행한 논리 프로세서 사용률 |
app |
공유 | 공유 풀에서 쓸 수 있는 물리 프로세서. PUA가 없으면 나오지 않음 |
phint |
공유 | 받은 phantom 인터럽트(같은 풀의 다른 공유 파티션을 향한 것) 수 |
%hypv |
-h |
하이퍼바이저 호출에 쓴 물리 프로세서 소비 비율 |
hcalls |
-h |
시작된 하이퍼바이저 호출의 평균 수 |
%nsp |
SPURR을 쓸 수 있고 공칭 속도가 아닐 때 | 현재 평균 프로세서 속도(공칭 대비 %) |
%utcyc |
터보 모드 회계가 꺼져 있을 때 | 회계되지 않은 터보 사이클의 비율 |
%utuser, %utsys, %utidle, %utwait |
-d |
사용자·커널·유휴·입출력 대기 상태에서 회계되지 않은 터보 사이클 비율 |
- 전용 파티션의 할당 처리 용량은 물리 프로세서 수입니다.
- uncapped 파티션이 할당 용량보다 많이 쓰고 있으면
%user등은physc에 대한 비율이 됩니다.
-m의 지표(6.1)
| 열 | 뜻 |
|---|---|
physb |
바쁜 물리 프로세서 |
%entc, vcsw |
위와 같음 |
hpi, hpit |
하이퍼바이저 페이지 인 수와 그 대기 시간(ms) |
pmem |
하이퍼바이저가 LPAR에 할당한 물리 메모리(GB) |
iomin, iomu, iomf |
I/O 메모리 풀의 최소 할당, 사용 중인 할당, 남은 할당(MB) |
iohwm |
I/O 메모리 할당 사용의 최고점 |
iomaf |
부팅 뒤 I/O 메모리 할당 요청이 실패한 횟수 |
-m -e는 I/O 메모리 할당 풀마다 iompn(이름), iomin(최소), iodes(원하는), ioinu(사용 중), iores(예약), iohwm(최고점), ioafl(실패 횟수)을 보여 줍니다.
-c의 지표(6.1)
| 열 | 뜻 |
|---|---|
%xcpu |
LPAR 전체 CPU 소비 대비 AME 활동의 사용률 |
xphysc |
AME 활동에 쓴 물리 프로세서 수 |
dxm |
확장 메모리 부족분(MB) |
pgcol |
AMS 활동 중 합쳐진(coalesced) 이 파티션의 논리 실제 메모리 페이지(MB) |
mpgcol |
AMS 활동 중 메모리 풀에서 합쳐진 메모리 페이지(MB). 풀 전체 통계 권한이 없으면 0 |
ccol |
AMS 활동 중 페이지 합치기에 쓴 CPU 비율. 권한이 없으면 0 |
참고: 메모리 페이지 합치기는 하이퍼바이저가 중복 페이지를 찾아, 읽기 전용 사용자 페이지를 사본 하나로 모으고 나머지 중복 물리 페이지를 되찾는 투명한 작업입니다.
영어 원문
The lparstat command provides a report of LPAR related information and utilization statistics. This command provides a display of current LPAR related parameters and Hypervisor information, as well as utilization statistics for the LPAR. An interval mechanism retrieves numbers of reports at a certain interval.
The various options of lparstat command are exclusive of each other. The lparstat command with no options will generate a single report containing utilization statistics related to the LPAR since boot time. If the -h option is specified, the report will include summary statistics related to the Hypervisor. If an interval and count are specified, the above report display repeats for every interval seconds and for count iterations. interval and count cannot be used with the -i option. Only root users can run the -h and -H flags.
The interval parameter specifies the amount of time in seconds between each report. If you do not specify the interval parameter, the lparstat command generates a single report that contains statistics for the time since system startup and then exits. You can specify the count parameter only with the interval parameter. If you specify the count parameter, its value determines the number of reports that are generated and the number of seconds apart. If you specify the interval parameter without the count parameter, reports are continuously generated. Do not specify a value of zero to the count parameter.
When the lparstat command is invoked without the -i flag, two rows of statistics are displayed. The first row displays the System Configuration, which is displayed once when the command starts and again whenever there is a change in the system configuration. The second row contains the Utilization Statistics which will be displayed in intervals and again any time the values of these statistics are deltas from the previous interval.
The following information is displayed in the system configuration row:
type Indicates the partition type. The value can be either dedicated or shared.
mode Indicates whether the partition processor capacity is capped or uncapped allowing it to consume idle cycles from the shared pool. Dedicated LPAR is capped or donating.
smt Indicates whether simultaneous multithreading is enabled or disabled in the partition. If there are two SMT threads, the row is displayed as "on." However, if there are more than two SMT threads, the number of SMT threads is displayed.
lcpu Indicates the number of online logical processors.
mem Indicates online memory capacity.
Note: If Active Memory™Expansion is enabled, mem specifies the expanded memory size configured for this LPAR. However, if the environment variable AME_MEMVIEW is set to TRUE, the mem value specifies the true memory size.
psize Indicates the number of online physical processors in the pool.
ent Indicates the entitled processing capacity in processor units. This information is displayed only if the partition type is shared.
If you specify the –m flag, the following information is displayed in the system configuration row:
lcpu Indicates the number of online logical processors.
ent Indicates the entitled processing capacity in processor units.
mem Indicates online memory capacity.
Note: If Active Memory Expansion is enabled, mem specifies the expanded memory size configured for this LPAR. However, if the environment variable AME_MEMVIEW is set to TRUE, the mem value specifies the true memory size.
mpsz Indicates the memory pool size of the pool that the partition belongs to (in GB). iome Indicates the I/O memory entitlement of the partition (in MB).
iomp Indicates the number of I/O memory entitlement pools in the LPAR.
If you specify the -c flag, the following additional information is displayed in the system configuration row:
mmode Indicates the system's memory mode. The values for mmode are:
- Ded — Neither Active Memory Sharing nor Active Memory Expansion is enabled
- Shar — Active Memory Sharing is enabled
- Ded-E — Active Memory Expansion is enabled
- Shar-E — Both Active Memory Sharing and Active Memory Expansion are enabled
- mem Indicates the expanded memory size of the LPAR. tmem Indicates the true memory size of the LPAR.
The following information is displayed in the utilization row:
%user Indicates the percentage of the entitled processing capacity used while executing at the user level (application).
For dedicated partitions, the entitled processing capacity is the number of physical processors.
For uncapped partitions with a current physical processor consumption above their entitled capacity, the percentage becomes relative to the number of physical processor consumed (physc).
%sys Indicates the percentage of the entitled processing capacity used while executing at the system level (kernel).
For dedicated partitions, the entitled processing capacity is the number of physical processors.
For uncapped partitions with a current physical processor consumption above their entitled capacity, the percentage becomes relative to the number of physical processor consumed (physc).
%idle Indicates the percentage of the entitled processing capacity unused while the partition was idle and did not have any outstanding disk I/O request.
For dedicated partitions, the entitled processing capacity is the number of physical processors.
For uncapped partitions with a current physical processor consumption above their entitled capacity, the percentage becomes relative to the number of physical processor consumed (physc).
%wait Indicates the percentage of the entitled processing capacity unused while the partition was idle and had outstanding disk I/O request(s).
For dedicated partitions, the entitled processing capacity is the number of physical processors.
For uncapped partitions with a current physical processor consumption above their entitled capacity, the percentage becomes relative to the number of physical processor consumed (physc).
The following statistics are displayed when the partition type is shared or dedicated-donating:
physc Indicates the number of physical processors consumed.
vcsw Indicates the number of virtual context switches that are virtual-processor hardware preemptions.
The following statistics are displayed only when the partition type is shared:
%entc Indicates the percentage of the entitled capacity consumed. Because the time base over which this data is computed can vary, the entitled capacity percentage can sometimes exceed 100%. This excess is noticeable only with small sampling intervals. lbusy Indicates the percentage of logical processor(s) utilization that occurred while executing at the user and system level.
app Indicates the available physical processors in the shared pool.
phint Indicates the number of phantom (targeted to another shared partition in this pool) interruptions received.
The following statistics are displayed only when the -h flag is specified:
%hypv Indicates the percentage of physical processor consumption spent making hypervisor calls.
hcalls Indicates the average number of hypervisor calls that were started.
The following statistic is displayed only if the hardware can use the SPURR, and the processor is not running at nominal speed:
%nsp Indicates the current average processor speed as a percentage of nominal speed.
The following statistic is displayed only if the turbo-mode accounting is disabled:
%utcyc Indicates the total percentage of unaccounted turbo cycles.
The following statistics are displayed only when the -d flag is specified.
%utuser Indicates the percentage of unaccounted turbo cycles in the user mode execution (application).
%utsys Indicates the percentage of unaccounted turbo cycles in the kernel mode execution (kernel).
%utidle Indicates the percentage of the unaccounted turbo cycles when the partition is idle and does not have any outstanding disk I/O requests.
%utwait Indicates the percentage of the unaccounted turbo cycles when the partition is idle and has outstanding disk I/O requests.
If you specify the -m flag, the following metrics are displayed:
physb Indicates that the physical processor is busy.
%entc Indicates the percentage of the entitled capacity consumed. Because the time base over which this data is computed might vary, the entitled capacity percentage can sometimes exceed 100%. This excess is noticeable only with small sampling intervals.
vcsw Indicates the number of virtual context switches that are virtual-processor hardware preemptions.
hpi Indicates the number of hypervisor page-ins occurred.
hpit Indicates the time that is spent waiting for hypervisor page-ins in milliseconds.
pmem Indicates the physical memory that is allocated to the LPAR by hypervisor in GB.
iomin Indicates the minimum entitlement of the I/O memory pool in MB.
iomu Indicates the I/O memory entitlement of the LPAR in use in MB.
iomf Indicates the free I/O memory entitlement in MB. iohwm Indicates the high water mark of I/O memory entitlement usage in GB. iomaf Indicates the total number of times that allocation requests for I/O memory entitlement pools have failed since system startup.
If you specify the –e flag with the –m flag, the following information about I/O memory entitlement pools is displayed:
iompn Indicates the name of the I/O memory entitlement pool in MB.
iomin Indicates the minimum entitlement of the I/O memory pool in MB.
iodes Indicates the desired entitlement of the I/O memory pool in MB.
ioinu Indicates the entitlement of the I/O memory pool in use in MB.
iores Indicates the reserved entitlement of the I/O memory pool in MB.
iohwm Indicates the high water mark of entitlement usage of the I/O memory pool in MB.
ioafl Indicates the total number of times that allocation requests for this I/O memory entitlement pool have failed since system startup.
The following statistics are displayed only when the -c flag is specified:
%xcpu Indicates the percentage of utilization (relative to the overall CPU consumption by the logical partition) for the Active Memory Expansion (AME) activity.
xphysc Indicates the number of physical processors used for the Active Memory Expansion activity.
dxm Indicates the size of the expanded memory deficit for the LPAR in MB.
pgcol Indicates the logical real memory pages of the calling partition in megabytes that are coalesced during the active memory sharing activity.
mpgcol Indicates the number of megabytes of the memory pages that are called by the memory pool of the coalesced partition during the Active Memory sharing activity. If the partition is not authorized to access the poolwide statistics, the metric shows zero.
ccol Indicates the fraction of the CPU consumed in coalescing pages during the Active Memory sharing activity. If the partition is not authorized to access the poolwide statistics, the metric shows zero.
Note: Memory page coalescing is a transparent operation wherein the hypervisor detects duplicate pages, directs all the user read pages to a single copy, and reclaims the other duplicate physical memory pages.
플래그
| 플래그 | 설명 |
|---|---|
-c |
기본 출력에 LPAR의 메모리 압축 통계를 더합니다. AME가 켜져 있을 때만 씁니다. 6.1부터 |
-d |
자세한 CPU 사용률 통계를 보여 줍니다. 터보 모드 회계가 꺼져 있으면 회계되지 않은 터보 사이클을 범주별로 나눠, 전용·기부·공유 열(%user, %sys, %idle, %wait, %entc, %idon, %bdon, %istol, %bstol)과 함께 보여 줍니다. |
-e |
LPAR의 I/O 메모리 할당 풀 정보를 보여 줍니다. -m과만 씁니다. 6.1부터 |
-E |
SPURR(Scaled Processor Utilization Resource Register)를 지원하는 프로세서에서 SPURR 기반 사용률 지표를 보고합니다. 6.1부터 |
-h |
기본 출력에 하이퍼바이저 요약 통계를 더합니다. |
-H |
하이퍼바이저 호출마다 상세 통계(호출 수, 전체 시간 중 비율, 하이퍼바이저 시간 중 비율, 평균·최대 호출 시간(ns))를 보여 줍니다. |
-i |
LPAR 구성의 상세를 나열합니다(아래 표). |
-m |
논리 메모리, 그것을 받치는 물리 메모리, I/O 메모리 할당, 속한 메모리 풀에 관한 통계를 보여 줍니다. 6.1부터 |
-o |
XML 출력의 파일 이름을 지정합니다. 6.1 문서 |
-p |
LPAR의 페이지 합치기 통계를 보여 줍니다. -m과만 쓰며, -w와 함께 쓰면 -e의 모든 지표를 한 줄에 보여 줍니다. 6.1부터 |
-r |
명령을 시작할 때 한 번 I/O 메모리 할당의 최고점을 다시 정합니다. -m, -e와만 씁니다. 6.1부터 |
-R |
감시 간격마다 시작할 때 최고점을 다시 정합니다. -r과 함께 쓰면 -R이 적용됩니다. 6.1부터 |
-t |
간격을 줄 때 HH:MM:SS 시각을 보여 줍니다. 6.1부터 |
-W |
WPAR 구성의 상세를 나열합니다(전역 환경에서는 WPAR Key가 0): WPAR Key(정적 ID), WPAR Configured ID(동적 ID), WPAR Maximum CPUs(자원 집합의 프로세서 수, 제한 없으면 0), WPAR Effective CPUs, WPAR CPU Percentage(프로세서 한도 %). 혼자 쓰거나 -i와 함께 씁니다. 6.1부터 |
참고: PUA(Pool Utilization Authority)를 쓸 수 없으면 app 열이 나오지 않습니다.
-i가 보여 주는 항목
| 항목 | 뜻 |
|---|---|
| Partition Name, Partition Number | HMC에서 정한 LPAR 이름과 번호 |
| Type | Shared 또는 Dedicated, SMT가 켜져 있으면 -SMT, 스레드가 2개보다 많으면 -SMT-4처럼 수까지 |
| Mode | capped·uncapped. 전용 LPAR은 capped나 donating |
| Entitled Capacity | 받을 수 있는 처리 단위 |
| Variable Capacity Weight | 남는(유휴) 용량을 나눠 받는 우선순위 가중치. -1은 soft cap |
| Minimum·Maximum Capacity | 정의된 최소·최대 처리 단위. 할당 용량은 이 범위에서 바꿀 수 있음 |
| Capacity Increment | 할당 용량을 바꿀 수 있는 단위. 정수 배면 전용 LPAR |
| Online·Maximum·Minimum Virtual CPUs | 온라인·최대·최소 가상 CPU 수 |
| Online·Maximum·Minimum Memory | 온라인·최대·최소 메모리 |
| Maximum·Active Physical CPUs in System | 시스템의 최대·활성 물리 CPU 수 |
| Active CPUs in Pool | 이 LPAR의 공유 프로세서 풀에서 쓸 수 있는 최대 CPU 수 |
| Shared Physical CPUs in system | 공유 프로세서 LPAR이 쓸 수 있는 물리 CPU 수 |
| Maximum·Entitled Capacity of Pool | 공유 프로세서 풀의 최대·할당 처리 단위 |
| Unallocated Capacity | LPAR 그룹의 공유 LPAR에서 할당되지 않은 처리 단위의 합 |
| Physical CPU Percentage | 할당 용량 ÷ 온라인 CPU. 전용 LPAR은 100%, 가상 4개에 할당 2면 50% |
| Unallocated Weight, Partition Group ID, Shared Pool ID | 그룹 안의 할당되지 않은 가중치, LPAR 그룹 ID, 공유 풀 ID |
| Memory Mode | shared, dedicated(AME가 켜져 있으면 Expanded 포함) |
| Total I/O memory entitlement, Variable memory capacity weight, Memory Pool ID, Physical Memory in the Pool, Hypervisor Page Size, Unallocated Variable Memory Capacity Weight, Unallocated I/O memory entitlement, Memory Group ID of LPAR | 공유 메모리(AMS) 관련 항목 |
| Target Memory Expansion Factor·Size | AME의 목표 확장 계수와 목표 확장 메모리 크기(실제 메모리 × 계수). AME가 켜져 있을 때 |
| Power Save Mode, Subprocessor Mode | 절전 모드, 하위 프로세서 모드 |
영어 원문
-c— Adds the memory compression statistics of the LPAR to the default lparstat output. Note: This option is available only when Active Memory Expansion is enabled.-d— Shows the detailed CPU utilization statistics. When the turbo-mode accounting is disabled, the lparstat command shows the breakdown by category of the unaccounted turbo cycles along with the dedicated, donating or shared utilization columns: %user, %sys, %idle, %wait, %entc, %idon, %bdon, %istol and %bstol.-e— Displays information about the I/O memory entitlement pools of the LPAR. You can specify the-eflag only with the –m flag. See the metrics that are displayed when you specify the-mflag.-E— Reports Scaled Processor Utilization Resource Register (SPURR) based utilization metrics if run on a SPURR-capable processor.-h— Adds summary hypervisor statistics to the default lparstat output.-H— Provides detailed Hypervisor information. This option basically displays the statistics for each of the Hypervisor calls. The various Hypervisor statistics displayed by this option, for each of the Hypervisor calls, are as below: Statistic Description Number of calls Number of Hypervisor calls made. Total Time Spent Percentage of total time spent in this type of call. Hypervisor Time Spent Percentage of Hypervisor time spent in this type of call. Average Call Time Average call time for this type of call in nano-seconds. Maximum Call Time Maximum call time for this type of call in nano-seconds.-i— Lists details on the LPAR configuration. The various details displayed by the-ioption are listed below: Name Description Partition Name Logical partition name as assigned at the HMC. Partition Number Number of this logical partition. Power Save Mode Power saving mode of this logical partition. Online Virtual CPUs Number of CPUs (virtual engines) currently online. Maximum Virtual CPUs Maximum possible number of CPUs (virtual engines). Online Memory Amount of memory currently online. Maximum Memory Maximum possible amount of Memory. Type Indicates whether the LPAR is using dedicated or shared CPU resource and if the SMT is turned ON. The Type is displayed in the format [Shared|Dedicated] [ -SMT ] [ -# ] The following list explains the different Type formats: • Shared - Indicates that the LPAR is running in the Shared processor mode. • Dedicated - Indicates that the LPAR is running in the dedicated processor mode. • SMT[-#] - Indicates that the LPAR has SMT mode turned ON and the number of SMT threads is 2. If the number of threads is greater than 2, then the number of threads is also displayed. Mode Indicates whether the LPAR processor capacity is capped or uncapped allowing it to consume idle cycles from the shared pool. Dedicated LPAR is capped or donating. Entitled Capacity The number of processing units this LPAR is entitled to receive. Variable Capacity Weight The priority weight assigned to this LPAR which controls how extra (idle) capacity is allocated to it. A weight of-1indicates a soft cap is in place. Minimum Capacity The minimum number of processing units this LPAR was defined to ever have. Entitled capacity can be reduced down to this value. Maximum Capacity The maximum number of processing units this LPAR was defined to ever have. Entitled capacity can be increased up to this value. Capacity Increment The granule at which changes to Entitled Capacity can be made. A value in whole multiples indicates a Dedicated LPAR. Maximum Physical CPUs in System The maximum possible number of physical CPUs in the system containing this LPAR. (Details displayed by the-iflag, are as follows): Active Physical CPUs in System The current number of active physical CPUs in the system containing this LPAR. Active CPUs in Pool The maximum number of CPUs available to this LPAR's shared processor pool. Shared Physical CPUs in system The number of physical CPUs available for use by shared processor LPARs. Maximum Capacity of Pool The maximum number of processing units available to this LPAR's shared processor pool. Entitled Capacity of Pool The number of processing units that this LPAR's shared processor pool is entitled to receive. Unallocated Capacity The sum of the number of processor units unallocated from shared LPARs in an LPAR group. This sum does not include the processor units unallocated from a dedicated LPAR, which can also belong to the group. The unallocated processor units can be allocated to any dedicated LPAR (if it is greater than or equal to 1.0 ) or shared LPAR of the group. Physical CPU Percentage Fractional representation relative to whole physical CPUs that these LPARs virtual CPUs equate to. This is a function of Entitled Capacity / Online CPUs. Dedicated LPARs would have 100% Physical CPU Percentage. A 4-way virtual with Entitled Capacity of 2 processor units would have a 50% physical CPU Percentage. Minimum Memory Minimum memory this LPAR was defined to ever have. Minimum Virtual CPUs Minimum number of virtual CPUs this LPAR was defined to ever have. Unallocated Weight Number of variable processor capacity weight units currently unallocated within the LPAR group. Partition Group ID LPAR group that this LPAR is a member of. Shared Pool ID Identifier of Shared Pool of Physical processors that this LPAR is a member. (Details displayed by the-iflag, are as follows): Memory Mode Indicates whether the memory mode is shared or dedicated. If Active Memory Expansion is enabled, the memory mode also includes a new mode called Expanded. Total I/O memory entitlement The I/O memory entitlement of the LPAR. Variable memory capacity weight The variable memory capacity weight of the LPAR. Memory Pool ID The memory pool ID of the pool that the LPAR belongs to. Physical Memory in the Pool The physical memory present in the pool that the LPAR belongs to. Hypervisor Page Size The page size that hypervisor uses for the page-in and page-out of LPAR logical-memory pages. Unallocated Variable Memory Capacity Weight The unallocated variable memory-capacity weight of the LPAR. Unallocated I/O memory entitlement The unallocated I/O memory entitlement of the LPAR. Memory Group ID of LPAR The memory group ID of the Workload Manager group that the LPAR belongs to. Target Memory Expansion Factor The target memory expansion factor configured for the LPAR. Note: The target memory expansion factor is displayed when Active Memory Expansion is enabled. Target Memory Expansion Size The target expanded memory size for the LPAR. The target expanded memory size is the true memory size multiplied by the target memory expansion factor. Note: The target memory expansion size is displayed when Active Memory Expansion is enabled. Power Save Mode The power saving mode for the LPAR. Subprocessor Mode The subprocessor mode for the LPAR.-m— Displays the statistics that are related to the following aspects: • The logical memory • The physical memory backing the logical memory of the LPAR • The I/O memory entitlement of the LPAR • The memory pool information on the pool that the LPAR belongs to For more information about the metrics that are displayed when you specify the-mflag, see the metrics section.-o— Specifies the file name for the XML output.-p— Displays the information about the page coalescing statistics of the LPAR. You can specify the-pflag only with the-mflag. When you run the lparstat command with the-wand-pflags, the result displays all the metrics that are displayed by the-eflag in a single line.-r— Resets the high water mark of I/O memory entitlement once at the beginning of the command. You can use this flag only with the-mand-eflags.-R— Resets the high water mark at the beginning of each monitoring interval. If you specify both the-rand-Rflags, the-Rflag takes effect.-t— Displays the time in the HH:MM:SS format when the command is run with intervals.-W— Lists details of the workload partition (WPAR) configuration. If the command is run from the global environment, the WPAR Key value is 0. The-Wflag displays the following details: WPAR Key WPAR static identifier. WPAR Configured ID WPAR dynamic identifier. WPAR Maximum CPUs Number of processors in a resource set. It displays the value of 0 if it is not restricted. WPAR Effective CPUs Number of processors in an effective resource set. It displays the value of 0 if it is not restricted. WPAR CPU Percentage WPAR processor-limit percentage. You can specify the-Wflag alone or with-ioption.- Note: If Pool Utilization Authority (PUA) is not available, the app column is not displayed.
예제
| 명령 | 하는 일 |
|---|---|
lparstat 1 1 |
기본 LPAR 통계 |
lparstat -h 1 1 |
기본 통계에 하이퍼바이저 요약을 더해서 |
lparstat -i |
파티션 정보 |
lparstat -H 1 1 |
하이퍼바이저 호출별 상세 통계 |
lparstat -m |
공유 메모리 풀과 I/O 메모리 할당 통계(6.1) |
lparstat -me |
LPAR 안의 I/O 메모리 풀 통계(6.1) |
lparstat -c 1 1 |
AME가 켜진 LPAR의 메모리 압축 통계(6.1) |
lparstat -mp |
LPAR 안의 페이지 합치기 통계(6.1) |
-i의 Type 표시 예: 공유 모드에 SMT 스레드 4개면 Shared-SMT-4, 전용 모드에 SMT 스레드 2개면 Dedicated-SMT입니다.
영어 원문
- To get the default LPAR statistics, enter the following command:
lparstat 1 1
- To get default LPAR statistics with summary statistics on Hypervisor, enter the following command:
lparstat -h 1 1
- To get the information about the partition, enter the following command:
lparstat -i
- To get detailed Hypervisor statistics, enter the following command:
lparstat -H 1 1
- To get statistics about the shared memory pool and the I/O memory entitlement of the partition, enter the following command:
lparstat -m
- To get statistics about I/O memory pools inside the LPAR, enter the following command:
lparstat -me
- If the LPAR is running in shared mode and with 4 SMT threads the type would be in the following format:
Type - Shared-SMT-4
- If the LPAR is running in dedicated mode and with 2 SMT threads the type would be in the following format:
Type - Dedicated-SMT
- To calculate the memory compression statistics in an LPAR when Active Memory Expansion is enabled, enter the following command:
lparstat -c 1 1
- To get statistics about page coalescing inside an LPAR, enter the following command:
lparstat -mp
파일
| 파일 | 설명 |
|---|---|
/usr/bin/lparstat |
lparstat 명령이 들어 있습니다. |
관련 명령어: mpstat, iostat, vmstat, sar
영어 원문
- /usr/bin/lparstat — Contains the lparstat command.
Related reference:
- mpstat Command
- iostat Command
Related information:
- vmstat command
- sar command
리눅스(GNU)와 다른 점
리눅스(x86)에는 같은 도구가 없습니다. Power 서버의 리눅스(powerpc-utils)에는 lparstat이 있어 비슷한 정보를 보여 줍니다. x86 가상 머신에서는 vmstat·top의 st(stolen) 값이 physc·%entc와 비슷한 역할을 합니다.