[AIX 성능 도구 2] curt — CPU 사용률 보고 도구

핵심 정리

  • curt는 AIX trace 파일을 읽어 CPU 시간을 응용 프로그램(APPLICATION), 시스템 호출(SYSCALL), 하이퍼바이저 호출(HCALL), 커널 프로세스(KPROC), NFS, 인터럽트(FLIH·SLIH), 디스패치, IDLE로 나누어 보여 줍니다.
  • 준비는 3단계: trace로 원시 trace 수집(CPU마다 파일) → trcrpt -C all -r로 합치기 → gensyms(또는 trcnm)로 주소-이름 파일 만들기.
  • 기본 실행: curt -i trace.r -n gensyms.out -o curt.out. 기본 보고서는 어떤 플래그를 줘도 항상 들어갑니다.
  • 먼저 System Summary로 어디서 CPU를 쓰는지 보고, Application Summary(by Tid/Pid)로 CPU를 가장 많이 쓰는 스레드·프로세스를 찾습니다.
  • 더 자세히: -e 경과 시간, -s 시스템 호출 오류, -t 스레드별, -p 프로세스별, -P pthread별 보고서. -r PURR는 PURR 레지스터로 CPU 시간을 계산합니다.
항목 내용
버전 AIX 5.3, AIX 6.1 (내용이 같고 6.1판은 문장만 다듬어짐)
원문 Performance Tools Guide and Reference — 5.3판 3장(71102쪽), 6.1판 231쪽
명령 /usr/bin/curt (bos.perf.tools 파일 세트)
관련 명령어 trace, trcrpt, trcon, trcstop, gensyms, trcnm, splat, tprof

CPU 사용률 보고 도구(CPU Utilization Reporting Tool, curt) 명령은 AIX trace 파일을 CPU 사용률과 프로세스·스레드·pthread 활동에 관한 여러 통계로 바꿉니다. 이 통계로 특정 응용 프로그램의 활동을 쉽게 추적할 수 있습니다.

curt 명령은 단일 프로세서와 다중 프로세서의 AIX Version 4, AIX Version 5 trace를 모두 다룹니다.

영어 원문

CPU Utilization Reporting Tool (curt)

The CPU Utilization Reporting Tool (curt) command converts an AIX trace file into a number of statistics related to CPU utilization and either process, thread or pthread activity. These statistics ease the tracking of specific application activity.

The curt command works with both uniprocessor and multiprocessor AIX Version 4 and AIX Version 5 traces.

curt 명령의 구문

curt 명령의 구문, 플래그, 매개변수입니다.

text
curt -i inputfile [-o outputfile] [-n gensymsfile] [-m trcnmfile] [-a pidnamefile] [-f timestamp] [-l timestamp] [-r PURR] [-ehpstP]

플래그

플래그 설명
-i inputfile 분석할 AIX trace 입력 파일을 지정합니다.
-o outputfile 출력 파일을 지정합니다(기본은 표준 출력).
-n gensymsfile gensyms가 만든 이름 파일을 지정합니다.
-m trcnmfile trcnm이 만든 이름 파일을 지정합니다.
-a pidnamefile PID와 프로세스 이름을 대응시킨 파일을 지정합니다.
-f timestamp trace를 timestamp 초부터 처리합니다.
-l timestamp trace 처리를 timestamp 초에서 멈춥니다.
-r PURR PURR 레지스터로 CPU 시간을 계산합니다.
-e 시스템 호출의 경과 시간 정보를 출력합니다.
-h 사용법을 보여 줍니다.
-p 프로세스별 자세한 정보를 출력합니다.
-s 시스템 호출이 돌려준 오류 정보를 출력합니다.
-t 스레드별 자세한 정보를 출력합니다.
-P pthread별 자세한 정보를 출력합니다.

매개변수

매개변수 설명
gensymsfile gensyms 명령이 만든 이름 파일
inputfile curt 명령이 처리할 AIX trace 파일
outputfile curt 명령이 만드는 출력 파일 이름
pidnamefile trace의 프로세스 이름 표가 정확하지 않거나 더 알아보기 쉬운 이름을 쓰고 싶을 때 -a로 지정하는 PID-프로세스 이름 파일. 한 줄에 프로세스 ID(10진수), 공백, 그 프로세스의 이름으로 쓸 ASCII 문자열을 적습니다.
timestamp trace 파일 처리를 시작하고 멈출 시각(초)
trcnmfile trcnm 명령이 만든 이름 파일
PURR CPU 시간 계산에 쓰는 레지스터 이름
영어 원문

Syntax for the curt Command

Review the syntax, flags, and parameters for the curt command.

The syntax for the curt command is as follows:

curt -i inputfile [-o outputfile] [-n gensymsfile] [-m trcnmfile] [-a pidnamefile] [-f timestamp] [-l timestamp] [-r PURR][-ehpstP]

Flags

  • -i inputfile — Specifies the input AIX trace file to be analyzed.
  • -o outputfile — Specifies an output file (default is stdout).
  • -n gensymsfile — Specifies a names file produced by gensyms.
  • -m trcnmfile — Specifies a names file produced by trcnm.
  • -a pidnamefile — Specifies a PID-to-process name mapping file.
  • -f timestamp — Starts processing trace at timestamp seconds.
  • -l timestamp — Stops processing trace at timestamp seconds.
  • -r PURR — Uses the PURR register to calculate CPU times.
  • -e — Outputs elapsed time information for system calls.
  • -h — Displays usage text (this information).
  • -p — Outputs detailed process information.
  • -s — Outputs information about errors returned by system calls.
  • -t — Outputs detailed thread information.
  • -P — Outputs detailed pthread information.

Parameters

  • gensymsfile — The names file as produced by the gensyms command.
  • inputfile — The AIX trace file to be processed by the curt command.
  • outputfile — The name of the output file created by the curt command.
  • pidnamefile — If the trace process name table is not accurate, or if more descriptive names are desired, use the -a flag to specify a PID to process name mapping file. This is a file with lines consisting of a process ID (in decimal) followed by a space, then an ASCII string to use as the name for that process.
  • timestamp — The time in seconds at which to start and stop the trace file processing.
  • trcnmfile — The names file as produced by the trcnmcommand.
  • PURR — The name of the register that is used to calculate CPU times.

측정과 표본 수집

curt 명령은 형식을 갖추지 않은 원시(raw) 시스템 trace를 읽어 CPU 사용률 요약을 만듭니다. 이 요약으로 어느 응용 프로그램, 시스템 호출, NFS(Network File System) 작업, 하이퍼바이저 호출, pthread 호출, 인터럽트 처리기가 CPU 시간을 가장 많이 쓰는지, 그래서 시스템 성능을 높이려면 무엇을 최적화해야 하는지 판단할 수 있습니다.

다음 표는 curt 명령에 꼭 필요한 최소한의 trace 훅(hook)입니다. 이 훅만 쓰면 trace 파일 크기를 줄일 수 있지만 시스템의 다른 이벤트는 잡히지 않습니다. trace를 더 자세히 분석하려면 이 점을 생각해야 합니다.

훅 ID 이벤트 이름 설명
100 HKWD_KERN_FLIH 1차 인터럽트 발생(I/O 인터럽트, 데이터 접근 페이지 폴트, 타이머 인터럽트(스케줄러) 등)
101 HKWD_KERN_SVC 스레드가 시스템 호출을 냄
102 HKWD_KERN_SLIH 2차 인터럽트 발생. 1차 I/O 인터럽트가 장치 드라이버와 직접 일하는 2차 인터럽트 처리기로 넘어감
103 HKWD_KERN_SLIHRET 2차 인터럽트에서 호출자(보통 1차 인터럽트 처리기)로 돌아감
104 HKWD_KERN_SYSCRET 시스템 호출에서 호출자(보통 스레드)로 돌아감
106 HKWD_KERN_DISPATCH 스레드가 실행 대기열에서 CPU로 디스패치됨
10C HKWD_KERN_IDLE idle 프로세스가 디스패치됨
119 HKWD_KERN_PIDSIG 프로세스에 시그널이 보내짐
134 HKWD_SYSC_EXECVE (fork된) 프로세스가 exec 감독자 호출(SVC)을 냄
135 HKWD_SYSC__EXIT 프로세스가 exit SVC를 냄
139 HKWD_SYSC_FORK 프로세스가 fork SVC를 냄
200 HKWD_KERN_RESUME 디스패치된 스레드가 CPU에서 다시 실행됨
210 HKWD_KERN_INITP 커널 프로세스가 만들어짐
215 HKWD_NFS_DISPATCH 프로세스가 NFS V2·V3 작업에 들어가거나 나옴
38F HKWD_DR 프로세서가 더해지거나 빠짐
419 HKWD_CPU_PREEMPT 프로세서가 선점됨
465 HKWD_SYSC_CRTHREAD 프로세스가 thread_create SVC를 냄
47F HKWD_KERN_PHANTOM_EXTINT 유령(phantom) 인터럽트 발생
488 HKWD_RFS4_VOPS 프로세스가 NFS V4 클라이언트 작업(VOPS)에 들어가거나 나옴
489 HKWD_RFS4_VFSOPS 프로세스가 NFS V4 클라이언트 작업(VFSOPS)에 들어가거나 나옴
48A HKWD_RFS4_MISCOPS 프로세스가 NFS V4 클라이언트 작업(MISCOPS)에 들어가거나 나옴
48D HKWD_RFS4 프로세스가 NFS V4 서버 작업에 들어가거나 나옴
492 HKWD_KERN_HCALL 커널이 하이퍼바이저 호출을 냄
605 HKWD_PTHREAD_VPSLEEP pthread가 vp_sleep 작업을 함
609 HKWD_PTHREAD_GENERAL pthread가 일반 pthread 작업을 함

훅 119와 135는 exit 시스템 호출에 쓴 시간을 보고하는 데 씁니다. 훅 134, 139, 210, 465는 TID, PID, 프로세스 이름을 추적하는 데 씁니다.

훅 492는 하이퍼바이저에서 쓴 시간을 보고하는 데 씁니다.

훅 605와 609는 pthread 라이브러리에서 쓴 시간을 보고하는 데 씁니다.

trace에 PTHREAD 훅이 들어가게 하려면 pthread 응용 프로그램을 계측용(instrumented) libpthreads.a 라이브러리로 실행해야 합니다.

영어 원문

Measurement and Sampling

A raw, or unformatted, system trace is read by the curt command to produce CPU utilization summaries. The summary information is useful for determining which application, system call, Network File System (NFS) operation, hypervisor call, pthread call, or interrupt handler is using most of the CPU time and is a candidate for optimization to improve system performance.

The following table lists the minimum trace hooks required for the curt command. Using only these trace hooks will limit the size of the trace file. However, other events on the system might not be captured in this case. This is significant if you intend to analyze the trace in more detail.

Hook ID Event Name Event Explanation
100 HKWD_KERN_FLIH Occurrence of a first level interrupt, such as an I/O interrupt, a data access page fault, or a timer interrupt (scheduler).
101 HKWD_KERN_SVC A thread has issued a system call.
102 HKWD_KERN_SLIH Occurrence of a second level interrupt, that is, first level I/O interrupts are being passed on to the second level interrupt handler which then is working directly with the device driver.
103 HKWD_KERN_SLIHRET Return from a second level interrupt to the caller (usually a first level interrupt handler).
104 HKWD_KERN_SYSCRET Return from a system call to the caller (usually a thread).
106 HKWD_KERN_DISPATCH A thread has been dispatched from the run queue to a CPU.
10C HKWD_KERN_IDLE The idle process has been dispatched.
119 HKWD_KERN_PIDSIG A signal has been sent to a process.
134 HKWD_SYSC_EXECVE An exec supervisor call (SVC) has been issued by a (forked) process.
135 HKWD_SYSC__EXIT An exit supervisor call (SVC) has been issued by a process.
139 HKWD_SYSC_FORK A fork SVC has been issued by a process.
200 HKWD_KERN_RESUME A dispatched thread is being resumed on the CPU.
210 HKWD_KERN_INITP A kernel process has been created.
215 HKWD_NFS_DISPATCH An entry or exit NFS V2 and V3 operation has been issued by a process.
38F HKWD_DR A processor has been added/removed.
419 HKWD_CPU_PREEMPT A processor has been preempted.
465 HKWD_SYSC_CRTHREAD A thread_create SVC has been issued by a process.
47F HKWD_KERN_PHANTOM_EXTINT A phantom interrupt has occurred.
488 HKWD_RFS4_VOPS An entry or exit NFS V4 client operation (VOPS) has been issued by a process.
489 HKWD_RFS4_VFSOPS An entry or exit NFS V4 client operation (VFSOPS) has been issued by a process.
48A HKWD_RFS4_MISCOPS An entry or exit NFS V4 client operation (MISCOPS) has been issued by a process.
48D HKWD_RFS4 An entry or exit NFS V4 server operation has been issued by a process.
492 HKWD_KERN_HCALL A hypervisor call has been issued by the kernel.
605 HKWD_PTHREAD_VPSLEEP A pthread vp_sleep operation has been done by a pthread.
609 HKWD_PTHREAD_GENERAL A general pthread operation has been done by a pthread.

Trace hooks 119 and 135 are used to report on the time spent in the exit system call. Trace hooks 134, 139, 210, and 465 are used to keep track of TIDs, PIDs and process names.

Trace hook 492 is used to report on the time spent in the hypervisor.

Trace hooks 605 and 609 are used to report on the time spent in the pthreads library.

To get the PTHREAD hooks in the trace, you must execute your pthread application using the instrumented libpthreads.a library.

curt 명령의 예

curt 명령의 입력은 세 단계로 준비합니다.

trace 파일과 이름 파일은 다음과 같이 만듭니다.

  1. 원시 trace를 만듭니다. 4-way 시스템이면 아래 예처럼 CPU마다 원시 trace 파일이 하나씩 만들어지며 이름은 trace.raw-0, trace.raw-1 식입니다. 여기에 trace.raw라는 파일이 더 만들어지는데, CPU별 trace를 하나로 묶는 정보가 든 마스터 파일입니다.

    참고: curt 보고서에 pthread 정보를 넣으려면 trace를 만들 때 계측용 libpthreads 디렉터리를 라이브러리 경로(LIBPATH)에 더해야 합니다. 그렇지 않으면 아래 예의 export LIBPATH 줄은 필요 없습니다.

  2. trace 파일을 합칩니다. CPU별 원시 trace 파일을 하나로 합치려면 trcrpt 명령을 실행합니다. 단일 프로세서 시스템이면 이 단계는 필요 없습니다.

  3. 보조 파일 gensymsfile과 trcnmfile을 만듭니다. gensyms와 trcnm 명령을 실행합니다. 두 파일 모두 curt 실행에 꼭 필요하지는 않습니다. 그러나 하나라도 주거나 trace 명령을 -n 옵션으로 실행하면 curt가 시스템 호출과 인터럽트 처리기를 주소만이 아니라 이름으로 보여 줍니다. gensyms 출력에는 trcnm 출력보다 정보가 많습니다. trcnmfile에도 중요한 주소-이름 대응은 대부분 들어 있지만 gensymsfile을 쓰면 curt가 더 많은 이름을 보여 주므로 gensyms를 권합니다.

다음은 curt 명령의 입력 파일을 만드는 예입니다.

text
# HOOKS="100,101,102,103,104,106,10C,119,134,135,139,200,210,215,38F,419,465,47F,488,489,48A,
         48D,492,605,609"
# SIZE="1000000"
# export HOOKS SIZE
# trace -n -C all -d -j $HOOKS -L $SIZE -T $SIZE -afo trace.raw
# export LIBPATH=/usr/ccs/lib/perf:$LIBPATH
# trcon ; pthread.app ; trcstop
# unset HOOKS SIZE
# ls trace.raw*
trace.raw   trace.raw-0  trace.raw-1  trace.raw-2  trace.raw-3
# trcrpt -C all -r trace.raw > trace.r
# rm trace.raw*
# ls trace*
trace.r
# gensyms > gensyms.out
# trcnm > trace.nm
영어 원문

Examples of the curt command

Preparing the curt command input is a three-stage process.

Trace and name files are generated using the following process:

  1. Build the raw trace. On a 4-way machine, this will create files as listed in the example code below. One raw trace file per CPU is produced. The files are named trace.raw-0, trace.raw-1, and so forth for each CPU. An additional file named trace.raw is also generated. This is a master file that has information that ties together the other CPU-specific traces.

Note: If you want pthread information in the curt report, you must add the instrumented libpthreads directory to the library path, LIBPATH, when you build the trace. Otherwise, the export LIBPATH statement in the example below is unnecessary.

  1. Merge the trace files. To merge the individual CPU raw trace files to form one trace file, run the trcrpt command. If you are tracing a uniprocessor machine, this step is not necessary.

  2. Create the supporting gensymsfile and trcnmfile files by running the gensyms and trcnm commands. Neither the gensymsfile nor the trcnmfile file are necessary for the curt command to run. However, if you provide one or both of these files, or if you use the trace command with the -n option, the curt command outputs names for system calls and interrupt handlers instead of just addresses. The gensyms command output includes more information than the trcnm command output, and so, while the trcnmfile file will contain most of the important address to name mapping data, a gensymsfile file will enable the curt command to output more names, and is the preferred address to name mapping data collection command.

The following is an example of how to generate input files for the curt command:

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

curt 명령이 만드는 정보

curt 명령이 만드는 정보와 특별한 보고서를 만드는 방법입니다.

curt 보고서의 내용은 다음과 같습니다.

  • 보고서 머리글: trace 파일 이름, trace 크기, trace를 뜬 날짜와 시각, trace를 실행한 명령. CPU 시간을 PURR 레지스터로 계산했으면 그 정보도 들어갑니다.
  • CPU마다(그리고 모든 CPU를 합쳐서) 여러 CPU 사용 범주의 처리 시간(밀리초와 백분율, idle·non-idle 백분율 포함)
  • CPU마다(그리고 모든 CPU를 합쳐서) 응용 프로그램 모드에서 쓴 CPU 시간을 응용 프로그램 사용 범주별로 나눈 처리 시간(밀리초와 백분율)
  • 모든 CPU와 CPU마다의 평균 스레드 친화도(affinity)
  • CPU마다(그리고 모든 CPU를 합쳐서) 쓴 물리 CPU 시간과 그것이 전체 시간에서 차지하는 백분율
  • 모든 CPU와 CPU마다의 평균 물리 CPU 친화도
  • CPU마다의 물리 CPU 디스패치 히스토그램
  • CPU마다 선점 횟수와 하이퍼바이저 호출 H_CEDE, H_CONFER 횟수
  • CPU마다 idle·non-idle 프로세스 디스패치 횟수
  • 모든 CPU와 CPU마다의 평균 pthread 친화도
  • CPU마다 idle·non-idle pthread 디스패치 횟수
  • 응용 프로그램 모드와 시스템 호출(syscall) 모드에서 쓴 CPU 시간을 스레드, 프로세스, 프로세스 유형별로(밀리초와 백분율). 프로세스·프로세스 유형마다 스레드 수도 들어갑니다.
  • idle 프로세스를 포함해 커널 프로세스마다 쓴 CPU 시간(밀리초와 전체 CPU 시간 대비 백분율)
  • libpthread 호출 실행에 쓴 CPU 시간(밀리초, 전체 시간과 전체 응용 프로그램 시간 대비 백분율)
  • 완료된 시스템 호출: 이름과 주소, 실행 횟수, 전체 CPU 시간(밀리초와 백분율)과 평균·최소·최대 실행 시간
  • 보류 중인 시스템 호출(trace가 끝날 때까지 돌아오지 않은 호출): 이름과 주소, 호출한 스레드나 프로세스, 그동안 쓴 CPU 시간(밀리초)
  • 완료된 하이퍼바이저 호출: 이름과 주소, 실행 횟수, 전체 CPU 시간(밀리초와 백분율)과 평균·최소·최대 실행 시간
  • 보류 중인 하이퍼바이저 호출(trace가 끝날 때까지 끝나지 않은 호출): 이름과 주소, 호출한 스레드나 프로세스, 그동안 쓴 CPU 시간(밀리초)
  • 완료된 pthread 호출: pthread 루틴 이름, 실행 횟수, 전체 CPU 시간(밀리초)과 평균·최소·최대 실행 시간
  • 보류 중인 pthread 호출(trace가 끝날 때까지 돌아오지 않은 호출): pthread 호출 이름, 호출한 프로세스·스레드·pthread, 그동안 쓴 CPU 시간(밀리초)
  • 완료된 NFS 작업: NFS 작업 이름, 실행 횟수, 전체 CPU 시간(밀리초와 백분율)과 평균·최소·최대 실행 시간
  • 보류 중인 NFS 작업(trace가 끝날 때까지 끝나지 않은 작업): NFS V2/V3는 순서 번호, NFS V4는 opcode, 작업을 한 스레드나 프로세스, 그동안 쓴 CPU 시간(밀리초)
  • 1차 인터럽트 처리기(FLIH): 인터럽트 유형, 발생 횟수, 처리에 쓴 전체 CPU 시간과 평균·최소·최대 시간. 모든 CPU와 CPU마다 보여 주며, 보류 중인 FLIH(trace가 끝날 때까지 resume이 없는 것)가 있으면 CPU마다 그동안 쓴 시간과 FLIH 유형을 보고합니다.
  • 2차 인터럽트 처리기(SLIH): 처리기 이름과 주소, 호출 횟수, 처리에 쓴 전체 CPU 시간과 평균·최소·최대 시간. 모든 CPU와 CPU마다 보여 주며, 보류 중인 SLIH(trace가 끝날 때까지 돌아오지 않은 것)가 있으면 CPU마다 그동안 쓴 시간과 SLIH 이름, 주소를 보고합니다.

특별한 보고서를 더 만들려면 다음 플래그로 curt 명령을 실행합니다.

플래그 설명
-e System Calls Summary, Pending System Calls Summary, Hypervisor Calls Summary, Pending Hypervisor Calls Summary, System NFS Calls Summary, Pending NFS Calls Summary, Pthread Calls Summary, Pending Pthread Calls Summary 보고서에 통계와 정보를 더합니다. 더해지는 것은 호출이 실행되던 동안의 전체·평균·최대·최소 경과 시간입니다.
-s 시스템 호출이 돌려준 오류 목록 보고서를 만듭니다.
-t 스레드 상태를 자세히 보고합니다. 스레드가 응용 프로그램 모드와 시스템 호출 모드에 있던 CPU 시간, 스레드가 낸 시스템 호출, 프로세서 친화도, 디스패치 횟수와 디스패치된 CPU가 들어가며 디스패치 대기 시간과 인터럽트 정보도 들어갑니다.
-p 프로세스 상태를 자세히 보고합니다. 프로세스가 응용 프로그램 모드와 시스템 호출 모드에 있던 CPU 시간, 응용 프로그램 시간 세부, 프로세스에 속한 스레드와 pthread, 프로세스가 낸 pthread 호출과 시스템 호출이 들어갑니다.
-P pthread 상태를 자세히 보고합니다. pthread가 응용 프로그램 모드와 시스템 호출 모드에 있던 CPU 시간, pthread가 낸 시스템 호출과 pthread 호출, 프로세서 친화도, 디스패치 횟수와 디스패치된 CPU, 스레드 친화도, 디스패치된 커널 스레드가 들어가며 디스패치 대기 시간과 인터럽트 정보도 들어갑니다.
영어 원문

Overview of information generated by the curt command

Review the following information to learn the different information that is generated by the curt command, and how you generate specialized reports.

The following is an overview of the content of the report that the curt command generates:

  • A report header, including the trace file name, the trace size, and the date and time the trace was taken. The header also includes the command that was used when the trace was run. If the PURR register was used to calculate CPU times, this information is also included in the report header.

  • For each CPU (and a summary of all the CPUs), processing time expressed in milliseconds and as a percentage (idle and non-idle percentages are included) for various CPU usage categories.

  • For each CPU (and a summary of all the CPUs), processing time expressed in milliseconds and as a percentage for CPU usage in application mode for various application usage categories.

  • Average thread affinity across all CPUs and for each individual CPU.

  • For each CPU (and for all the CPUs), the Physical CPU time spent and the percentage of total time this represents.

  • Average physical CPU affinity across all CPUs and for each individual CPU.

  • The physical CPU dispatch histogram of each CPU.

  • The number of preemptions, and the number of H_CEDE and H_CONFER hypervisor calls for each individual CPU.

  • The total number of idle and non-idle process dispatches for each individual CPU.

  • Average pthread affinity across all CPUs and for each individual CPU.

  • The total number of idle and non-idle pthread dispatches for each individual CPU.

  • Information on the amount of CPU time spent in application and system call (syscall) mode expressed in milliseconds and as a percentage by thread, process, and process type. Also included are the number of threads per process and per process type.

  • Information on the amount of CPU time spent executing each kernel process, including the idle process, expressed in milliseconds and as a percentage of the total CPU time.

  • Information on the amount of CPU time spent executing calls to libpthread, expressed in milliseconds and as percentages of the total time and the total application time.

  • Information on completed system calls that includes the name and address of the system call, the number of times the system call was executed, and the total CPU time expressed in milliseconds and as a percentage with average, minimum, and maximum time the system call was running.

  • Information on pending system calls, that is, system calls for which the system call return has not occurred at the end of the trace. The information includes the name and address of the system call, the thread or process which made the system call, and the accumulated CPU time the system call was running expressed in milliseconds.

  • Information on completed hypervisor calls that includes the name and address of the hypervisor call, the number of times the hypervisor call was executed, and the total CPU time expressed in milliseconds and as a percentage with average, minimum, and maximum time the hypervisor call was running.

  • Information on pending hypervisor calls, which are hypervisor calls that were not completed by the end of the trace. The information includes the name and address of the hypervisor call, the thread or process which made the hypervisor call, and the accumulated CPU time the hypervisor call was running, expressed in milliseconds.

  • Information on completed pthread calls that includes the name of the pthread call routine, the number of times the pthread call was executed, and the total CPU time expressed in milliseconds and the average, minimum, and maximum time the pthread call was running.

  • Information on pending pthread calls, that is, pthread calls for which the pthread call return has not occurred at the end of the trace. The information includes the name of the pthread call, the process, the thread and the pthread which made the pthread call, and the accumulated CPU time the pthread call was running expressed in milliseconds.

  • Information on completed NFS operations that includes the name of the NFS operation, the number of times the NFS operation was executed, and the total CPU time, expressed in milliseconds, and as a percentage with average, minimum, and maximum time the NFS operation call was running.

  • Information on pending NFS operations, where the NFS operations did not complete before the end of the trace. The information includes the sequence number for NFS V2/V3, or opcode for NFS V4, the thread or process which made the NFS operation, and the accumulated CPU time that the NFS operation was running, expressed in milliseconds.

  • Information on the first level interrupt handlers (FLIHs) that includes the type of interrupt, the number of times the interrupt occurred, and the total CPU time spent handling the interrupt with average, minimum, and maximum time. This information is given for all CPUs and for each individual CPU. If there are any pending FLIHs (FLIHs for which the resume has not occurred at the end of the trace), for each CPU the accumulated time and the pending FLIH type is reported.

  • Information on the second level interrupt handlers (SLIHs), which includes the interrupt handler name and address, the number of times the interrupt handler was called, and the total CPU time spent handling the interrupt with average, minimum, and maximum time. This information is given for all CPUs and for each individual CPU. If there are any pending SLIHs (SLIHs for which the return has not occurred at the end of the trace), the accumulated time and the pending SLIH name and address is reported for each CPU.

To create additional, specialized reports, run the curt command using the following flags:

  • -e — Produces reports containing statistics and additional information on the System Calls Summary Report, Pending System Calls Summary Report, Hypervisor Calls Summary Report, Pending Hypervisor Calls Summary Report, System NFS Calls Summary Report, Pending NFS Calls Summary, Pthread Calls Summary, and the Pending Pthread Calls Summary. The additional information pertains to the total, average, maximum, and minimum elapsed times that a system call was running.
  • -s — Produces a report containing a list of errors returned by system calls.
  • -t — Produces a report containing a detailed report on thread status that includes the amount of CPU time the thread was in application and system call mode, what system calls the thread made, processor affinity, the number of times the thread was dispatched, and to which CPU(s) it was dispatched. The report also includes dispatch wait time and details of interrupts.
  • -p — Produces a report containing a detailed report on process status that includes the amount of CPU time the process was in application and system call mode, application time details, threads that were in the process, pthreads that were in the process, pthread calls that the process made and system calls that the process made.
  • -P — Produces a report containing a detailed report on pthread status that includes the amount of CPU time the pthread was in application and system call mode, system calls made by the pthread, pthread calls made by the pthread, processor affinity, the number of times the pthread was dispatched and to which CPU(s) it was dispatched, thread affinity, and the number of times the pthread was dispatched and to which kernel thread(s) it was dispatched. The report also includes dispatch wait time and details of interrupts.

curt 명령의 기본 보고서

curt 명령의 출력에는 앞 절의 플래그를 써도 이 기본 보고서가 항상 들어갑니다.

이 절은 다음 명령으로 만든 기본 보고서를 설명합니다.

text
# curt -i trace.r -n gensyms.out -o curt.out

일반 정보(General information)

일반 정보에는 보고서를 만든 날짜와 시각, 이어서 보고서를 만든 curt 명령줄이 나옵니다.

curt가 처리한 AIX trace 파일 정보(파일 이름, 크기, 만든 날짜)도 들어 있습니다. trace를 수집하려고 AIX trace 기능을 실행한 명령은 이 부분의 끝에 나옵니다.

일반 정보의 예입니다.

text
Run on Wed Apr 26 10:51:33 2XXX
Command line was:
curt -i trace.raw -n gensyms.out -o curt.out
----
AIX trace file name = trace.raw
AIX trace file size = 787848
Wed Apr 26 10:50:11 2XXX
System: AIX 5.3 Node: bu Machine: 00CFEDAD4C00
AIX trace file created = Wed Apr 26 10:50:11 2XXX
Command used to gather AIX trace was:
  trace -n -C all -d -j 100,101,102,103,104,106,10C,134,139,200,215,419,465,47F,488,489,48A,48D,492,605,609
  -L 1000000 -T 1000000 -afo trace.raw

시스템 요약(System summary)

시스템 요약은 시스템 전체(모든 CPU)가 여러 실행 모드에서 쓴 시간을 보여 줍니다.

시스템 요약의 예입니다.

text
               System Summary
               --------------
 processing       percent       percent
 total time    total time     busy time
     (msec)  (incl. idle)  (excl. idle)  processing category
===========   ===========   ===========  ===================
    4998.65         45.94         75.21  APPLICATION
     591.59          5.44          8.90  SYSCALL
     110.40          1.02          1.66  HCALL
      48.33          0.44          0.73  KPROC (excluding IDLE and NFS)
     352.23          3.24          5.30  NFS
     486.19          4.47          7.32  FLIH
      49.10          0.45          0.74  SLIH
       8.83          0.08          0.13  DISPATCH (all procs. incl. IDLE)
       1.04          0.01          0.02  IDLE DISPATCH (only IDLE proc.)
-----------    ----------       -------
    6646.36         61.08        100.00  CPU(s) busy time
    4234.76         38.92                IDLE
-----------    ----------
   10881.12                              TOTAL
Avg. Thread Affinity =        0.99
Total Physical CPU time (msec) = 20417.45
Physical CPU percentage        = 100.00%

시스템 요약의 필드는 다음과 같습니다.

필드 설명
processing total time 해당 처리 범주의 전체 시간(밀리초)
percent total time 첫 열의 시간이 모든 프로세서의 trace 경과 시간 합에서 차지하는 백분율. 각 프로세서가 IDLE 프로세스를 실행한 시간도 포함합니다.
percent busy time 첫 열의 시간이 모든 프로세서의 trace 경과 시간 합에서 차지하는 백분율. 각 프로세서가 IDLE 프로세스를 실행한 시간은 뺍니다.
Avg. Thread Affinity 스레드가 마지막으로 실행된 프로세서에 다시 디스패치될 확률
Total Physical CPU time 가상 프로세서가 선점되지 않고 실행된 실제 시간
Physical CPU percentage 물리 CPU 시간이 전체 시간에서 차지하는 백분율

실행 모드(처리 범주)의 뜻은 다음과 같습니다.

범주 설명
APPLICATION 모든 프로세서가 사용자 모드(특권이 없는 모드)에서 쓴 시간의 합
SYSCALL 모든 프로세서가 시스템 호출을 처리한 시간의 합. 사용자 프로세스가 직접 요청한 서비스를 커널 코드에서 실행한 시간입니다.
HCALL 모든 프로세서가 하이퍼바이저 호출을 처리한 시간의 합. 커널이 직접 요청한 서비스를 하이퍼바이저 코드에서 실행한 시간입니다.
KPROC 모든 프로세서가 IDLE과 NFS 프로세스를 뺀 커널 프로세스를 실행한 시간의 합. 커널 코드만 실행하도록 특별히 만든 디스패치 가능한 프로세스를 실행한 시간입니다.
NFS 모든 프로세서가 NFS 작업을 실행한 시간의 합. 커널 프로세스가 직접 요청한 NFS 서비스를 커널 코드에서 실행한 시간입니다.
FLIH 모든 프로세서가 FLIH를 실행한 시간의 합
SLIH 모든 프로세서가 SLIH를 실행한 시간의 합
DISPATCH 모든 프로세서가 AIX 디스패치 코드를 실행한 시간의 합. 모든 스레드의 디스패치(IDLE 프로세스 디스패치 포함)에 쓴 시간입니다.
IDLE DISPATCH 모든 프로세서가 IDLE 프로세스를 디스패치하는 AIX 디스패치 코드를 실행한 시간의 합. DISPATCH에 이미 들어 있으므로 CPU(s) busy time이나 TOTAL을 계산할 때 따로 더하지 않습니다.
CPU(s) busy time 모든 프로세서가 APPLICATION, SYSCALL, KPROC, FLIH, SLIH, DISPATCH 모드에서 쓴 시간의 합
IDLE 모든 프로세서가 IDLE 프로세스를 실행한 시간의 합
TOTAL CPU(s) busy time과 IDLE의 합

위 예에서 CPU는 대부분의 시간을 응용 프로그램 모드에서 씁니다. IDLE 시간이 아직 4234.76ms 있으므로 응용 프로그램을 실행할 CPU는 충분합니다. CPU 능력이 모자라면 IDLE 시간이 거의 없을 것입니다. Avg. Thread Affinity가 0.99로 프로세서 친화도가 좋습니다. 곧 스레드가 다시 실행될 준비가 되면 같은 프로세서로 돌아갑니다.

시스템 응용 프로그램 요약(System application summary)

시스템 응용 프로그램 요약은 시스템 전체(모든 CPU)가 응용 프로그램 안의 여러 실행 모드에서 쓴 시간을 보여 줍니다.

예입니다.

text
                     System Application Summary
                     --------------------------
 processing       percent      percent
 total time    total time  application
     (msec)  (incl. idle)        time   processing category
===========   ===========  ===========  ===================
       3.95         0.42          0.07  PTHREAD
       4.69         0.49          0.09  PDISPATCH
       0.13         0.01          0.00  PIDLE
    5356.99       563.18         99.84  OTHER
-----------    ----------      -------
    5365.77       564.11        100.00  APPLICATION
Avg. Pthread Affinity =        0.84

필드는 다음과 같습니다.

필드 설명
processing total time 해당 처리 범주의 전체 시간(밀리초)
percent total time 첫 열의 시간이 모든 프로세서의 trace 경과 시간 합에서 차지하는 백분율(IDLE 실행 시간 포함)
percent application time 첫 열의 시간이 모든 프로세서의 응용 프로그램 경과 시간 합에서 차지하는 백분율
Avg. Pthread Affinity pthread가 마지막으로 실행된 커널 스레드에 다시 디스패치될 확률

실행 모드(처리 범주)의 뜻은 다음과 같습니다.

범주 설명
PTHREAD 모든 프로세서의 모든 pthread가 추적되는 pthread 라이브러리 호출에서 쓴 시간의 합
PDISPATCH 모든 프로세서의 모든 pthread가 libpthreads 디스패치 코드를 실행한 시간의 합
PIDLE 모든 프로세서의 모든 커널 스레드가 libpthreads vp_sleep 코드를 실행한 시간의 합
OTHER 모든 프로세서의 모든 pthread가 추적되지 않는 사용자 모드에서 쓴 시간의 합
APPLICATION 모든 프로세서가 사용자 모드(특권이 없는 모드)에서 쓴 시간의 합

프로세서 요약과 프로세서 응용 프로그램 요약(Processor summary, processor application summary)

이 부분은 프로세서마다 따로 보여 줍니다.

시스템 요약과 시스템 응용 프로그램 요약의 설명이 그대로 적용되며, 시스템 전체가 아니라 프로세서 하나를 다룬다는 점만 다릅니다.

예입니다.

text
             Processor Summary  processor number 0
             ---------------------------------------
 processing       percent       percent
 total time    total time     busy time
     (msec)  (incl. idle)  (excl. idle)  processing category
===========   ===========   ===========  ===================
      45.07          0.88          5.16  APPLICATION
     591.39         11.58         67.71  SYSCALL
       0.00          0.00          0.00  HCALL
      47.83          0.94          5.48  KPROC (excluding IDLE and NFS)
       0.00          0.00          0.00  NFS
     173.78          3.40         19.90  FLIH
       9.27          0.18          1.06  SLIH
       6.07          0.12          0.70  DISPATCH (all procs. incl. IDLE)
       1.04          0.02          0.12  IDLE DISPATCH (only IDLE proc.)
-----------    ----------       -------
     873.42         17.10        100.00  CPU(s) busy time
    4232.92         82.90                IDLE
-----------    ----------
    5106.34                              TOTAL
Avg. Thread Affinity =        0.98
Total number of process dispatches  = 1620
Total number of idle dispatches = 782
Total Physical CPU time (msec) = 3246.25
Physical CPU percentage        = 63.57%
Physical processor affinity    = 0.50
Dispatch Histogram for processor (PHYSICAL CPUid : times_dispatched).
    PROC  0 : 15
    PROC 24 : 15
Total number of preemptions = 30
Total number of H_CEDE      = 6      with preeemption = 3
Total number of H_CONFER    = 3      with preeemption = 2
              Processor Application Summary  processor 0
              ------------------------------------------
 processing       percent       percent
 total time    total time   application
     (msec)  (incl. idle)         time   processing category
===========   ===========   ===========  ===================
       1.66          0.04          0.06  PTHREAD
       2.61          0.05          0.10  PDISPATCH
       0.00          0.00          0.00  PIDLE
    2685.12         56.67         99.84  OTHER
-----------    ----------       -------
    2689.39         56.76        100.00  APPLICATION
Avg. Pthread Affinity =        0.78
Total number of pthread dispatches  = 104
Total number of pthread idle dispatches  = 0
               Processor Summary  processor number 1
               ---------------------------------------
 processing       percent       percent
 total time    total time     busy time
     (msec)  (incl. idle)  (excl. idle)  processing category
===========   ===========   ===========  ===================
    4985.81         97.70         97.70  APPLICATION
       0.09          0.00          0.00  SYSCALL
       0.00          0.00          0.00  HCALL
       0.00          0.00          0.00  KPROC (excluding IDLE and NFS)
       0.00          0.00          0.00  NFS
     103.86          2.04          2.04  FLIH
      12.54          0.25          0.25  SLIH
       0.97          0.02          0.02  DISPATCH (all procs. incl. IDLE)
       0.00          0.00          0.00  IDLE DISPATCH (only IDLE proc.)
-----------    ----------       -------
    5103.26        100.00        100.00  CPU(s) busy time
       0.00          0.00                IDLE
-----------    ----------
    5103.26                              TOTAL
Avg. Thread Affinity =        0.99
Total number of process dispatches  = 516
Total number of idle dispatches = 0
Total Physical CPU time (msec) = 5103.26
Physical CPU percentage        = 100.00%
Physical processor affinity    = 1.00
Dispatch Histogram for processor (PHYSICAL CPUid : times_dispatched).
Total number of preemptions = 0
Total number of H_CEDE      = 0      with preeemption = 0
Total number of H_CONFER    = 0      with preeemption = 0
              Processor Application Summary  processor 1
              ------------------------------------------
 processing       percent       percent
 total time    total time   application
     (msec)  (incl. idle)         time   processing category
===========   ===========   ===========  ===================
       2.29          0.05          0.09  PTHREAD
       2.09          0.04          0.08  PDISPATCH
       0.13          0.00          0.00  PIDLE
    2671.86         56.40         99.83  OTHER
-----------    ----------       -------
    2676.38         56.49        100.00  APPLICATION
Avg. Pthread Affinity =        0.83
Total number of pthread dispatches  = 91
Total number of pthread idle dispatches  = 5

위 예의 용어입니다.

용어 설명
Total number of process dispatches AIX가 그 프로세서에 IDLE이 아닌 프로세스를 디스패치한 횟수
Total number of idle dispatches IDLE 프로세스를 디스패치한 횟수
Total number of pthread dispatches 그 프로세서에서 libpthreads 디스패처가 실행된 횟수
Total number of pthread idle dispatches vp_sleep 호출 횟수

스레드 ID별 응용 프로그램 요약(Application summary by Tid)

trace를 수집하는 동안 시스템에서 실행된 모든 스레드와 그 CPU 사용량을 보여 줍니다. 그동안 CPU 시간을 가장 많이 쓴 스레드가 맨 위에 나옵니다.

text
          Application Summary (by Tid)
          ----------------------------
  -- processing total (msec) --   -- percent of total processing time --
 combined  application  syscall  combined  application      syscall  name (Pid  Tid)
 ========  ===========  =======  ========  ===========      =======  ===================
4986.2355    4986.2355   0.0000   24.4214      24.4214       0.0000  cpu(18418  32437)
4985.8051    4985.8051   0.0000   24.4193      24.4193       0.0000  cpu(19128  33557)
4982.0331    4982.0331   0.0000   24.4009      24.4009       0.0000  cpu(18894  28671)
  83.8436       2.5062  81.3374    0.4106       0.0123       0.3984  disp+work(20390  28397)
  72.5809       2.7269  69.8540    0.3555       0.0134       0.3421  disp+work(18584  32777)
  69.8023       2.5351  67.2672    0.3419       0.0124       0.3295  disp+work(19916  33033)
  63.6399       2.5032  61.1368    0.3117       0.0123       0.2994  disp+work(17580  30199)
  63.5906       2.2187  61.3719    0.3115       0.0109       0.3006  disp+work(20154  34321)
  62.1134       3.3125  58.8009    0.3042       0.0162       0.2880  disp+work(21424  31493)
  60.0789       2.0590  58.0199    0.2943       0.0101       0.2842  disp+work(21992  32539)
 ...(lines omitted)...

출력은 크게 두 부분입니다.

  • 스레드의 전체 처리 시간(밀리초): processing total (msec)
  • 스레드가 쓴 CPU 시간이 전체 CPU 시간에서 차지하는 백분율: percent of total processing time

필드는 다음과 같습니다.

필드 설명
name (Pid Tid) 스레드가 속한 프로세스 이름, 프로세스 ID, 스레드 ID

processing total (msec)의 값은 다음과 같습니다.

값 설명
combined 스레드가 응용 프로그램 모드나 시스템 호출 모드에서 실행된 전체 CPU 시간(밀리초)
application 스레드가 응용 프로그램 모드에서 쓴 CPU 시간(밀리초)
syscall 스레드가 시스템 호출 모드에서 쓴 CPU 시간(밀리초)

percent of total processing time의 값은 다음과 같습니다.

값 설명
combined 스레드가 실행된 CPU 시간이 전체 처리 시간에서 차지하는 백분율
application 스레드가 응용 프로그램 모드에서 쓴 CPU 시간의 백분율
syscall 스레드가 시스템 호출 모드에서 쓴 CPU 시간의 백분율

위 예에서 시스템이 왜 응용 프로그램 모드에 시간을 많이 쓰는지는 Application Summary (by Tid)를 보면 알 수 있습니다. 상위 세 프로세스는 CPU 시간을 많이 쓰는 시험 프로그램 cpu입니다. CPU가 대부분의 시간을 응용 프로그램 모드에서 cpu 프로세스를 실행하는 데 썼으므로, 시스템 성능을 높이려면 cpu 프로세스를 최적화할 후보로 봅니다.

프로세스 ID별 응용 프로그램 요약(Application summary by Pid)

스레드 ID별 요약과 내용은 같지만, 같은 프로세스에 속한 스레드를 합치고 그동안 CPU 시간을 가장 많이 쓴 프로세스를 맨 앞에 둡니다.

name (PID) (Thread Count) 열은 프로세스 이름, 프로세스 ID, 이 줄에 합쳐진 그 프로세스의 스레드 수입니다.

text
                          Application Summary (by Pid)
                          ----------------------------
  -- processing total (msec) --   -- percent of total processing time --
 combined  application  syscall  combined  application  syscall  name (Pid)(Thread Count)
 ========  ===========  =======  ========  ===========  =======  ===================
4986.2355    4986.2355   0.0000   24.4214      24.4214   0.0000  cpu(18418)(1)
4985.8051    4985.8051   0.0000   24.4193      24.4193   0.0000  cpu(19128)(1)
4982.0331    4982.0331   0.0000   24.4009      24.4009   0.0000  cpu(18894)(1)
  83.8436       2.5062  81.3374    0.4106       0.0123   0.3984  disp+work(20390)(1)
  72.5809       2.7269  69.8540    0.3555       0.0134   0.3421  disp+work(18584)(1)
  69.8023       2.5351  67.2672    0.3419       0.0124   0.3295  disp+work(19916)(1)
  63.6399       2.5032  61.1368    0.3117       0.0123   0.2994  disp+work(17580)(1)
  63.5906       2.2187  61.3719    0.3115       0.0109   0.3006  disp+work(20154)(1)
  62.1134       3.3125  58.8009    0.3042       0.0162   0.2880  disp+work(21424)(1)
  60.0789       2.0590  58.0199    0.2943       0.0101   0.2842  disp+work(21992)(1)
...(lines omitted)...

프로세스 유형별 응용 프로그램 요약(Application summary by process type)

이름이 같은 프로세스를 모두 합쳐 combined 처리 시간이 큰 순서로 정렬합니다.

name (thread count) 열은 프로세스 이름과, 그동안 시스템에서 실행된 그 이름(유형)의 프로세스에 속한 스레드 수입니다.

text
                   Application Summary (by process type)
               -----------------------------------------------
   -- processing total (msec) --    -- percent of total processing time --
  combined  application   syscall  combined  application  syscall  name (thread count)
  ========  ===========   =======  ========  ===========  =======  ==================
14954.0738   14954.0738    0.0000   73.2416      73.2416   0.0000  cpu(3)
  573.9466      21.2609  552.6857    2.8111       0.1041   2.7069  disp+work(9)
   20.9568       5.5820   15.3748    0.1026       0.0273   0.0753  trcstop(1)
   10.6151       2.4241    8.1909    0.0520       0.0119   0.0401  i4llmd(1)
    8.7146       5.3062    3.4084    0.0427       0.0260   0.0167  dtgreet(1)
    7.6063       1.4893    6.1171    0.0373       0.0073   0.0300  sleep(1)
...(lines omitted)...

스레드 ID별 커널 프로세스 요약(Kproc summary by Tid)

trace를 수집하는 동안 실행된 모든 커널 프로세스 스레드와 그 CPU 사용량을 보여 줍니다. CPU 시간을 가장 많이 쓴 스레드가 맨 앞에 나옵니다.

text
                    Kproc Summary  (by Tid)
                    -----------------------
   -- processing total (msec) --          --   percent of total  time   --
  combined       kernel    operation     combined       kernel    operation  name (Pid Tid Type)
  ========       ======  ===========     ========       ======  ===========  ===================
 1930.9312    1930.9312       0.0000      13.6525      13.6525       0.0000  wait(8196  8197 W)
    2.1674       2.1674       0.0000       0.0153       0.0153       0.0000  .WSMRefreshServe(0  3 -)
    1.9034       1.9034       1.8020       0.0135       0.0135       0.0128  nfsd(36882  49177 N)
    0.6609       0.5789       0.0820       0.0002       0.0002       0.0000  kbiod(8050  86295 N)
 ...(lines omitted)...
                              Kproc Types
                              -----------
Type Function                       Operation
==== ============================   ==========================
 W   idle thread                    -
 N   NFS daemon                     NFS Remote Procedure Calls

필드는 다음과 같습니다.

필드 설명
name (Pid Tid Type) 스레드가 속한 커널 프로세스 이름, 프로세스 ID, 스레드 ID, 유형. 커널 프로세스 유형은 이 요약 뒤의 Kproc Types 목록에 나옵니다.

processing total (msec)의 값입니다.

값 설명
combined 스레드가 operation 모드나 kernel 모드에서 실행된 전체 CPU 시간(밀리초)
kernel 스레드가 식별되지 않은 커널 모드에서 쓴 CPU 시간(밀리초)
operation 스레드가 추적된 작업에서 쓴 CPU 시간(밀리초)

percent of total time의 값입니다.

값 설명
combined 스레드가 실행된 CPU 시간이 전체 처리 시간에서 차지하는 백분율
kernel 식별되지 않은 커널 모드에서 쓴 CPU 시간의 백분율
operation 추적된 작업에서 쓴 CPU 시간의 백분율

Kproc Types의 열입니다.

열 설명
Type 이 목록의 색인으로 쓰는 글자 한 개
Function 이 유형의 커널 프로세스가 맡는 일
Operation 이 유형의 커널 프로세스에서 추적되는 작업

프로세스 ID별 응용 프로그램 pthread 요약(Application Pthread summary by Pid)

trace를 수집하는 동안 실행되면서 pthread 호출에 시간을 쓴 모든 다중 스레드 프로세스와 그 CPU 사용량을 보여 줍니다. CPU 시간을 가장 많이 쓴 프로세스가 맨 앞에 나옵니다.

text
                    Application Pthread Summary (by Pid)
                    ------------------------------------
   -- processing total (msec) --     -- percent of total application time --
application       other     pthread  application       other      pthread   name (Pid)(Pthread Count)
===========  ==========  ==========  ===========  ==========   ==========   =========================
  1277.6602   1274.9354      2.7249    23.8113       23.7605       0.0508   ./pth(245964)(52)
   802.6445    801.4162      1.2283    14.9586       14.9357       0.0229   ./pth32(245962)(12)
 ...(lines omitted)...

출력은 크게 두 부분입니다.

  • 프로세스의 전체 처리 시간(밀리초): processing total (msec)
  • 프로세스가 쓴 CPU 시간이 전체 응용 프로그램 시간에서 차지하는 백분율

필드는 다음과 같습니다.

필드 설명
name (Pid) (Pthread Count) 프로세스 ID에 해당하는 프로세스 이름과 그 프로세스의 pthread 수

processing total (msec)의 값입니다.

값 설명
application 프로세스가 사용자 모드에서 실행된 전체 CPU 시간(밀리초)
pthread 프로세스가 추적되는 pthread 라이브러리 호출에서 쓴 CPU 시간(밀리초)
other 프로세스가 추적되지 않는 사용자 모드에서 쓴 CPU 시간(밀리초)

percent of total application time의 값입니다.

값 설명
application 사용자 모드에서 실행된 CPU 시간이 전체 응용 프로그램 시간에서 차지하는 백분율
pthread pthread 라이브러리 호출에서 쓴 CPU 시간의 백분율
other 추적되지 않는 사용자 모드에서 쓴 CPU 시간의 백분율

시스템 호출 요약(System calls summary)

그동안 실행을 마친 모든 시스템 호출의 목록입니다. 시스템 호출 유형마다 쓴 전체 CPU 시간(밀리초)으로 정렬합니다.

text
                             System Calls Summary
                             --------------------
    Count   Total Time   % sys  Avg Time  Min Time  Max Time  SVC (Address)
                (msec)    time    (msec)    (msec)    (msec)
 ========  ===========  ======  ========  ========  ========  ================
      605     355.4475   1.74%    0.5875    0.0482    4.5626  kwrite(4259c4)
      733     196.3752   0.96%    0.2679    0.0042    2.9948  kread(4259e8)
        3       9.2217   0.05%    3.0739    2.8888    3.3418  execve(1c95d8)
       38       7.6013   0.04%    0.2000    0.0051    1.6137  __loadx(1c9608)
     1244       4.4574   0.02%    0.0036    0.0010    0.0143  lseek(425a60)
       45       4.3917   0.02%    0.0976    0.0248    0.1810  access(507860)
       63       3.3929   0.02%    0.0539    0.0294    0.0719  _select(4e0ee4)
        2       2.6761   0.01%    1.3380    1.3338    1.3423  kfork(1c95c8)
      207       2.3958   0.01%    0.0116    0.0030    0.1135  _poll(4e0ecc)
      228       1.1583   0.01%    0.0051    0.0011    0.2436  kioctl(4e07ac)
        9       0.8136   0.00%    0.0904    0.0842    0.0988  .smtcheckinit(1b245a8)
        5       0.5437   0.00%    0.1087    0.0696    0.1777  open(4e08d8)
       15       0.3553   0.00%    0.0237    0.0120    0.0322  .smtcheckinit(1b245cc)
        2       0.2692   0.00%    0.1346    0.1339    0.1353  statx(4e0950)
       33       0.2350   0.00%    0.0071    0.0009    0.0210  _sigaction(1cada4)
        1       0.1999   0.00%    0.1999    0.1999    0.1999  kwaitpid(1cab64)
      102       0.1954   0.00%    0.0019    0.0013    0.0178  klseek(425a48)
...(lines omitted)...

필드는 다음과 같습니다.

필드 설명
Count 그동안 해당 유형(SVC (Address) 참고)의 시스템 호출이 불린 횟수
Total Time (msec) 시스템이 이 시스템 호출들을 처리하는 데 쓴 전체 CPU 시간(밀리초)
% sys time 이 시스템 호출들을 처리하는 데 쓴 전체 CPU 시간이 전체 처리 시간에서 차지하는 백분율
Avg Time (msec) 이 유형의 시스템 호출 하나를 처리하는 데 쓴 평균 CPU 시간(밀리초)
Min Time (msec) 이 유형의 시스템 호출 하나를 처리하는 데 걸린 최소 CPU 시간(밀리초)
Max Time (msec) 이 유형의 시스템 호출 하나를 처리하는 데 걸린 최대 CPU 시간(밀리초)
SVC (Address) 시스템 호출 이름과 커널 주소

보류 중인 시스템 호출 요약(Pending system calls summary)

그동안 실행되었지만 끝나지 않은 모든 시스템 호출의 목록입니다. Tid 순으로 정렬합니다.

text
                     Pending System Calls Summary
                     ----------------------------
Accumulated   SVC (Address)               Procname (Pid  Tid)
Time (msec)
============  =========================  ==========================
      0.0656  _select(4e0ee4)            sendmail(7844 5001)
      0.0452  _select(4e0ee4)            syslogd(7514 8591)
      0.0712  _select(4e0ee4)            snmpd(5426 9293)
      0.0156  kioctl(4e07ac)             trcstop(47210 18379)
      0.0274  kwaitpid(1cab64)           ksh(20276 44359)
      0.0567  kread4259e8)               ksh(23342 50873)
 ...(lines omitted)...

필드는 다음과 같습니다.

필드 설명
Accumulated Time (msec) 보류 중인 시스템 호출을 처리하는 데 지금까지 쓴 CPU 시간(밀리초)
SVC (Address) 시스템 호출 이름과 커널 주소
Procname (Pid Tid) 시스템 호출을 낸 스레드가 속한 프로세스 이름, 프로세스 ID, 스레드 ID

하이퍼바이저 호출 요약(Hypervisor calls summary)

그동안 실행을 마친 모든 하이퍼바이저 호출의 목록입니다. 하이퍼바이저 호출 유형마다 쓴 전체 CPU 시간(밀리초)으로 정렬합니다.

text
                     Hypervisor Calls Summary
                     ------------------------
   Count   Total Time   % sys  Avg Time  Min Time  Max Time  HCALL (Address)
               (msec)    time    (msec)    (msec)    (msec)
========  ===========  ======  ========  ========  ========  =================
       4       0.0077   0.00%    0.0019    0.0014    0.0025  H_XIRR(3ada19c)
       4       0.0070   0.00%    0.0017    0.0015    0.0021  H_EOI(3ad6564)

필드는 다음과 같습니다.

필드 설명
Count 그동안 해당 유형의 하이퍼바이저 호출이 불린 횟수
Total Time (msec) 이 유형의 하이퍼바이저 호출을 처리하는 데 쓴 전체 CPU 시간(밀리초)
% sys Time 이 유형의 하이퍼바이저 호출을 처리하는 데 쓴 전체 CPU 시간이 전체 처리 시간에서 차지하는 백분율
Avg Time (msec) 이 유형의 하이퍼바이저 호출 하나를 처리하는 데 쓴 평균 CPU 시간(밀리초)
Min Time (msec) 하나를 처리하는 데 걸린 최소 CPU 시간(밀리초)
Max Time (msec) 하나를 처리하는 데 걸린 최대 CPU 시간(밀리초)
HCALL (address) 하이퍼바이저 호출 이름과 호출한 쪽의 커널 주소

보류 중인 하이퍼바이저 호출 요약(Pending Hypervisor calls summary)

그동안 실행되었지만 끝나지 않은 모든 하이퍼바이저 호출의 목록입니다. Tid 순으로 정렬합니다.

text
                     Pending Hypervisor Calls Summary
                     --------------------------------
Accumulated   HCALL (Address)             Procname (Pid  Tid)
Time (msec)
============  =========================  ==========================
      0.0066  H_XIRR(3ada19c)            syncd(3916 5981)

필드는 다음과 같습니다.

필드 설명
Accumulated Time (msec) 보류 중인 하이퍼바이저 호출을 처리하는 데 지금까지 쓴 CPU 시간(밀리초)
HCALL (address) 하이퍼바이저 호출 이름과 호출한 쪽의 커널 주소
Procname (Pid Tid) 하이퍼바이저 호출을 낸 스레드가 속한 프로세스 이름, 프로세스 ID, 스레드 ID

시스템 NFS 호출 요약(System NFS calls summary)

그동안 실행을 마친 모든 시스템 NFS 호출의 목록입니다. NFS 버전별로 나누고, 각 목록은 호출 유형마다 쓴 전체 CPU 시간(밀리초)으로 정렬합니다.

text
                     System NFS Calls Summary
                     ------------------------
   Count   Total Time  Avg Time  Min Time  Max Time  % Tot  % Tot  Opcode
               (msec)    (msec)    (msec)    (msec)   Time  Count
========  ===========  ========  ========  ========  =====  =====  =============
     253      48.4115    0.1913    0.0952    1.0097  98.91  98.83  RFS2_READLINK
       2       0.3959    0.1980    0.1750    0.2209   0.81   0.78  RFS2_LOOKUP
       1       0.1373    0.1373    0.1373    0.1373   0.28   0.39  RFS2_NULL
--------  -----------  --------  --------  --------  -----  -----  -------------
     256      48.9448    0.1912                                    NFS V2 TOTAL
    3015    4086.9121    1.3555    0.1035   31.6976  40.45  17.12  RFS3_READ
     145    2296.3158   15.8367    1.1177   42.9125  22.73   0.82  RFS3_WRITE
   10525    2263.3336    0.2150    0.0547    2.9737  22.40  59.77  RFS3_LOOKUP
     373     777.2854    2.0839    0.2839   17.5724   7.69   2.12  RFS3_READDIRPLUS
    2058     385.9510    0.1875    0.0875    1.1993   3.82  11.69  RFS3_GETATTR
     942     178.6442    0.1896    0.0554    1.2320   1.77   5.35  RFS3_ACCESS
     515      97.0297    0.1884    0.0659    0.9774   0.96   2.92  RFS3_READLINK
      25      11.3046    0.4522    0.2364    0.9712   0.11   0.14  RFS3_READDIR
       3       2.8648    0.9549    0.8939    0.9936   0.03   0.02  RFS3_CREATE
       3       2.8590    0.9530    0.5831    1.4095   0.03   0.02  RFS3_COMMIT
       2       1.1824    0.5912    0.2796    0.9028   0.01   0.01  RFS3_FSSTAT
       1       0.2773    0.2773    0.2773    0.2773   0.00   0.01  RFS3_SETATTR
       1       0.2366    0.2366    0.2366    0.2366   0.00   0.01  RFS3_PATHCONF
       1       0.1804    0.1804    0.1804    0.1804   0.00   0.01  RFS3_NULL
--------  -----------  --------  --------  --------  -----  -----  -------------
   17609   10104.3769    0.5738                                    NFS V3 TOTAL
     105    2296.3158   15.8367    1.1177   42.9125  22.73   0.82  CLOSE
    3025    2263.3336    0.2150    0.0547    2.9737  22.40  59.77  COMMIT
     373     777.2854    2.0839    0.2839   17.5724   7.69   2.12  CREATE
    2058     385.9510    0.1875    0.0875    1.1993   3.82  11.69  DELEGPURGE
     942     178.6442    0.1896    0.0554    1.2320   1.77   5.35  DELEGRETURN
     515      97.0297    0.1884    0.0659    0.9774   0.96   2.92  GETATTR
      25      11.3046    0.4522    0.2364    0.9712   0.11   0.14  GETFH
       3       2.8648    0.9549    0.8939    0.9936   0.03   0.02  LINK
       3       2.8590    0.9530    0.5831    1.4095   0.03   0.02  LOCK
       2       1.1824    0.5912    0.2796    0.9028   0.01   0.01  LOCKT
       1       0.2773    0.2773    0.2773    0.2773   0.00   0.01  LOCKU
       1       0.2366    0.2366    0.2366    0.2366   0.00   0.01  OOKUP
       1       0.1804    0.1804    0.1804    0.1804   0.00   0.01  LOOKUPP
       1       0.1704    0.1704    0.1704    0.1704   0.00   0.01  NVERIFY
--------  -----------  --------  --------  --------  -----  -----  -------------
   17609   10104.3769    0.5738                                    NFS V4 SERVER TOTAL
       3       2.8590    0.9530    0.5831    1.4095   0.03   0.02  NFS4_ACCESS
       2       1.1824    0.5912    0.2796    0.9028   0.01   0.01  NFS$_VALIDATE_CACHES
       1       0.2773    0.2773    0.2773    0.2773   0.00   0.01  NFS4_GETATTR
       1       0.2366    0.2366    0.2366    0.2366   0.00   0.01  NFS4_CHECK_ACCESS
       1       0.0000    0.0000    0.1804    0.1804   0.00   0.01  NFS4_HOLD
       1       0.1704    0.1704    0.1704    0.1704   0.00   0.01  NFS4_RELE
--------  -----------  --------  --------  --------  -----  -----  -------------
   17609   10104.3769    0.5738                                    NFS V4 CLIENT TOTAL

필드는 다음과 같습니다.

필드 설명
Count 그동안 해당 유형(Opcode 참고)의 시스템 NFS 호출이 불린 횟수
Total Time (msec) 이 유형의 시스템 NFS 호출을 처리하는 데 쓴 전체 CPU 시간(밀리초)
Avg Time (msec) 하나를 처리하는 데 쓴 평균 CPU 시간(밀리초)
Min Time (msec) 하나를 처리하는 데 걸린 최소 CPU 시간(밀리초)
Max Time (msec) 하나를 처리하는 데 걸린 최대 CPU 시간(밀리초)
% Tot Time 이 유형을 처리하는 데 쓴 전체 CPU 시간이 전체 처리 시간에서 차지하는 백분율
% Tot Count 이 유형의 호출 횟수가 전체 횟수에서 차지하는 백분율
Opcode 시스템 NFS 호출 이름

보류 중인 NFS 호출 요약(Pending NFS calls summary)

그동안 실행되었지만 끝나지 않은 모든 시스템 NFS 호출의 목록입니다. Tid 순으로 정렬합니다.

text
Pending NFS Calls Summary
-------------------------
Accumulated   Sequence Number  Procname (Pid  Tid)
Time (msec)   Opcode
============  ===============  ==========================
      0.0831  1038711932        nfsd(1007854 331969)
      0.0833  1038897247        nfsd(1007854 352459)
      0.0317  1038788652        nfsd(1007854 413931)
      0.0029  NFS4_ATTRCACHE    kbiod(100098 678934)
..(lines omitted)...

필드는 다음과 같습니다.

필드 설명
Accumulated Time (msec) 보류 중인 시스템 NFS 호출을 처리하는 데 지금까지 쓴 CPU 시간(밀리초)
Sequence Number NFS 작업의 트랜잭션 식별자(XID). 작업을 유일하게 식별하며 RPC 호출·응답 메시지에 쓰입니다. 작업 이름은 작업이 끝나야 알 수 있으므로 이름 대신 이 번호를 보여 줍니다.
Opcode 보류 중인 NFS V4 작업 이름
Procname (Pid Tid) 시스템 NFS 호출을 낸 스레드가 속한 프로세스 이름, 프로세스 ID, 스레드 ID

pthread 호출 요약(Pthread calls summary)

그동안 실행을 마친 모든 pthread 호출의 목록입니다. pthread 호출 유형마다 쓴 전체 CPU 시간(밀리초)으로 정렬합니다.

text
                     Pthread Calls Summary
                     --------------------
   Count   Total Time   % sys  Avg Time  Min Time  Max Time  Pthread Routine
               (msec)    time    (msec)    (msec)    (msec)
========  ===========  ======  ========  ========  ========  ================
      62       3.6226   0.04%    0.0584    0.0318    0.1833  pthread_create
      10       0.1798   0.00%    0.0180    0.0119    0.0341  pthread_cancel
       8       0.0725   0.00%    0.0091    0.0064    0.0205  pthread_join
       1       0.0553   0.00%    0.0553    0.0553    0.0553  pthread_detach
       1       0.0229   0.00%    0.0229    0.0229    0.0229  pthread_kill

필드는 다음과 같습니다.

필드 설명
Count 그동안 해당 유형의 pthread 호출이 불린 횟수
Total Time (msec) 이 유형의 pthread 호출을 모두 처리하는 데 쓴 전체 CPU 시간(밀리초)
% sys time 이 유형의 호출을 모두 처리하는 데 쓴 전체 CPU 시간이 전체 처리 시간에서 차지하는 백분율
Avg Time (msec) 하나를 처리하는 데 쓴 평균 CPU 시간(밀리초)
Min Time (msec) 하나를 처리하는 데 쓴 최소 CPU 시간(밀리초)
Pthread routine pthread 라이브러리의 루틴 이름

보류 중인 pthread 호출 요약(Pending Pthread calls summary)

그동안 실행되었지만 끝나지 않은 모든 pthread 호출의 목록입니다. Pid-Ptid 순으로 정렬합니다.

text
            Pending Pthread Calls Summary
            -----------------------------
Accumulated   Pthread Routine  Procname (Pid  Tid  Ptid)
Time (msec)
============  ===============  ==========================
   1990.9400  pthread_join     ./pth32(245962 1007759 1)

필드는 다음과 같습니다.

필드 설명
Accumulated Time (msec) 보류 중인 pthread 호출을 처리하는 데 지금까지 쓴 CPU 시간(밀리초)
Pthread Routine libpthreads 라이브러리의 pthread 루틴 이름
Procname (Pid Tid Ptid) pthread 호출을 낸 스레드와 pthread가 속한 프로세스 이름, 프로세스 ID, 스레드 ID, pthread ID

FLIH 요약(FLIH summary)

FLIH(1차 인터럽트 처리기) 요약은 그동안 불린 모든 1차 인터럽트 처리기의 목록입니다.

Global Flih Summary는 시스템 전체의 1차 인터럽트를, Per CPU Flih Summary는 CPU마다의 1차 인터럽트를 보여 줍니다.

text
                         Global Flih Summary
                         -------------------
 Count  Total Time    Avg Time    Min Time    Max Time  Flih Type
            (msec)      (msec)      (msec)      (msec)
====== =========== =========== =========== ===========  =========
  2183    203.5524      0.0932      0.0041      0.4576   31(DECR_INTR)
   946    102.4195      0.1083      0.0063      0.6590    3(DATA_ACC_PG_FLT)
    12      1.6720      0.1393      0.0828      0.3366   32(QUEUED_INTR)
        1058    183.6655      0.1736      0.0039      0.7001    5(IO_INTR)
                              Per CPU Flih Summary
                              --------------------
CPU Number 0:
       Count  Total Time    Avg Time    Min Time    Max Time  Flih Type
                  (msec)      (msec)      (msec)      (msec)
      ====== =========== =========== =========== ===========  =========
         635     39.8413      0.0627      0.0041      0.4576   31(DECR_INTR)
         936    101.4960      0.1084      0.0063      0.6590    3(DATA_ACC_PG_FLT)
           9      1.3946      0.1550      0.0851      0.3366   32(QUEUED_INTR)
         266     33.4247      0.1257      0.0039      0.4319    5(IO_INTR)
CPU Number 1:
       Count  Total Time    Avg Time    Min Time    Max Time  Flih Type
                  (msec)      (msec)      (msec)      (msec)
      ====== =========== =========== =========== ===========  =========
           4      0.2405      0.0601      0.0517      0.0735    3(DATA_ACC_PG_FLT)
         258     49.2098      0.1907      0.0060      0.5076    5(IO_INTR)
         515     55.3714      0.1075      0.0080      0.3696   31(DECR_INTR)
                    Pending Flih Summary
                    --------------------
Accumulated Time (msec)    Flih Type
========================   ================
                  0.0123    5(IO_INTR)
...(lines omitted)...

필드는 다음과 같습니다.

필드 설명
Count 그동안 해당 유형(Flih Type 참고)의 1차 인터럽트가 일어난 횟수
Total Time (msec) 이 1차 인터럽트들을 처리하는 데 쓴 전체 CPU 시간(밀리초)
Avg Time (msec) 이 유형의 1차 인터럽트 하나를 처리하는 데 쓴 평균 CPU 시간(밀리초)
Min Time (msec) 하나를 처리하는 데 걸린 최소 CPU 시간(밀리초)
Max Time (msec) 하나를 처리하는 데 걸린 최대 CPU 시간(밀리초)
Flih Type 1차 인터럽트의 번호와 이름
Accumulated Time (msec) 보류 중인 1차 인터럽트를 처리하는 데 지금까지 쓴 CPU 시간(밀리초)

위 예에 나온 FLIH 유형은 다음과 같습니다.

유형 설명
DATA_ACC_PG_FLT 데이터 접근 페이지 폴트
QUEUED_INTR 대기열에 들어간 인터럽트
DECR_INTR 감소기(decrementer) 인터럽트
IO_INTR I/O 인터럽트

SLIH 요약(SLIH summary)

SLIH(2차 인터럽트 처리기) 요약은 그동안 불린 모든 2차 인터럽트 처리기의 목록입니다.

Global Slih Summary는 시스템 전체의 2차 인터럽트를, Per CPU Slih Summary는 CPU마다의 2차 인터럽트를 보여 줍니다.

text
                              Global Slih Summary
                              -------------------
       Count  Total Time    Avg Time    Min Time    Max Time Slih Name(Address)
                  (msec)      (msec)      (msec)      (msec)
      ====== =========== =========== =========== =========== =================
          43      7.0434      0.1638      0.0284      0.3763 s_scsiddpin(1a99104)
        1015     42.0601      0.0414      0.0096      0.0913 ssapin(1990490)
                             Per CPU Slih Summary
                             --------------------
CPU Number 0:
       Count  Total Time    Avg Time    Min Time    Max Time Slih Name(Address)
                  (msec)      (msec)      (msec)      (msec)
      ====== =========== =========== =========== =========== =================
           8      1.3500      0.1688      0.0289      0.3087 s_scsiddpin(1a99104)
         258      7.9232      0.0307      0.0096      0.0733 ssapin(1990490)
CPU Number 1:
       Count  Total Time    Avg Time    Min Time    Max Time Slih Name(Address)
                  (msec)      (msec)      (msec)      (msec)
      ====== =========== =========== =========== =========== =================
          10      1.2685      0.1268      0.0579      0.2818 s_scsiddpin(1a99104)
         248     11.2759      0.0455      0.0138      0.0641 ssapin(1990490)
...(lines omitted)...

필드는 다음과 같습니다.

필드 설명
Count 그동안 각 2차 인터럽트 처리기가 불린 횟수
Total Time (msec) 이 2차 인터럽트들을 처리하는 데 쓴 전체 CPU 시간(밀리초)
Avg Time (msec) 이 유형의 2차 인터럽트 하나를 처리하는 데 쓴 평균 CPU 시간(밀리초)
Min Time (msec) 하나를 처리하는 데 걸린 최소 CPU 시간(밀리초)
Max Time (msec) 하나를 처리하는 데 걸린 최대 CPU 시간(밀리초)
Slih Name (Address) 2차 인터럽트의 모듈 이름과 커널 주소

-e 플래그로 만든 보고서

-e 플래그로 만든 보고서에는 기본 보고서의 내용에 더해 System Calls Summary, Pending System Calls Summary, Hypervisor Calls Summary, Pending Hypervisor Calls Summary, System NFS Calls Summary, Pending NFS Calls Summary, Pthread Calls Summary, Pending Pthread Calls Summary에 정보가 더 들어갑니다.

System Calls Summary, Hypervisor Calls Summary, System NFS Calls Summary, Pthread Calls Summary에는 호출이 실행되던 동안의 전체·평균·최대·최소 경과 시간이 더해집니다. 보류 중 요약(Pending …)에는 보류 중인 호출의 누적 경과 시간이 더해집니다. 이 정보는 전역 보고서뿐 아니라 프로세스 상세(-p), 스레드 상세(-t), pthread 상세(-P) 보고서의 모든 시스템 호출·하이퍼바이저 호출·NFS 호출·pthread 호출 보고서에 들어갑니다.

-e 플래그로 더해지는 정보의 예입니다.

text
# curt -e -i trace.r -m trace.nm -n gensyms.out -o curt.out
# cat curt.out
 ...(lines omitted)...
                                   System Calls Summary
                                   --------------------
 Count  Total   % sys    Avg    Min    Max       Tot       Avg       Min      Max       SVC (Address)
         Time    time   Time   Time   Time     ETime     ETime     ETime    ETime
       (msec)         (msec) (msec) (msec)    (msec)    (msec)    (msec)   (msec)
 ===== ======== ===== ====== ====== ====== ========== ========= ========= ========= ======================
   605 355.4475 1.74% 0.5875 0.0482 4.5626 31172.7658   51.5252    0.0482  422.2323 kwrite(4259c4)
   733 196.3752 0.96% 0.2679 0.0042 2.9948 12967.9407   17.6916    0.0042  265.1204 kread(4259e8)
     3   9.2217 0.05% 3.0739 2.8888 3.3418    57.2051   19.0684    4.5475   40.0557 execve(1c95d8)
    38   7.6013 0.04% 0.2000 0.0051 1.6137    12.5002    0.3290    0.0051    3.3120 __loadx(1c9608)
  1244   4.4574 0.02% 0.0036 0.0010 0.0143     4.4574    0.0036    0.0010    0.0143 lseek(425a60)
    45   4.3917 0.02% 0.0976 0.0248 0.1810     4.6636    0.1036    0.0248    0.3037 access(507860)
    63   3.3929 0.02% 0.0539 0.0294 0.0719  5006.0887   79.4617    0.0294  100.4802 _select(4e0ee4)
     2   2.6761 0.01% 1.3380 1.3338 1.3423    45.5026   22.7513    7.5745   37.9281 kfork(1c95c8)
   207   2.3958 0.01% 0.0116 0.0030 0.1135  4494.9249   21.7146    0.0030  499.1363 _poll(4e0ecc)
   228   1.1583 0.01% 0.0051 0.0011 0.2436     1.1583    0.0051    0.0011    0.2436 kioctl(4e07ac)
     9   0.8136 0.00% 0.0904 0.0842 0.0988  4498.7472  499.8608  499.8052  499.8898 .smtcheckinit(1b245a8)
     5   0.5437 0.00% 0.1087 0.0696 0.1777     0.5437    0.1087    0.0696    0.1777 open(4e08d8)
    15   0.3553 0.00% 0.0237 0.0120 0.0322     0.3553    0.0237    0.0120    0.0322 .smtcheckinit(1b245cc)
     2   0.2692 0.00% 0.1346 0.1339 0.1353     0.2692    0.1346    0.1339    0.1353 statx(4e0950)
    33   0.2350 0.00% 0.0071 0.0009 0.0210     0.2350    0.0071    0.0009    0.0210 _sigaction(1cada4)
     1   0.1999 0.00% 0.1999 0.1999 0.1999  5019.0588 5019.0588 5019.0588 5019.0588 kwaitpid(1cab64)
   102   0.1954 0.00% 0.0019 0.0013 0.0178     0.5427    0.0053    0.0013    0.3650 klseek(425a48)
 ...(lines omitted)...
                         Pending System Calls Summary
                         ----------------------------
Accumulated   Accumulated   SVC (Address)              Procname (Pid  Tid)
Time (msec)   ETime (msec)
============  ============  =========================  =========================
      0.0855       93.6498  kread(4259e8)              oracle(143984 48841)
 ...(lines omitted)...
                         Hypervisor Calls Summary
                         ------------------------
   Count   Total Time   % sys  Avg Time  Min Time  Max Time  Tot ETime  Avg ETime  Min ETime  Max ETime  HCALL (Address)
               (msec)    time    (msec)    (msec)    (msec)     (msec)     (msec)     (msec)     (msec)
========  ===========  ======  ========  ========  ========   ========  =========  =========  =========  =================
       4       0.0077   0.00%    0.0019    0.0014    0.0025     0.0077     0.0019     0.0014     0.0025  H_XIRR(3ada19c)
       4       0.0070   0.00%    0.0017    0.0015    0.0021     0.0070     0.0017     0.0015     0.0021  H_EOI(3ad6564)
                         Pending Hypervisor Calls Summary
                         --------------------------------
Accumulated   Accumulated   HCALL (Address)             Procname (Pid  Tid)
Time (msec)   ETime (msec)
============  ============  =========================  =========================
      0.0855       93.6498  H_XIRR(3ada19c)            syncd(3916 5981)
                         System NFS Calls Summary
                         ------------------------
   Count   Total Time  Avg Time  Min Time  Max Time  % Tot  Total ETime  Avg ETime  Min ETime  Max ETime  % Tot  % Tot  Opcode
             (msec)    (msec)    (msec)    (msec)     Time     (msec)     (msec)     (msec)     (msec)     ETime  Count
========  ===========  ========  ========  ========  =====  ===========  =========  =========  =========  =====  =====  =============
    6647     456.1029    0.0686    0.0376    0.6267  15.83    9267.7256     1.3943     0.0376   304.9501  14.63  27.88  RFS3_LOOKUP
    2694     147.1680    0.0546    0.0348    0.5517   5.11    1474.4267     0.5473     0.0348    25.9402   2.33  11.30  RFS3_GETATTR
    1702      85.8328    0.0504    0.0339    0.5793   2.98     146.4281     0.0860     0.0339     5.7539   0.23   7.14  RFS3_READLINK
    1552      78.1015    0.0503    0.0367    0.5513   2.71     153.5844     0.0990     0.0367     7.5125   0.24   6.51  RFS3_ACCESS
     235      33.3158    0.1418    0.0890    0.3312   1.16    1579.4557     6.7211     0.0890    56.0876   2.49   0.99  RFS3_SETATTR
      21       5.5979    0.2666    0.0097    0.8142  82.79     127.2616     6.0601     0.0097    89.0570  99.37  25.00  NFS4_WRITE
      59       1.1505    0.0195    0.0121    0.0258  17.01       0.7873     0.0133     0.0093     0.0194   0.61  70.24  NFS4_ATTRCACHE
       4       0.0135    0.0034    0.0026    0.0044   0.20       0.0135     0.0034     0.0026     0.0044   0.01   4.76  NFS4_GET_UID_GID
...(line omitted)...
                    Pending NFS Calls Summary
                    -------------------------
Accumulated   Accumulated   Sequence Number  Procname (Pid  Tid)
Time (msec)   ETime (msec)  Opcode
============  ============  ===============  ==========================
      0.0831       15.1581  1038711932        nfsd(1007854 331969)
      0.0833       13.8889  1038897247        nfsd(1007854 352459)
      0.0087       10.8976  NFS4_ATTRCACHE    kbiod(100098 678934)
...(line omitted)...
                     Pthread Calls Summary
                     --------------------
Count   Total Time   % sys  Avg Time  Min Time  Max Time  Tot ETime  Avg ETime  Min ETime  Max ETime  Pthread Routine
           (msec)    time    (msec)    (msec)    (msec)     (msec)     (msec)     (msec)     (msec)
====   ===========  ======  ========  ========  ========   ========  =========  =========  =========  ================
  72       2.0126   0.01%    0.0280    0.0173    0.1222    13.7738     0.1913     0.0975     0.6147  pthread_create
   2       0.6948   0.00%    0.3474    0.0740    0.6208    92.3033    46.1517     9.9445    82.3588  pthread_kill
  12       0.3087   0.00%    0.0257    0.0058    0.0779    25.0506     2.0876     0.0168    10.0605  pthread_cancel
  22       0.0613   0.00%    0.0028    0.0017    0.0104  2329.0179   105.8644     0.0044  1908.3402  pthread_join
   2       0.0128   0.00%    0.0064    0.0062    0.0065     0.1528     0.0764     0.0637     0.0891  pthread_detach
                     Pending Pthread Calls Summary
                     -----------------------------
Accumulated   Accumulated   Pthread Routine  Procname (pid  tid  ptid)
Time (msec)   ETime (msec)
============  ============  ===============  =========================
     3.3102     4946.5433   pthread_join     ./pth32(282718 700515 1)
     0.0025      544.4914   pthread_join     ./pth(282720   -    1)

위 예의 시스템 호출·하이퍼바이저 호출·NFS 호출·pthread 호출 보고서에는 기본 필드에 더해 다음 필드가 있습니다.

필드 설명
Tot ETime (msec) 호출의 각 인스턴스가 시작부터 끝날 때까지 걸린 시간의 합. 인터럽트 처리, 다른 프로세스 실행 등에 쓴 시간도 들어갑니다.
Avg ETime (msec) 호출이 시작부터 끝날 때까지 걸린 평균 시간(인터럽트 처리 등 포함)
Min ETime (msec) 호출이 시작부터 끝날 때까지 걸린 최소 시간(인터럽트 처리 등 포함)
Max ETime (msec) 호출이 시작부터 끝날 때까지 걸린 최대 시간(인터럽트 처리 등 포함)
Accumulated ETime (msec) 보류 중인 호출이 시작된 때부터 trace가 끝날 때까지의 전체 시간(인터럽트 처리 등 포함)

위 예에서 kwrite 시스템 호출의 최대 경과 시간은 422.2323msec이지만 최대 CPU 시간은 4.5626msec입니다. 쓰기 대상 장치에서 이 정도의 부가 시간이 이상하다면 더 분석해야 합니다.

-s 플래그로 만든 보고서

-s 플래그로 만든 보고서에는 기본 보고서의 내용과 시스템 호출이 돌려준 오류 정보가 들어갑니다.

text
# curt -s -i trace.r -m trace.nm -n gensyms.out -o curt.out
# cat curt.out
...(lines omitted)...
                      Errors Returned by System Calls
                      ------------------------------
Errors (errno : count : description) returned for System Call: kioctl(4e07ac)
   25 :       15 : "Not a typewriter"
Errors (errno : count : description) returned for System Call: execve(1c95d8)
    2 :        2 : "No such file or directory"
...(lines omitted)...

특정 유형의 오류나 특정 시스템 호출의 오류가 많아 시스템이나 응용 프로그램의 문제로 보이면 다른 디버그 방법으로 원인을 찾아 고칩니다.

-t 플래그로 만든 보고서

-t 플래그로 만든 보고서에는 기본 보고서의 내용과 스레드 상태의 자세한 보고가 들어갑니다. 스레드가 응용 프로그램 모드와 시스템 호출 모드에 있던 시간, 스레드가 낸 시스템 호출, 프로세서 친화도, 디스패치 횟수와 디스패치된 CPU가 들어갑니다.

디스패치 대기 시간과 인터럽트 정보도 들어갑니다.

text
...(lines omitted)...
--------------------------------------------------------------------------------
Report for Thread Id: 48841 (hex bec9) Pid: 143984 (hex 23270)
Process Name: oracle
---------------------
 Total Application Time (ms):     70.324465
 Total System Call Time (ms):     53.014910
 Total Hypervisor Call Time (ms):  0.077000
                               Thread System Call Summary
                               --------------------------
   Count   Total Time     Avg Time     Min Time     Max Time     SVC (Address)
               (msec)       (msec)       (msec)       (msec)
========  ===========  ===========  ===========  ===========  ================
      69      34.0819       0.4939       0.1666       1.2762  kwrite(169ff8)
      77      12.0026       0.1559       0.0474       0.2889  kread(16a01c)
     510       4.9743       0.0098       0.0029       0.0467  times(f1e14)
      73       1.2045       0.0165       0.0105       0.0306  select(1d1704)
      68       0.6000       0.0088       0.0023       0.0445  lseek(16a094)
      12       0.1516       0.0126       0.0071       0.0241  getrusage(f1be0)
  No Errors Returned by System Calls
                        Pending System Calls Summary
                        ----------------------------
Accumulated   SVC (Address)
Time (msec)
============  ==========================
      0.1420  kread(16a01c)
                        Thread Hypervisor Calls Summary
                       --------------------------------
     Count   Total Time   % sys  Avg Time  Min Time  Max Time  HCALL (Address)
                 (msec)    time    (msec)    (msec)    (msec)
  ========  ===========  ======  ========  ========  ========  =================
         4       0.0077   0.00%    0.0019    0.0014    0.0025  H_XIRR(3ada19c)
                       Pending Hypervisor Calls Summary
                       --------------------------------
  Accumulated   HCALL (Address)
  Time (msec)
  ============  =========================
        0.0066  H_XIRR(3ada19c)
 processor affinity:  0.583333
Dispatch Histogram for thread (CPUid : times_dispatched).
    CPU 0 : 23
    CPU 1 : 23
    CPU 2 : 9
    CPU 3 : 9
    CPU 4 : 8
    CPU 5 : 14
    CPU 6 : 17
    CPU 7 : 19
    CPU 8 : 1
    CPU 9 : 4
    CPU 10 : 1
    CPU 11 : 4
 total number of dispatches:  131
 total number of redispatches due to interupts being disabled:  1
 avg. dispatch wait time (ms):  8.273515
      Data on Interrupts that Occurred while Thread was Running
           Type of Interrupt       Count
   =============================== ============================
    Data Access Page Faults (DSI): 115
   Instr. Fetch Page Faults (ISI): 0
          Align. Error Interrupts: 0
         IO (external) Interrupts: 0
         Program Check Interrupts: 0
        FP Unavailable Interrupts: 0
          FP Imprecise Interrupts: 0
               RunMode Interrupts: 0
           Decrementer Interrupts: 18
   Queued (Soft level) Interrupts: 15
...(lines omitted)...

스레드가 NFS 커널 프로세스에 속하면 시스템 호출 대신 NFS 작업 정보가 들어갑니다.

text
Report for Thread Id: 1966273 (hex 1e00c1) Pid: 1007854 (hex f60ee)
Process Name: nfsd
---------------------
         Total Kernel Time (ms):  3.198998
      Total Operation Time (ms): 28.839927
Total Hypervisor Call Time (ms):  0.000000
                            Thread NFS Call Summary
                            -----------------------
   Count   Total Time  Avg Time  Min Time  Max Time  % Tot  Total ETime  Avg ETime  Min ETime  Max ETime  % Tot  % Tot  Opcode
               (msec)    (msec)    (msec)    (msec)   Time       (msec)     (msec)     (msec)     (msec)  ETime  Count
========  ===========  ========  ========  ========  =====  ===========  =========  =========  =========  =====  =====  =============
      28      12.2661    0.4381    0.3815    0.4841  42.73      32.0893     1.1460     0.4391    16.6283  11.46  11.52  RFS3_READDIRPLUS
      63       3.8953    0.0618    0.0405    0.1288  13.57      23.1031     0.3667     0.0405     7.0886   8.25  25.93  RFS3_LOOKUP
      49       3.2795    0.0669    0.0527    0.0960  11.42     103.8431     2.1192     0.0534    35.3617  37.09  20.16  RFS3_READ
      18       2.8464    0.1581    0.1099    0.2264   9.91       7.9129     0.4396     0.1258     4.3503   2.83   7.41  RFS3_WRITE
      29       1.3331    0.0460    0.0348    0.0620   4.64       1.4953     0.0516     0.0348     0.0940   0.53  11.93  RFS3_GETATTR
       5       1.2763    0.2553    0.2374    0.3036   4.45      45.0798     9.0160     0.9015    21.7257  16.10   2.06  RFS3_REMOVE
       8       1.1001    0.1375    0.1180    0.1719   3.83      53.6532     6.7067     1.4293    19.9199  19.17   3.29  RFS3_COMMIT
      20       0.9262    0.0463    0.0367    0.0507   3.23       1.2060     0.0603     0.0367     0.1314   0.43   8.23  RFS3_READLINK
      15       0.6798    0.0453    0.0386    0.0519   2.37       0.8015     0.0534     0.0386     0.0788   0.29   6.17  RFS3_ACCESS
       2       0.4033    0.2017    0.1982    0.2051   1.40       0.5355     0.2677     0.2677     0.2677   0.19   0.82  RFS3_READDIR
       1       0.3015    0.3015    0.3015    0.3015   1.05       6.2614     6.2614     6.2614     6.2614   2.24   0.41  RFS3_CREATE
       2       0.2531    0.1265    0.1000    0.1531   0.88       3.7756     1.8878     0.1000     3.6756   1.35   0.82  RFS3_SETATTR
       2       0.0853    0.0426    0.0413    0.0440   0.30       0.1333     0.0667     0.0532     0.0802   0.05   0.82  RFS3_FSINFO
       1       0.0634    0.0634    0.0634    0.0634   0.22       0.0634     0.0634     0.0634     0.0634   0.02   0.41  RFS3_FSSTAT
--------  -----------  --------  --------  --------  -----  -----------  ---------  ---------  ---------  -----  -----  -------------
     243      28.7094    0.1181                                279.9534     1.1521                                      NFS V3 TOTAL
       4       0.0777    0.0194    0.0164    0.0232  10.00       0.0523     0.0131     0.0115     0.0152   10.00 10.00  LINK
--------  -----------  --------  --------  --------  -----  -----------  ---------  ----------  ---------  -----  -----  -------------
       4       0.0777    0.0194                                  0.0523     0.0131                                      NFS V4 CLIENT TOTAL
                     Pending NFS Calls Summary
                     -------------------------
Accumulated   Accumulated   Sequence Number
Time (msec)   ETime (msec)  Opcode
============  ============  ===============
      0.1305     182.6903   1038932778
      0.0123     102.6324   NFS4_ATTRCACHE

스레드 요약에 들어가는 정보는 다음과 같습니다.

항목 설명
Thread ID 스레드 ID
Process ID 스레드가 속한 프로세스 ID
Process Name 스레드가 속한 프로세스 이름(알 수 있으면)
Total Application Time (ms) 스레드가 응용 프로그램 모드에서 쓴 시간(밀리초)
Total System Call Time (ms) 스레드가 시스템 호출 모드에서 쓴 시간(밀리초)
Thread System Call Summary 스레드의 시스템 호출 요약. 전역 System Calls Summary와 필드가 같고, -e를 주면 경과 시간, -s를 주면 오류 정보가 더해집니다.
Pending System Calls Summary trace가 끝날 때 스레드가 시스템 호출을 실행 중이었으면 나옵니다. Accumulated Time과 SVC (Address) 필드가 있고 -e를 주면 경과 시간이 더해집니다.
Thread Hypervisor Calls Summary 스레드의 하이퍼바이저 호출 요약. 전역 Hypervisor Calls Summary와 필드가 같고 -e를 주면 경과 시간이 더해집니다.
Pending Hypervisor Calls Summary trace가 끝날 때 스레드가 하이퍼바이저 호출을 실행 중이었으면 나옵니다. Accumulated Time과 Hypervisor Call 필드가 있고 -e를 주면 경과 시간이 더해집니다.
Thread NFS Calls Summary 스레드의 NFS 호출 요약. 전역 System NFS Calls Summary와 필드가 같고 -e를 주면 경과 시간이 더해집니다.
Pending NFS Calls Summary trace가 끝날 때 스레드가 NFS 호출을 실행 중이었으면 나옵니다. Accumulated Time과 Sequence Number(NFS V4는 Opcode) 필드가 있고 -e를 주면 경과 시간이 더해집니다.
processor affinity 스레드가 디스패치될 때마다 마지막으로 실행된 프로세서에 다시 디스패치될 확률
Dispatch Histogram for thread 스레드가 시스템의 각 CPU에 디스패치된 횟수
total number of dispatches 스레드가 디스패치된 전체 횟수(재디스패치 제외)
total number of redispatches due to interrupts being disabled 인터럽트가 꺼져 있어서 일어난 재디스패치 횟수. 스레드가 일부 인터럽트를 껐기 때문에 디스패치 코드가 그 CPU에서 지금 실행 중인 같은 스레드를 다시 디스패치해야 하는 경우입니다. 0이 아닐 때만 보고합니다.
avg. dispatch wait time (ms) 스레드가 디스패치에서 내려온 때부터 다음에 디스패치될 때까지의 평균 경과 시간
Data on Interrupts that occurred while Thread was Running 이 스레드가 실행되는 동안 각 FLIH 유형이 일어난 횟수

-p 플래그로 만든 보고서

-p 플래그로 만든 보고서에는 기본 보고서의 내용과 프로세스마다의 자세한 보고가 들어갑니다. 프로세스 ID와 이름, 프로세스에 속한 스레드 ID의 수와 목록, pthread ID의 수와 목록이 나옵니다. 프로세스의 모든 스레드에 대한 전체 응용 프로그램 시간, 시스템 호출 시간, 응용 프로그램 시간 세부가 나오고, 마지막으로 프로세스의 스레드들이 낸 완료·보류 중 시스템 호출과 pthread 호출의 요약이 나옵니다.

다음은 router 프로세스(PID 129190)의 보고서 예입니다.

text
Process Details for Pid: 129190
    Process Name: router
    7 Tids for this Pid: 245889 245631 244599 82843 78701 75347 28941
    9 Ptids for this Pid:  2057 1800 1543 1286 1029 772 515 258 1
Total Application Time (ms):  124.023749
Total System Call Time (ms):    8.948695
Total Hypervisor Time  (ms):    0.000000
Application time details:
     Total Pthread Call Time (ms):  1.228271
     Total Pthread Dispatch Time (ms):  2.760476
     Total Pthread Idle Dispatch Time (ms):  0.110307
     Total Other Time (ms):  798.545446
     Total number of pthread dispatches:  53
     Total number of pthread idle dispatches:  3
                             Process System Calls Summary
                             ----------------------------
     Count   Total Time  % sys  Avg Time  Min Time  Max Time  SVC (Address)
              (msec)     time    (msec)    (msec)    (msec)
  ========  ===========  ======  ======== ========  ========  ================
       93       3.6829   0.05%    0.0396    0.0060    0.3077  kread(19731c)
       23       2.2395   0.03%    0.0974    0.0090    0.4537  kwrite(1972f8)
       30       0.8885   0.01%    0.0296    0.0073    0.0460  select(208c5c)
        1       0.5933   0.01%    0.5933    0.5933    0.5933  fsync(1972a4)
      106       0.4902   0.01%    0.0046    0.0035    0.0105  klseek(19737c)
       13       0.3285   0.00%    0.0253    0.0130    0.0387  semctl(2089e0)
        6       0.2513   0.00%    0.0419    0.0238    0.0650  semop(2089c8)
        3       0.1223   0.00%    0.0408    0.0127    0.0730  statx(2086d4)
        1       0.0793   0.00%    0.0793    0.0793    0.0793  send(11e1ec)
        9       0.0679   0.00%    0.0075    0.0053    0.0147  fstatx(2086c8)
        4       0.0524   0.00%    0.0131    0.0023    0.0348  kfcntl(22aa14)
        5       0.0448   0.00%    0.0090    0.0086    0.0096  yield(11dbec)
        3       0.0444   0.00%    0.0148    0.0049    0.0219  recv(11e1b0)
        1       0.0355   0.00%    0.0355    0.0355    0.0355  open(208674)
        1       0.0281   0.00%    0.0281    0.0281    0.0281  close(19728c)
                     Pending System Calls Summary
                     ----------------------------
Accumulated    SVC (Address)                  Tid
Time (msec)
============  =========================  ================
      0.0452   select(208c5c)             245889
      0.0425   select(208c5c)             78701
      0.0285   select(208c5c)             82843
      0.0284   select(208c5c)             245631
      0.0274   select(208c5c)             244599
      0.0179   select(208c5c)             75347
 ...(omitted lines)...
                     Pthread Calls Summary
                     ---------------------
   Count   Total Time   % sys  Avg Time  Min Time  Max Time  Pthread Routine
               (msec)    time    (msec)    (msec)    (msec)
========  ===========  ======  ========  ========  ========  ================
      19       0.0477   0.00%    0.0025    0.0017    0.0104  pthread_join
       1       0.0065   0.00%    0.0065    0.0065    0.0065  pthread_detach
       1       0.6208   0.00%    0.6208    0.6208    0.6208  pthread_kill
       6       0.1261   0.00%    0.0210    0.0077    0.0779  pthread_cancel
      21       0.7080   0.01%    0.0337    0.0226    0.1222  pthread_create
                     Pending Pthread Calls Summary
                     -----------------------------
Accumulated   Pthread Routine     Tid                Ptid
Time (msec)
============  ===============  ================  ================
     3.3102   pthread_join        78701               1

프로세스가 NFS 커널 프로세스이면 시스템 호출과 pthread 호출 대신 NFS 작업 정보가 들어갑니다.

text
Process Details for Pid: 1007854
    Process Name: nfsd
    252 Tids for this Pid: 2089213 2085115 2081017 2076919 2072821 2068723
    2040037 2035939 2031841 2027743 2023645 2019547
    2015449 2011351 2007253 2003155 1999057 1994959
...(lines omitted)...
    454909 434421 413931 397359 364797 352459
    340185 331969 315411 303283 299237 266405
 Total Kernel Time (ms):  380.237018
 Total Operation Time (ms):  2891.971209
                            Process NFS Calls Summary
                            -------------------------
   Count   Total Time  Avg Time  Min Time  Max Time  % Tot  Total ETime  Avg ETime  Min ETime  Max ETime  % Tot  % Tot  Opcode
               (msec)    (msec)    (msec)    (msec)   Time       (msec)     (msec)     (msec)     (msec)  ETime  Count
========  ===========  ========  ========  ========  =====  ===========  =========  =========  =========  =====  =====  =============
    2254    1018.3621    0.4518    0.3639    0.9966  35.34    1800.5708     0.7988     0.4204    16.6283   2.84   9.45  RFS3_READDIRPLUS
    6647     456.1029    0.0686    0.0376    0.6267  15.83    9267.7256     1.3943     0.0376   304.9501  14.63  27.88  RFS3_LOOKUP
    1993     321.4973    0.1613    0.0781    0.6428  11.16    3006.1774     1.5084     0.0781   121.8822   4.75   8.36  RFS3_WRITE
    4409     314.3122    0.0713    0.0425    0.6139  10.91   14052.7567     3.1873     0.0425   313.2698  22.19  18.49  RFS3_READ
    1001     177.9891    0.1778    0.0903    8.7271   6.18   23187.1693    23.1640     0.7657   298.0521  36.61   4.20  RFS3_COMMIT
    2694     147.1680    0.0546    0.0348    0.5517   5.11    1474.4267     0.5473     0.0348    25.9402   2.33  11.30  RFS3_GETATTR
     495     102.0142    0.2061    0.1837    0.7000   3.54     185.8549     0.3755     0.1895     6.1340   0.29   2.08  RFS3_READDIR
    1702      85.8328    0.0504    0.0339    0.5793   2.98     146.4281     0.0860     0.0339     5.7539   0.23   7.14  RFS3_READLINK
    1552      78.1015    0.0503    0.0367    0.5513   2.71     153.5844     0.0990     0.0367     7.5125   0.24   6.51  RFS3_ACCESS
     186      64.4498    0.3465    0.2194    0.7895   2.24    4201.0235    22.5861     1.0235   117.5351   6.63   0.78  RFS3_CREATE
     208      56.8876    0.2735    0.1928    0.7351   1.97    4245.4378    20.4108     0.9015   181.0121   6.70   0.87  RFS3_REMOVE
     235      33.3158    0.1418    0.0890    0.3312   1.16    1579.4557     6.7211     0.0890    56.0876   2.49   0.99  RFS3_SETATTR
     190      13.3856    0.0705    0.0473    0.5495   0.46      19.3971     0.1021     0.0473     0.6827   0.03   0.80  RFS3_FSSTAT
     275      12.4504    0.0453    0.0343    0.0561   0.43      16.6542     0.0606     0.0343     0.2357   0.03   1.15  RFS3_FSINFO
--------  -----------  --------  --------  --------  -----  -----------  ---------  ---------  ---------  -----  -----  -------------
   23841    2881.8692    0.1209                              63336.6621     2.6566                                      NFS V3 TOTAL
      55       1.0983    0.0200    0.0164    0.0258 100.00       0.7434     0.0135     0.0115     0.0194  10.00  10.00  NFS4_ATTRCACHE
--------  -----------  --------  --------  --------  -----  -----------  ---------  ---------  ---------  -----  -----  -------------
      55       1.0983    0.0200                                  0.7434     0.0135                                      NFS V4 CLIENT TOTAL
                     Pending NFS Calls Summary
                     -------------------------
Accumulated   Accumulated   Sequence Number     Tid
Time (msec)   ETime (msec)  Opcode
============  ============  ===============  ================
      0.1812      48.1456   1039026977       2089213
      0.0188      14.8878   1038285324       2085115
      0.0484       2.7123   1039220089       2081017
      0.1070      49.5471   1039103658       2072821
      0.0953      58.8009   1038453491       2035939
      0.0533      62.9266   1039037391       2031841
      0.1195      14.6817   1038686320       2019547
      0.2063      37.1826   1039164331       2015449
      0.0140       6.0718   1039260848       2011351
      0.0671       8.8971   NFS4_WRITE       2012896
...(lines omitted)...

프로세스 상세 보고서에 들어가는 정보입니다.

항목 설명
Total Application Time (ms) 프로세스가 응용 프로그램 모드에서 쓴 시간(밀리초)
Total System Call Time (ms) 프로세스가 시스템 호출 모드에서 쓴 시간(밀리초)

응용 프로그램 시간 세부 보고서에 들어가는 정보입니다.

항목 설명
Total Pthread Call Time 프로세스가 추적되는 pthread 라이브러리 호출에서 쓴 시간(밀리초)
Total Pthread Dispatch Time 프로세스가 libpthreads 디스패치 코드에서 쓴 시간(밀리초)
Total Pthread Idle Dispatch Time 프로세스가 libpthreads vp_sleep 코드에서 쓴 시간(밀리초)
Total Other Time 프로세스가 추적되지 않는 사용자 모드 코드에서 쓴 시간(밀리초)
Total number of pthread dispatches 프로세스에 속한 pthread가 libpthreads 디스패처에 의해 디스패치된 전체 횟수
Total number of pthread idle dispatches 프로세스에 속한 스레드가 libpthreads vp_sleep 코드에 있었던 전체 횟수

보고서에 들어가는 요약 정보입니다.

항목 설명
Process System Calls Summary 프로세스의 시스템 호출 요약. 전역 System Calls Summary와 필드가 같고, -e를 주면 경과 시간, -s를 주면 오류 정보가 더해집니다.
Pending System Calls Summary trace가 끝날 때 프로세스가 시스템 호출을 실행 중이었으면 나옵니다. Accumulated Time과 SVC (Address) 필드가 있고 -e를 주면 경과 시간이 더해집니다.
Process Hypervisor Calls Summary 프로세스의 하이퍼바이저 호출 요약. 전역 Hypervisor Calls Summary와 필드가 같고 -e를 주면 경과 시간이 더해집니다.
Pending Hypervisor Calls Summary trace가 끝날 때 프로세스가 하이퍼바이저 호출을 실행 중이었으면 나옵니다. Accumulated Time과 Hypervisor Call 필드가 있고 -e를 주면 경과 시간이 더해집니다.
Process NFS Calls Summary 프로세스의 NFS 호출 요약. 전역 System NFS Calls Summary와 필드가 같고 -e를 주면 경과 시간이 더해집니다.
Pending NFS Calls Summary trace가 끝날 때 프로세스가 NFS 호출을 실행 중이었으면 나옵니다. Accumulated Time과 Sequence Number(NFS V4는 Opcode) 필드가 있고 -e를 주면 경과 시간이 더해집니다.
Pthread Calls Summary 프로세스의 pthread 호출 요약. 전역 Pthread Calls Summary와 필드가 같고 -e를 주면 경과 시간이 더해집니다.
Pending Pthread Calls Summary trace가 끝날 때 프로세스가 pthread 라이브러리 호출을 실행 중이었으면 나옵니다. Accumulated Time과 Pthread Routine 필드가 있고 -e를 주면 경과 시간이 더해집니다.

-P 플래그로 만든 보고서

-P 플래그로 만든 보고서에는 기본 보고서의 내용과 pthread 상태의 자세한 보고가 들어갑니다.

보고서에는 다음이 들어갑니다.

  • pthread가 응용 프로그램 모드와 시스템 호출 모드에 있던 시간
  • 응용 프로그램 시간 세부
  • pthread가 낸 시스템 호출과 pthread 호출
  • trace가 끝날 때 보류 중이던 시스템 호출과 pthread 호출
  • 프로세서 친화도
  • pthread가 디스패치된 횟수
  • 스레드가 디스패치된 CPU
  • 스레드 친화도
  • pthread가 디스패치된 횟수
  • pthread가 디스패치된 커널 스레드

디스패치 대기 시간과 인터럽트 정보도 들어갑니다.

-P 플래그로 만든 보고서의 예입니다.

text
Report for Pthread Id: 1 (hex 1) Pid: 245962 (hex 3c0ca)
Process Name: ./pth32
---------------------
 Total Application Time     (ms):  3.919091
 Total System Call Time     (ms):  8.303156
 Total Hypervisor Call Time (ms):  0.000000
 Application time details:
     Total Pthread Call Time (ms):  1.139372
     Total Pthread Dispatch Time (ms):  0.115822
     Total Pthread Idle Dispatch Time (ms):  0.036630
     Total Other Time (ms):  2.627266
                            Pthread System Calls Summary
                            ---------------------------
   Count   Total Time  Avg Time  Min Time  Max Time     SVC (Address)
               (msec)    (msec)    (msec)    (msec)
========  ===========  ========  ========  ========  ================
       1       3.3898    3.3898    3.3898    3.3898  _exit(409e50)
      61       0.8138    0.0133    0.0089    0.0254  kread(5ffd78)
      11       0.4616    0.0420    0.0262    0.0835  thread_create(407360)
      22       0.2570    0.0117    0.0062    0.0373  mprotect(6d5bd8)
      12       0.2126    0.0177    0.0100    0.0324  thread_setstate(40a660)
     115       0.1875    0.0016    0.0012    0.0037  klseek(5ffe38)
      12       0.1061    0.0088    0.0032    0.0134  sbrk(6d4f90)
      23       0.0803    0.0035    0.0018    0.0072  trcgent(4078d8)
...(lines omitted)...
                     Pending System Calls Summary
                     ----------------------------
Accumulated   SVC (Address)
Time (msec)
============  ==========================
      0.0141  thread_tsleep(40a4f8)
                     Pthread Calls Summary
                     ---------------------
   Count   Total Time   % sys  Avg Time  Min Time  Max Time  Pthread Routine
               (msec)    time    (msec)    (msec)    (msec)
========  ===========  ======  ========  ========  ========  ================
      11       0.9545   0.01%    0.0868    0.0457    0.1833  pthread_create
       8       0.0725   0.00%    0.0091    0.0064    0.0205  pthread_join
       1       0.0553   0.00%    0.0553    0.0553    0.0553  pthread_detach
       1       0.0341   0.00%    0.0341    0.0341    0.0341  pthread_cancel
       1       0.0229   0.00%    0.0229    0.0229    0.0229  pthread_kill
                     Pending Pthread Calls Summary
                     -----------------------------
Accumulated   Pthread Routine
Time (msec)
============  ===============
     0.0025   pthread_join
 processor affinity:  0.600000
Processor Dispatch Histogram for pthread (CPUid : times_dispatched):
    CPU 0 : 4
    CPU 1 : 1
 total number of dispatches  :  5
 avg. dispatch wait time (ms):  798.449725
 Thread affinity:  0.333333
Thread Dispatch Histogram for pthread (thread id :  number dispatches):
    Thread id 688279 : 1
    Thread id 856237 : 1
    Thread id 1007759 : 1
 total number of pthread dispatches:  3
 avg. dispatch wait time (ms):  1330.749542
      Data on Interrupts that Occurred while Phread was Running
           Type of Interrupt       Count
   =============================== ============================
    Data Access Page Faults (DSI): 452
Instr. Fetch Page Faults (ISI): 0
       Align. Error Interrupts: 0
      IO (external) Interrupts: 0
      Program Check Interrupts: 0
     FP Unavailable Interrupts: 0
       FP Imprecise Interrupts: 0
            RunMode Interrupts: 0
        Decrementer Interrupts: 2
Queued (Soft level) Interrupts: 0

pthread 요약 보고서에 들어가는 정보입니다.

항목 설명
Pthread ID 스레드의 pthread ID
Process ID pthread가 속한 프로세스 ID
Process Name pthread가 속한 프로세스 이름(알 수 있으면)
Total Application Time (ms) pthread가 응용 프로그램 모드에서 쓴 시간(밀리초)
Total System Call Time (ms) pthread가 시스템 호출 모드에서 쓴 시간(밀리초)

응용 프로그램 시간 세부 보고서에 들어가는 정보입니다.

항목 설명
Total Pthread Call Time pthread가 추적되는 pthread 라이브러리 호출에서 쓴 시간(밀리초)
Total Pthread Dispatch Time pthread가 libpthreads 디스패치 코드에서 쓴 시간(밀리초)
Total Pthread Idle Dispatch Time pthread가 libpthreads vp_sleep 코드에서 쓴 시간(밀리초)
Total Other Time pthread가 추적되지 않는 사용자 모드 코드에서 쓴 시간(밀리초)
Total number of pthread dispatches 프로세스에 속한 pthread가 libpthreads 디스패처에 의해 디스패치된 전체 횟수
Total number of pthread idle dispatches 프로세스에 속한 스레드가 libpthreads vp_sleep 코드에 있었던 전체 횟수

보고서에 들어가는 요약 정보입니다.

항목 설명
Pthread System Calls Summary pthread의 시스템 호출 요약. 전역 System Calls Summary와 필드가 같고, -e를 주면 경과 시간, -s를 주면 오류 정보가 더해집니다.
Pending System Calls Summary trace가 끝날 때 pthread가 시스템 호출을 실행 중이었으면 나옵니다. Accumulated Time과 SVC (Address) 필드가 있고 -e를 주면 경과 시간이 더해집니다.
Pthread Hypervisor Calls Summary pthread의 하이퍼바이저 호출 요약. 전역 Hypervisor Calls Summary와 필드가 같고 -e를 주면 경과 시간이 더해집니다.
Pending Hypervisor Calls Summary trace가 끝날 때 pthread가 하이퍼바이저 호출을 실행 중이었으면 나옵니다. Accumulated Time과 Hypervisor Call 필드가 있고 -e를 주면 경과 시간이 더해집니다.
Pthread Calls Summary pthread의 pthread 라이브러리 호출 요약. 전역 Pthread Calls Summary와 필드가 같고 -e를 주면 경과 시간이 더해집니다.
Pending Pthread Calls Summary trace가 끝날 때 pthread가 pthread 라이브러리 호출을 실행 중이었으면 나옵니다. Accumulated Time과 Pthread Routine 필드가 있고 -e를 주면 경과 시간이 더해집니다.

pthread 요약 보고서에는 다음 정보도 들어갑니다.

항목 설명
processor affinity pthread가 디스패치될 때마다 마지막으로 실행된 프로세서에 다시 디스패치될 확률
Processor Dispatch Histogram for pthread pthread가 시스템의 각 CPU에 디스패치된 횟수
avg. dispatch wait time pthread가 디스패치에서 내려온 때부터 다음에 디스패치될 때까지의 평균 경과 시간
영어 원문

Default report generated by the curt command

The curt command output always includes this default report in its output, even if one of the flags described in the previous section is used.

This section explains the default report created by the curt command, as follows:

text
# curt -i trace.r -n gensyms.out -o curt.out

General information

The general information displays the time and date when the report was generated, and is followed by the syntax of the curt command line that was used to produce the report.

This section also contains some information about the AIX trace file that was processed by the curt command. This information consists of the trace file's name, size, and its creation date. The command used to invoke the AIX trace facility and gather the trace file is displayed at the end of the report.

The following is a sample of the general information section:

text
Run on Wed Apr 26 10:51:33 2XXX
Command line was:
curt -i trace.raw -n gensyms.out -o curt.out
----
AIX trace file name = trace.raw
AIX trace file size = 787848
Wed Apr 26 10:50:11 2XXX
System: AIX 5.3 Node: bu Machine: 00CFEDAD4C00
AIX trace file created = Wed Apr 26 10:50:11 2XXX
Command used to gather AIX trace was:
  trace -n -C all -d -j 100,101,102,103,104,106,10C,134,139,200,215,419,465,47F,488,489,48A,48D,492,605,609
  -L 1000000 -T 1000000 -afo trace.raw

System summary

The system summary information produced by the curt command describes the time spent by the whole system (all CPUs) in various execution modes.

The following is a sample of the System summary:

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

The System Summary has the following fields:

  • processing total time — Total time in milliseconds for the corresponding processing category.
  • percent total time — Time from the first column as a percentage of the sum of total trace elapsed time for all processors. This includes whatever amount of time each processor spent running the IDLE process.
  • percent busy time — Time from the first column as a percentage of the sum of total trace elapsed time for all processors without including the time each processor spent executing the IDLE process.
  • Avg. Thread Affinity — Probability that a thread was dispatched to the same processor on which it last executed.
  • Total Physical CPU time — The real time that the virtual processor was running and not preempted.
  • Physical CPU percentage — Gives the Physical CPU Time as a percentage of total time.

The possible execution modes or processing categories are interpreted as follows:

  • APPLICATION — The sum of times spent by all processors in User (that is, non-privileged) mode.
  • SYSCALL — The sum of times spent by all processors doing System Calls. This is the portion of time that a processor spends executing in the kernel code providing services directly requested by a user process.
  • HCALL — The sum of times spent by all processors doing Hypervisor Calls. This is the portion of time that a processor spends executing in the hypervisor code providing services directly requested by the kernel.
  • KPROC — The sum of times spent by all processors executing kernel processes other than IDLE and NFS processes. This is the portion of time that a processor spends executing specially created dispatchable processes that only execute kernel code.
  • NFS — The sum of times spent by all processors executing NFS operations. This is the portion of time that a processor spends executing in the kernel code providing NFS services directly requested by a kernel process.
  • FLIH — The sum of times spent by all processors executing FLIHs.
  • SLIH — The sum of times spent by all processors executing SLIHs.
  • DISPATCH — The sum of times spent by all processors executing the AIX dispatch code. This sum includes the time spent dispatching all threads (that is, it includes dispatches of the IDLE process).
  • IDLE DISPATCH — The sum of times spent by all processors executing the AIX dispatch code where the process being dispatched was the IDLE process. Because the DISPATCH category includes the IDLE DISPATCH category's time, the IDLE DISPATCH category's time is not separately added to calculate either CPU(s) busy time or TOTAL (see below).
  • CPU(s) busy time — The sum of times spent by all processors executing in APPLICATION, SYSCALL, KPROC, FLIH, SLIH, and DISPATCH modes.
  • IDLE — The sum of times spent by all processors executing the IDLE process.
  • TOTAL — The sum of CPU(s) busy time and IDLE.

The System Summary example indicates that the CPU is spending most of its time in application mode. There is still 4234.76 ms of IDLE time so there is enough CPU to run applications. If there is insufficient CPU power, do not expect to see any IDLE time. The Avg. Thread Affinity value is 0.99 showing good processor affinity; that is, threads returning to the same processor when they are ready to be run again.

System application summary

The system application summary information produced by the curt command describes the time spent by the system as a whole (all CPUs) in various execution modes.

The following is a sample of the System Application Summary:

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

The System Application Summary has the following fields:

  • processing total time — Total time in milliseconds for the corresponding processing category.
  • percent total time — Time from the first column as a percentage of the sum of total trace elapsed time for all processors. This includes whatever amount of time each processor spent running the IDLE process.
  • percent application time — Time from the first column as a percentage of the sum of total trace elapsed application time for all processors
  • Avg. Pthread Affinity — Probability that a pthread was dispatched on the same kernel thread on which it last executed.

The possible execution modes or processing categories are interpreted as follows:

  • PTHREAD — The sum of times spent by all pthreads on all processors in traced pthread library calls.
  • PDISPATCH — The sum of times spent by all pthreads on all processors executing the libpthreads dispatch code.
  • PIDLE — The sum of times spent by all kernel threads on all processors executing the libpthreads vp_sleep code.
  • OTHER — The sum of times spent by all pthreads on all processors in non-traced user mode.
  • APPLICATION — The sum of times spent by all processors in User (that is, non-privileged) mode.

Processor summary and processor application summary

This part of the curt command output is displayed by a processor-by-processor basis.

The same description that was given for the system summary and system application summary applies here, except that this report covers each processor rather than the whole system.

Below is a sample of this output:

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

The following terms are referred to in the example above:

Total number of process dispatches

The number of times AIX dispatched any non-IDLE process on the processor.

Total number of idle dispatches

The number of IDLE process dispatches.

Total number of pthread dispatches

The number of times the libpthreads dispatcher was executed on the processor.

Total number of pthread idle dispatches

The number of vp_sleep calls.

Application summary by thread ID (Tid)

The application summary, by Tid, displays an output of all the threads that were running on the system during the time of trace collection and their CPU consumption. The thread that consumed the most CPU time during the time of the trace collection is displayed at the top of the output.

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

The output is divided into two main sections:

  • The total processing time of the thread in milliseconds (processing total (msec))

  • The CPU time that the thread has consumed, expressed as a percentage of the total CPU time (percent of total processing time)

The Application Summary (by Tid) has the following fields:

  • name (Pid Tid) — The name of the process associated with the thread, its process id, and its thread id.

The processing total (msec) displays the following values:

  • combined — The total amount of CPU time, expressed in milliseconds, that the thread was running in either application mode or system call mode.
  • application — The amount of CPU time, expressed in milliseconds, that the thread spent in application mode.
  • syscall — The amount of CPU time, expressed in milliseconds, that the thread spent in system call mode.

The percent of total processing time displays the following values:

  • combined — The amount of CPU time that the thread was running, expressed as percentage of the total processing time.
  • application — The amount of CPU time that the thread the thread spent in application mode, expressed as percentage of the total processing time.
  • syscall — The amount of CPU time that the thread spent in system call mode, expressed as percentage of the total processing time.

In the example above, we can investigate why the system is spending so much time in application mode by looking at the Application Summary (by Tid), where we can see the top three processes of the report are named cpu, a test program that uses a great deal of CPU time. The report shows again that the CPU spent most of its time in application mode running the cpu process. Therefore the cpu process is a candidate to be optimized to improve system performance.

Application summary by process ID (Pid)

The application summary, by Pid, has the same content as the application summary, by Tid, except that the threads that belong to each process are consolidated and the process that consumed the most CPU time during the monitoring period is at the beginning of the list.

The name (PID) (Thread Count) column shows the process name, its process ID, and the number of threads that belong to this process and that have been accumulated for this line of data.

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

Application summary by process type

The application summary by process type consolidates all processes of the same name and sorts them in descending order of combined processing time.

The name (thread count) column shows the name of the process, and the number of threads that belong to this process name (type) and were running on the system during the monitoring period.

text
                   Application Summary (by process type)
               -----------------------------------------------
   -- processing total (msec) --    -- percent of total processing time --
  combined  application   syscall  combined  application  syscall  name (thread count)
  ========  ===========   =======  ========  ===========  =======  ==================
14954.0738   14954.0738    0.0000   73.2416      73.2416   0.0000  cpu(3)
  573.9466      21.2609  552.6857    2.8111       0.1041   2.7069  disp+work(9)
   20.9568       5.5820   15.3748    0.1026       0.0273   0.0753  trcstop(1)
   10.6151       2.4241    8.1909    0.0520       0.0119   0.0401  i4llmd(1)
    8.7146       5.3062    3.4084    0.0427       0.0260   0.0167  dtgreet(1)
    7.6063       1.4893    6.1171    0.0373       0.0073   0.0300  sleep(1)
...(lines omitted)...

Kproc summary by thread ID (Tid)

The Kproc summary, by Tid, displays an output of all the kernel process threads that were running on the system during the time of trace collection and their CPU consumption. The thread that consumed the most CPU time during the time of the trace collection is displayed at the beginning of the output.

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

The Kproc Summary has the following fields:

  • name (Pid Tid Type) — The name of the kernel process associated with the thread, its process ID, its thread ID, and its type. The kproc type is defined in the Kproc Types listing following the Kproc Summary.

processing total (msec)

  • combined — The total amount of CPU time, expressed in milliseconds, that the thread was running in either operation or kernel mode.
  • kernel — The amount of CPU time, expressed in milliseconds, that the thread spent in unidentified kernel mode.
  • operation — The amount of CPU time, expressed in milliseconds, that the thread spent in traced operations.

percent of total time

  • combined — The amount of CPU time that the thread was running, expressed as percentage of the total processing time.
  • kernel — The amount of CPU time that the thread spent in unidentified kernel mode, expressed as percentage of the total processing time.
  • operation — The amount of CPU time that the thread spent in traced operations, expressed as percentage of the total processing time.

Kproc Types

  • Type — A single letter to be used as an index into this listing.
  • Function — A description of the nominal function of this type of kernel process.
  • Operation — A description of the traced operations for this type of kernel process.

Application Pthread summary by process ID (Pid)

The application Pthread summary, by PID, displays an output of all the multi-threaded processes that were running on the system during trace collection and their CPU consumption, and that have spent time making pthread calls. The process that consumed the most CPU time during the trace collection is displays at the beginning of the list.

text
                    Application Pthread Summary (by Pid)
                    ------------------------------------
   -- processing total (msec) --     -- percent of total application time --
application       other     pthread  application       other      pthread   name (Pid)(Pthread Count)
===========  ==========  ==========  ===========  ==========   ==========   =========================
  1277.6602   1274.9354      2.7249    23.8113       23.7605       0.0508   ./pth(245964)(52)
   802.6445    801.4162      1.2283    14.9586       14.9357       0.0229   ./pth32(245962)(12)
 ...(lines omitted)...

The output is divided into two main sections:

  • The total processing time of the process in milliseconds (processing total (msec))

  • The CPU time that the process has consumed, expressed as a percentage of the total application time

The Application Pthread Summary has the following fields:

  • name (Pid) (Pthread Count) — The name of the process associated with the process ID, and the number of pthreads of this process.

processing total (msec)

  • application — The total amount of CPU time, expressed in milliseconds, that the process was running in user mode.
  • pthread — The amount of CPU time, expressed in milliseconds, that the process spent in traced call to the pthreads library.
  • other — The amount of CPU time, expressed in milliseconds, that the process spent in non traced user mode.

percent of total application time

  • application — The amount of CPU time that the process was running in user mode, expressed as percentage of the total application time.
  • pthread — The amount of CPU time that the process spent in calls to the pthreads library, expressed as percentage of the total application time.
  • other — The amount of CPU time that the process spent in non traced user mode, expressed as percentage of the total application time.

System calls summary

The System Calls Summary provides a list of all the system calls that have completed execution on the system during the monitoring period. The list is sorted by the total CPU time in milliseconds consumed by each type of system call.

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

The System Calls Summary has the following fields:

  • Count — The number of times that a system call of a certain type (see SVC (Address)) has been called during the monitoring period.
  • Total Time (msec) — The total CPU time that the system spent processing these system calls, expressed in milliseconds.
  • % sys time — The total CPU time that the system spent processing these system calls, expressed as a percentage of the total processing time.
  • Avg Time (msec) — The average CPU time that the system spent processing one system call of this type, expressed in milliseconds.
  • Min Time (msec) — The minimum CPU time that the system needed to process one system call of this type, expressed in milliseconds.
  • Max Time (msec) — The maximum CPU time that the system needed to process one system call of this type, expressed in milliseconds.
  • SVC (Address) — The name of the system call and its kernel address.

Pending system calls summary

The pending system calls summary provides a list of all the system calls that have been executed on the system during the monitoring period but have not completed. The list is sorted by Tid.

text
                     Pending System Calls Summary
                     ----------------------------
Accumulated   SVC (Address)               Procname (Pid  Tid)
Time (msec)
============  =========================  ==========================
      0.0656  _select(4e0ee4)            sendmail(7844 5001)
      0.0452  _select(4e0ee4)            syslogd(7514 8591)
      0.0712  _select(4e0ee4)            snmpd(5426 9293)
      0.0156  kioctl(4e07ac)             trcstop(47210 18379)
      0.0274  kwaitpid(1cab64)           ksh(20276 44359)
      0.0567  kread4259e8)               ksh(23342 50873)
 ...(lines omitted)...

The Pending System Calls Summary has the following fields:

  • Accumulated Time (msec) — The accumulated CPU time that the system spent processing the pending system call, expressed in milliseconds.
  • SVC (Address) — The name of the system call and its kernel address.
  • Procname (Pid Tid) — The name of the process associated with the thread that made the system call, its process ID, and the thread ID.

Hypervisor calls summary

The Hypervisor calls summary provides a list of all the hypervisor calls that have completed execution on the system during the monitoring period. The list is sorted by the total CPU time, in milliseconds, consumed by each type of hypervisor call.

text
                     Hypervisor Calls Summary
                     ------------------------
   Count   Total Time   % sys  Avg Time  Min Time  Max Time  HCALL (Address)
               (msec)    time    (msec)    (msec)    (msec)
========  ===========  ======  ========  ========  ========  =================
       4       0.0077   0.00%    0.0019    0.0014    0.0025  H_XIRR(3ada19c)
       4       0.0070   0.00%    0.0017    0.0015    0.0021  H_EOI(3ad6564)

The Hypervisor Calls Summary has the following fields:

  • Count — The number of times that a hypervisor call of a certain type has been called during the monitoring period.
  • Total Time (msec) — The total CPU time that the system spent processing hypervisor calls of this type, expressed in milliseconds.
  • % sys Time — The total CPU time that the system spent processing the hypervisor calls of this type, expressed as a percentage of the total processing time.
  • Avg Time (msec) — The average CPU time that the system spent processing one hypervisor call of this type, expressed in milliseconds.
  • Min Time (msec) — The minimum CPU time that the system needed to process one hypervisor call of this type, expressed in milliseconds.
  • Max Time (msec) — The maximum CPU time that the system needed to process one hypervisor call of this type, expressed in milliseconds
  • HCALL (address) — The name of the hypervisor call and the kernel address of its caller.

Pending Hypervisor calls summary

The pending Hypervisor calls summary provides a list of all the hypervisor calls that have been executed on the system during the monitoring period but have not completed. The list is sorted by Tid.

text
                     Pending Hypervisor Calls Summary
                     --------------------------------
Accumulated   HCALL (Address)             Procname (Pid  Tid)
Time (msec)
============  =========================  ==========================
      0.0066  H_XIRR(3ada19c)            syncd(3916 5981)

The Pending Hypervisor Calls Summary has the following fields:

  • Accumulated Time (msec) — The accumulated CPU time that the system spent processing the pending hypervisor call, expressed in milliseconds.
  • HCALL (address) — The name of the hypervisor call and the kernel address of its caller.
  • Procname (Pid Tid) — The name of the process associated with the thread that made the hypervisor call, its process ID, and the thread ID.

System NFS calls summary

The system NFS calls summary provides a list of all the system NFS calls that have completed execution on the system during the monitoring period. The list is divided by NFS versions, and each list is sorted by the total CPU time, in milliseconds, consumed by each type of system NFS call.

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

The System NFS Calls Summary has the following fields:

  • Count — The number of times that a certain type of system NFS call (see Opcode) has been called during the monitoring period.
  • Total Time (msec) — The total CPU time that the system spent processing system NFS calls of this type, expressed in milliseconds.
  • Avg Time (msec) — The average CPU time that the system spent processing one system NFS call of this type, expressed in milliseconds.
  • Min Time (msec) — The minimum CPU time that the system needed to process one system NFS call of this type, expressed in milliseconds.
  • Max Time (msec) — The maximum CPU time that the system needed to process one system NFS call of this type, expressed in milliseconds
  • % Tot Time — The total CPU time that the system spent processing the system NFS calls of this type, expressed as a percentage of the total processing time.
  • % Tot Count — The number of times that a system NFS call of a certain type was made, expressed as a percentage of the total count.
  • Opcode — The name of the system NFS call.

Pending NFS calls summary

The pending NFS calls summary provides a list of all the system NFS calls that have executed on the system during the monitoring period but have not completed. The list is sorted by the Tid.

text
Pending NFS Calls Summary
-------------------------
Accumulated   Sequence Number  Procname (Pid  Tid)
Time (msec)   Opcode
============  ===============  ==========================
      0.0831  1038711932        nfsd(1007854 331969)
      0.0833  1038897247        nfsd(1007854 352459)
      0.0317  1038788652        nfsd(1007854 413931)
      0.0029  NFS4_ATTRCACHE    kbiod(100098 678934)
..(lines omitted)...

The Pending System NFS Calls Summary has the following fields:

  • Accumulated Time (msec) — The accumulated CPU time that the system spent processing the pending system NFS call, expressed in milliseconds.
  • Sequence Number — The sequence number represents the transaction identifier (XID) of an NFS operation. It is used to uniquely identify an operation and is used in the RPC call/reply messages. This number is provided instead of the operation name because the name of the operation is unknown until it completes.
  • Opcode — The name of pending operation NFS V4.
  • Procname (Pid Tid) — The name of the process associated with the thread that made the system NFS call, its process ID, and the thread ID.

Pthread calls summary

The Pthread calls summary provides a list of all the pthread calls that have completed execution on the system during the monitoring period. The list is sorted by the total CPU time, in milliseconds, consumed by each type of pthread call.

text
                     Pthread Calls Summary
                     --------------------
   Count   Total Time   % sys  Avg Time  Min Time  Max Time  Pthread Routine
               (msec)    time    (msec)    (msec)    (msec)
========  ===========  ======  ========  ========  ========  ================
      62       3.6226   0.04%    0.0584    0.0318    0.1833  pthread_create
      10       0.1798   0.00%    0.0180    0.0119    0.0341  pthread_cancel
       8       0.0725   0.00%    0.0091    0.0064    0.0205  pthread_join
       1       0.0553   0.00%    0.0553    0.0553    0.0553  pthread_detach
       1       0.0229   0.00%    0.0229    0.0229    0.0229  pthread_kill

The Pthread Calls Summary report has the following fields:

  • Count — The number of times that a pthread call of a certain type has been called during the monitoring period.
  • Total Time (msec) — The total CPU time that the system spent processing all pthread calls of this type, expressed in milliseconds.
  • % sys time — The total CPU time that the system spent processing all calls of this type, expressed as a percentage of the total processing time.
  • Avg Time (msec) — The average CPU time that the system spent processing one pthread call of this type, expressed in milliseconds.
  • Min Time (msec) — The minimum CPU time the system used to process one pthread call of this type, expressed in milliseconds.
  • Pthread routine — The name of the routine in the pthread library.

Pending Pthread calls summary

The pending Pthread calls summary provides a list of all the pthread calls that have been executed on the system during the monitoring period but have not completed. The list is sorted by Pid-Ptid.

text
            Pending Pthread Calls Summary
            -----------------------------
Accumulated   Pthread Routine  Procname (Pid  Tid  Ptid)
Time (msec)
============  ===============  ==========================
   1990.9400  pthread_join     ./pth32(245962 1007759 1)

The Pending Pthread System Calls Summary has the following fields:

  • Accumulated Time (msec) — The accumulated CPU time that the system spent processing the pending pthread call, expressed in milliseconds.
  • Pthread Routine — The name of the pthread routine of the libpthreads library.
  • Procname (Pid Tid Ptid) — The name of the process associated with the thread and the pthread which made the pthread call, its process ID, the thread ID and the pthread ID.

FLIH summary

The FLIH (First Level Interrupt Handler) summary lists all first level interrupt handlers that were called during the monitoring period.

The Global FLIH Summary lists the total of first level interrupts on the system, while the Per CPU FLIH Summary lists the first level interrupts per CPU.

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

The FLIH Summary report has the following fields:

  • Count — The number of times that a first level interrupt of a certain type (see Flih Type) occurred during the monitoring period.
  • Total Time (msec) — The total CPU time that the system spent processing these first level interrupts, expressed in milliseconds.
  • Avg Time (msec) — The average CPU time that the system spent processing one first level interrupt of this type, expressed in milliseconds.
  • Min Time (msec) — The minimum CPU time that the system needed to process one first level interrupt of this type, expressed in milliseconds.
  • Max Time (msec) — The maximum CPU time that the system needed to process one first level interrupt of this type, expressed in milliseconds.
  • Flih Type — The number and name of the first level interrupt.
  • Accumulated Time (msec) The accumulated CPU time that the system spent processing the pending first level interrupt, expressed — in milliseconds.
  • FLIH types in the example:

The following are FLIH types that were depicted in the FLIH summary.

  • DATA_ACC_PG_FLT — Data access page fault
  • QUEUED_INTR — Queued interrupt
  • DECR_INTR — Decrementer interrupt
  • IO_INTR — I/O interrupt

SLIH summary

The Second level interrupt handler (SLIH) Summary lists all second level interrupt handlers that were called during the monitoring period.

The Global Slih Summary lists the total of second level interrupts on the system, while the Per CPU Slih Summary lists the second level interrupts per CPU.

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

The SLIH Summary report has the following fields:

  • Count — The number of times that each second level interrupt handler was called during the monitoring period.
  • Total Time (msec) — The total CPU time that the system spent processing these second level interrupts, expressed in milliseconds.
  • Avg Time (msec) — The average CPU time that the system spent processing one second level interrupt of this type, expressed in milliseconds.
  • Min Time (msec) — The minimum CPU time that the system needed to process one second level interrupt of this type, expressed in milliseconds.
  • Max Time (msec) — The maximum CPU time that the system needed to process one second level interrupt of this type, expressed in milliseconds.
  • Slih Name (Address) — The module name and kernel address of the second level interrupt.

Reports generated with the -e flag

The report generated with the -e flag includes the data shown in the default report, and also includes additional information in the System Calls Summary, the Pending System Calls Summary, the Hypervisor Calls Summary, the Pending Hypervisor Calls Summary, the System NFS Calls Summary, the Pending NFS Calls Summary, the Pthread Calls Summary and the Pending Pthread Calls Summary.

The additional information in the System Calls Summary, Hypervisor Calls Summary, System NFS Calls Summary, and the Pthread Calls Summary includes the total, average, maximum, and minimum elapsed time that a call was running. The additional information in the Pending System Calls Summary, Pending Hypervisor Calls Summary, Pending NFS Calls Summary, and the Pending Pthread Calls Summary is the accumulated elapsed time for the pending calls. This additional information is present in all the system call, hypervisor call, NFS call, and pthread call reports: globally, in the process detailed report (-p), the thread detailed report (-t), and the pthread detailed report (-P).

The following is an example of the additional information reported by using the -e flag:

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

The system call, hypervisor call, NFS call, and pthread call reports in the preceding example have the following fields in addition to the default System Calls Summary, Hypervisor Calls Summary, System NFS Calls Summary, and Pthread Calls Summary :

  • Tot ETime (msec) — The total amount of time from when each instance of the call was started until it completed. This time will include any time spent servicing interrupts, running other processes, and so forth.
  • Avg ETime (msec) — The average amount of time from when the call was started until it completed. This time will include any time spent servicing interrupts, running other processes, and so forth.
  • Min ETime (msec) — The minimum amount of time from when the call was started until it completed. This time will include any time spent servicing interrupts, running other processes, and so forth.
  • Max ETime (msec) — The maximum amount of time from when the call was started until it completed. This time will include any time spent servicing interrupts, running other processes, and so forth.
  • Accumulated ETime (msec) — The total amount of time from when the pending call was started until the end of the trace. This time will include any time spent servicing interrupts, running other processes, and so forth.

The preceding example report shows that the maximum elapsed time for the kwrite system call was 422.2323 msec, but the maximum CPU time was 4.5626 msec. If this amount of overhead time is unusual for the device being written to, further analysis is needed.

Reports generated with the -s flag

The report generated with the -s flag includes the data shown in the default report, and data on errors returned by system calls.

text
# curt -s -i trace.r -m trace.nm -n gensyms.out -o curt.out
# cat curt.out
...(lines omitted)...
                      Errors Returned by System Calls
                      ------------------------------
Errors (errno : count : description) returned for System Call: kioctl(4e07ac)
   25 :       15 : "Not a typewriter"
Errors (errno : count : description) returned for System Call: execve(1c95d8)
    2 :        2 : "No such file or directory"
...(lines omitted)...

If a large number of errors of a specific type or on a specific system call point to a system or application problem, other debug measures can be used to determine and fix the problem.

Reports generated with the -t flag

The report generated with the -t flag includes the data shown in the default report, and also includes a detailed report on thread status that includes the amount of time the thread was in application and system call mode, what system calls the thread made, processor affinity, the number of times the thread was dispatched, and to which CPUs it was dispatched.

The report also includes dispatch wait time and details of interrupts:

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

If the thread belongs to an NFS kernel process, the report will include information on NFS operations instead of System calls:

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

The following information is included in the threads summary:

  • Thread ID — The Thread ID of the thread.
  • Process ID — The Process ID that the thread belongs to.
  • Process Name — The process name, if known, that the thread belongs to.
  • Total Application Time (ms) — The amount of time, expressed in milliseconds, that the thread spent in application mode.
  • Total System Call Time (ms) — The amount of time, expressed in milliseconds, that the thread spent in system call mode.
  • Thread System Call Summary — A system call summary for the thread; this has the same fields as the global System Calls Summary. It also includes elapsed time if the -e flag is specified and error information if the -s flag is specified.
  • Pending System Calls Summary — If the thread was executing a system call at the end of the trace, a pending system call summary will be printed. This has the Accumulated Time and Supervisor Call (SVC Address) fields. It also includes elapsed time if the -e flag is specified.
  • Thread Hypervisor Calls Summary — The hypervisor call summary for the thread; this has the same fields as the global Hypervisor Calls Summary. It also includes elapsed time if the -e flag is specified.
  • Pending Hypervisor Calls Summary — If the thread was executing a hypervisor call at the end of the trace, a pending hypervisor call summary will be printed. This has the Accumulated Time and Hypervisor Call fields. It also includes elapsed time if the -e flag is specified.
  • Thread NFS Calls Summary — An NFS call summary for the thread. This has the same fields as the global System NFS Call Summary. It also includes elapsed time if the -e flag is specified.
  • Pending NFS Calls Summary — If the thread was executing an NFS call at the end of the trace, a pending NFS call summary will be printed. This has the Accumulated Time and Sequence Number or, in the case of NFS V4, Opcode, fields. It also includes elapsed time if the -e flag is specified.
  • processor affinity — The process affinity, which is the probability that, for any dispatch of the thread, the thread was dispatched to the same processor on which it last executed.
  • Dispatch Histogram for thread — Shows the number of times the thread was dispatched to each CPU in the system.
  • total number of dispatches — The total number of times the thread was dispatched (not including redispatches).
  • total number of redispatches due to interrupts being disabled — The number of redispatches due to interrupts being disabled, which is when the dispatch code is forced to dispatch the same thread that is currently running on that particular CPU because the thread had disabled some interrupts. This total is only reported if the value is non-zero.
  • avg. dispatch wait time (ms) — The average dispatch wait time is the average elapsed time for the thread from being undispatched and its next dispatch.
  • Data on Interrupts that occurred while Thread was Running — Count of how many times each type of FLIH occurred while this thread was executing.

Reports generated with the -p flag

The report generated with the -p flag includes the data shown in the default report and also includes a detailed report for each process that includes the Process ID and name, a count and list of the thread IDs, and the count and list of the pthread IDs belonging to the process. The total application time, the system call time, and the application time details for all the threads of the process are given. Lastly, it includes summary reports of all the completed and pending system calls, and pthread calls for the threads of the process.

The following example shows the report generated for the router process (PID 129190):

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

If the process is an NFS kernel process, the report will include information on NFS operations instead of System and Pthread calls:

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

The following information is included in the process detailed report:

  • Total Application Time (ms) — The amount of time, expressed in milliseconds, that the process spent in application mode.
  • Total System Call Time (ms) — The amount of time, expressed in milliseconds, that the process spent in system call mode.

The following information is included in the application time details report:

  • Total Pthread Call Time — The amount of time, expressed in milliseconds, that the process spent in traced pthread library calls.
  • Total Pthread Dispatch Time — The amount of time, expressed in milliseconds, that the process spent in libpthreads dispatch code.
  • Total Pthread Idle Dispatch Time — The amount of time, expressed in milliseconds, that the process spent in libpthreads vp_sleep code.
  • Total Other Time — The amount of time, expressed in milliseconds, that the process spent in non-traced user mode code.
  • Total number of pthread dispatches — The total number of times a pthread belonging to the process was dispatched by the libpthreads dispatcher.
  • Total number of pthread idle dispatches — The total number of times a thread belonging to the process was in the libpthreads vp_sleep code.

The following summary information is included in the report:

  • Process System Calls Summary — A system call summary for the process; this has the same fields as the global System Call Summary. It also includes elapsed time information if the -e flag is specified and error information if the -s flag is specified.
  • Pending System Calls Summary — If the process was executing a system call at the end of the trace, a pending system call summary will be printed. This has the Accumulated Time and Supervisor Call (SVC Address) fields. It also includes elapsed time information if the -e flag is specified.
  • Process Hypervisor Calls Summary — A summary of the hypervisor calls for the process; this has the same fields as the global Hypervisor Calls Summary. It also includes elapsed time information if the -e flag is specified.
  • Pending Hypervisor Calls Summary — If the process was executing a hypervisor call at the end of the trace, a pending hypervisor call summary will be printed. This has the Accumulated Time and Hypervisor Call fields. It also includes elapsed time information if the -e flag is specified.
  • Process NFS Calls Summary — An NFS call summary for the process. This has the same fields as the global System NFS Call Summary. It also includes elapsed time information if the -e flag is specified.
  • Pending NFS Calls Summary — If the process was executing an NFS call at the end of the trace, a pending NFS call summary will be printed. This has the Accumulated Time and Sequence Number or, in the case of NFS V4, Opcode, fields. It also includes elapsed time information if the -e flag is specified.
  • Pthread Calls Summary — A summary of the pthread calls for the process. This has the same fields as the global pthread Calls Summary. It also includes elapsed time information if the -e flag is specified.
  • Pending Pthread Calls Summary — If the process was executing pthread library calls at the end of the trace, a pending pthread call summary will be printed. This has the Accumulated Time and Pthread Routine fields. It also includes elapsed time information if the -e flag is specified.

Reports generated with the -P flag

The report generated with the -P flag includes the data shown in the default report and also includes a detailed report on pthread status.

The report includes the following:

  • The amount of time the pthread was in application and system call mode

  • The application time details

  • The system calls and pthread calls that the pthread made

  • The system calls and pthread calls that were pending at the end of the trace

  • The processor affinity

  • The number of times the pthread was dispatched

  • To which CPU(s) the thread was dispatched

  • The thread affinity

  • The number of times that the pthread was dispatched

  • To which kernel thread(s) the pthread was dispatched

The report also includes dispatch wait time and details of interrupts.

The following is an example of a report generated with the -P flag:

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

The information in the pthreads summary report includes the following:

  • Pthread ID — The Pthread ID of the thread.
  • Process ID — The Process ID that the pthread belongs to.
  • Process Name — The process name, if known, that the pthread belongs to.
  • Total Application Time (ms) — The amount of time, expressed in milliseconds, that the pthread spent in application mode.
  • Total System Call Time (ms) — The amount of time, expressed in milliseconds, that the pthread spent in system call mode.

The information in the application time details report includes the following:

  • Total Pthread Call Time — The amount of time, expressed in milliseconds, that the pthread spent in traced pthread library calls.
  • Total Pthread Dispatch Time — The amount of time, expressed in milliseconds, that the pthread spent in libpthreads dispatch code.
  • Total Pthread Idle Dispatch Time — The amount of time, expressed in milliseconds, that the pthread spent in libpthreads vp_sleep code.
  • Total Other Time — The amount of time, expressed in milliseconds, that the pthread spent in non-traced user mode code.
  • Total number of pthread dispatches — The total number of times a pthread belonging to the process was dispatched by the libpthreads dispatcher.
  • Total number of pthread idle dispatches — The total number of times a thread belonging to the process was in the libpthreads vp_sleep code.

The summary information in the report includes the following:

  • Pthread System Calls Summary — A system call summary for the pthread; this has the same fields as the global System Call Summary. It also includes elapsed time information if the -e flag is specified and error information if the -s flag is specified.
  • Pending System Calls Summary — If the pthread was executing a system call at the end of the trace, a pending system call summary will be printed. This has the Accumulated Time and Supervisor Call (SVC Address) fields. It also includes elapsed time information if the -e flag is specified.
  • Pthread Hypervisor Calls Summary — A summary of the hypervisor calls for the pthread. This has the same fields as the global hypervisor calls summary. It also includes elapsed time information if the -e flag is specified.
  • Pending Hypervisor Calls Summary — If the pthread was executing a hypervisor call at the end of the trace, a pending hypervisor calls summary will be printed. This has the Accumulated Time and Hypervisor Call fields. It also includes elapsed time information if the -e flag is specified.
  • Pthread Calls Summary — A summary of the pthread library calls for the pthread. This has the same fields as the global pthread Calls Summary. It also includes elapsed time information if the -e flag is specified.
  • Pending Pthread Calls Summary — If the pthread was executing a pthread library call at the end of the trace, a pending pthread call summary will be printed. This has the Accumulated Time and Pthread Routine fields. It also includes elapsed time information if the -e flag is specified.

The pthreads summary report also includes the following information:

  • processor affinity — Probability that for any dispatch of the pthread, the pthread was dispatched to the same processor on which it last executed.
  • Processor Dispatch Histogram for pthread — The number of times that the pthread was dispatched to each CPU in the system.
  • avg. dispatch wait time — The average elapsed time for the pthread from being undispatched and its next dispatch.
  • Thread affinity — The probability that for any dispatch of the pthread, the pthread was dispatched to the same kernel thread on which it last executed
  • Thread Dispatch Histogram for pthread — The number of times that the pthread was dispatched to each kernel thread in the process.
  • total number of pthread dispatches — The total number of times the pthread was dispatched by the libpthreads dispatcher.
  • Data on Interrupts that occurred while Pthread was Running — The number of times each type of FLIH occurred while the pthread was executing.

자주 쓰는 형태

bash
# 5초 동안 trace(CPU별 파일) -> 합치기 -> 이름 파일 -> curt
trace -n -C all -d -L 20000000 -T 20000000 -afo /tmp/trace.raw
trcon; sleep 5; trcstop
trcrpt -C all -r /tmp/trace.raw > /tmp/trace.r
gensyms > /tmp/gensyms.out
curt -i /tmp/trace.r -n /tmp/gensyms.out -o /tmp/curt.out
curt -e -p -t -i /tmp/trace.r -n /tmp/gensyms.out -o /tmp/curt_detail.out