netpmon 명령어 (AIX 5.3·6.1)

핵심 정리

  • 시스템 trace로 네트워크 관련 이벤트를 감시해, 감시한 기간의 네트워크 활동과 성능을 보고합니다. 보고 대상은 CPU 사용, 네트워크 장치 드라이버 I/O, 인터넷 소켓 호출, NFS I/O입니다.
  • 실행하면 백그라운드에서 trace를 시작하고, 그동안 응용 프로그램을 돌린 뒤 trcstop으로 멈추면 보고서를 만듭니다. -d는 trcon을 할 때까지 trace를 미룹니다.
  • 보고서가 길므로 보통 -o 파일로 받습니다. -O cpu,dd,so,nfs로 보고서를 고릅니다(기본은 all).
  • trace는 한 번에 하나만 돌 수 있어 다른 trace나 netpmon이 있으면 /dev/systrace: Device busy가 납니다.
  • 버퍼가 넘치면(Trace kernel buffers overflowed) -T로 버퍼를 키우거나 오프라인 모드(-i, -n)로 씁니다. 메모리가 모자라면 -P로 고정합니다.
  • 6.1에서 -@ [WparList|ALL]이 생겼습니다.
항목 내용
버전 AIX 5.3, AIX 6.1 (6.1에서 -@ WPAR 옵션이 더해지고, 오프라인 모드의 이름 파일이 gennames에서 gensyms로 바뀜)
원문 IBM Commands Reference — 5.3 Volume 4, 6.1 Volume 4
파일 /usr/bin/netpmon
관련 명령어 trace, trcon, trcstop, gensyms, filemon, tprof, netstat

목적

네트워크 I/O와 네트워크 관련 CPU 사용을 감시하고 통계를 보고합니다.

영어 원문

Monitors activity and reports statistics on network I/O and network-related CPU usage.

구문

text
netpmon [ -o File ] [ -d ] [ -T n ] [ -P ] [ -t ] [ -v ] [ -r PURR ] [ -O ReportType ... ]
        [ -i Trace_File -n Gensyms_File ] [ -@ [ WparList | ALL ] ]

5.3 구문은 -n Gennames_File이고 -@가 없습니다.

설명

netpmon 명령은 시스템 이벤트의 trace를 감시해, 감시한 기간의 네트워크 활동과 성능을 보고합니다. 기본으로 백그라운드에서 돌며, 그동안 하나 이상의 응용 프로그램이나 시스템 명령을 실행해 감시합니다. 네트워크 관련 시스템 이벤트의 trace를 자동으로 시작해 실시간으로 감시합니다. trace는 기본으로 바로 시작하며, 원하면 사용자가 trcon을 실행할 때까지 미룰 수 있습니다. trcstop으로 trace를 멈추면 지정한 보고서를 모두 만들고 끝납니다.

오프라인 모드, 곧 미리 만든 trace 파일로도 동작합니다. 이때는 gensyms 명령이 만든 파일도 필요하며, 이 파일은 trace를 멈춘 직후 같은 컴퓨터에서 만들어야 합니다. 오프라인 모드에서는 소켓이 쓰는 프로토콜을 알 수 없어 소켓 보고서의 자세함이 떨어집니다.

감시 대상 내용
CPU 사용 모든 스레드와 인터럽트 처리기의 CPU 사용과, 그중 네트워크 관련 활동의 몫을 추정
네트워크 장치 드라이버 I/O 토큰링과 FDDI 장치 드라이버의 입출력. 송신은 사용률, 큐 길이, 목적지 호스트까지, 수신은 demux 계층의 시간까지
인터넷 소켓 호출 인터넷 소켓의 send, recv, sendto, recvfrom, read, write를 프로세스별로, ICMP·TCP·UDP 프로토콜마다
NFS I/O 클라이언트 NFS 파일의 read·write, 클라이언트 NFS RPC 요청, NFS 서버의 읽기·쓰기 요청. 프로세스별(원하면 스레드별), 서버마다 파일별로, 서버별 클라이언트 RPC 통계, 클라이언트별 서버 읽기·쓰기 통계

명령줄 플래그로 이 보고서들을 어떻게든 조합할 수 있으며, 기본은 모두 만듭니다.

참고:

  • 보고서가 꽤 길 수 있으므로 보통 -o로 출력 파일에 씁니다.
  • 시스템 trace 기능은 출력 스트림을 하나만 지원하므로 netpmon이나 trace 프로세스는 한 번에 하나만 돌 수 있습니다. 이미 돌고 있으면 /dev/systrace: Device busy로 응답합니다.
  • 네트워크를 아주 많이 쓰는 응용 프로그램을 감시하면 trace 이벤트를 만들어지는 속도만큼 처리하지 못할 수 있습니다. 그러면 표준 오류에 Trace kernel buffers overflowed, N missed entries가 나오며, 감시는 계속하지만 보고서의 정확도가 알 수 없는 만큼 떨어집니다. -T로 trace 버퍼를 키우거나 오프라인 모드로 돌려 피할 수 있습니다.
  • 메모리가 모자란 환경에서는 -P로 실시간 netpmon 프로세스의 텍스트와 데이터 페이지를 메모리에 고정합니다. 고정하지 않으면 스왑되어 trace 이벤트를 제때 처리하지 못해 버퍼가 넘칠 수 있습니다.
  • /unix 파일과 실행 중인 커널이 같지 않으면 커널 주소가 틀려 netpmon이 끝납니다.
영어 원문

The netpmon command monitors a trace of system events, and reports on network activity and performance during the monitored interval. By default, the netpmon command runs in the background while one or more application programs or system commands are being executed and monitored. The netpmon command automatically starts and monitors a trace of network-related system events in real time. By default, the trace is started immediately; optionally, tracing may be deferred until the user issues a trcon command. When tracing is stopped by a trcstop command, the netpmon command generates all specified reports and exits.

The netpmon command can also work in offline mode, that is, on a previously generated trace file. In this mode, a file generated by the gensyms command is also required. The gensyms file should be generated immediately after the trace has been stopped, and on the same machine. When running in offline mode, the netpmon command cannot recognize protocols used by sockets, which limits the level of detail available in the socket reports.

The netpmon command reports on the following system activities:

CPU Usage The netpmon command monitors CPU usage by all threads and interrupt handlers. It estimates how much of this usage is due to network-related activities.

Network Device-Driver I/O The netpmon command monitors I/O operations through token-ring and Fiber-Distributed Data Interface (FDDI) network device drivers. In the case of transmission I/O, the command also monitors utilizations, queue lengths, and destination hosts. For receive ID, the command also monitors time in the demux layer.

Internet Socket Calls The netpmon command monitors all send, recv, sendto, recvfrom, read, and write subroutines on Internet sockets. It reports statistics on a per-process basis, for each of the following protocol types:

  • Internet Control Message Protocol (ICMP)

  • Transmission Control Protocol (TCP)

  • User Datagram Protocol (UDP)

NFS I/O The netpmon command monitors read and write subroutines on client Network File System

(NFS) files, client NFS remote procedure call (RPC) requests, and NFS server read or write requests. The command reports subroutine statistics on a per-process or optional per-thread basis and on a per-file basis for each server. The netpmon command reports client RPC statistics for each server, and server read and write statistics for each client.

Any combination of the preceding report types can be specified with the command line flags. By default, all the reports are produced.

Notes: The reports produced by the netpmon command can be quite long. Consequently, the -o flag should usually be used to write the report to an output file. The netpmon command obtains performance data using the system trace facility. The trace facility only supports one output stream. Consequently, only one netpmon or trace process can be active at a time. If another netpmon or trace process is already running, the netpmon command responds with the message:

/dev/systrace: Device busy

While monitoring very network-intensive applications, the netpmon command may not be able to consume trace events as fast as they are produced in real time. When that happens, the error message:

Trace kernel buffers overflowed, N missed entries

displays on standard error, indicating how many trace events were lost while the trace buffers were full. The netpmon command continues monitoring network activity, but the accuracy of the report diminishes by some unknown degree. One way to avoid overflow is to increase the trace buffer size using the -T flag, to accommodate larger bursts of trace events before overflow. Another way to avoid overflow problems all together is to run netpmon in offline mode.

When running in memory-constrained environments (where demand for memory exceeds supply), the -P flag can be used to pin the text and data pages of the real-time netpmon process in memory so the pages cannot be swapped out. If the -P flag is not used, allowing the netpmon process to be swapped out, the progress of the netpmon command may be delayed such that it cannot process trace events fast enough to prevent trace buffer overflow.

If the /unix file and the running kernel are not the same, the kernel addresses will be incorrect, causing the netpmon command to exit.

플래그

플래그 설명
-d netpmon을 시작하되, 사용자가 trcon을 실행할 때까지 trace를 미룹니다. 기본은 바로 시작합니다.
-i Trace_File 살아 있는 시스템 대신 trace 명령이 만든 파일에서 trace 레코드를 읽습니다. trace 파일은 먼저 trcrpt -r로 raw 형식으로 다시 써야 합니다. -n 없이 쓸 수 없습니다.
-n Gensyms_File gensyms 명령이 만든 파일에서 필요한 대응 정보를 읽습니다. -i를 쓸 때 꼭 필요합니다(5.3은 gennames 파일).
-o File 보고서를 표준 출력 대신 File에 씁니다.
-O ReportType ... 만들 보고서 종류입니다: cpu(CPU 사용), dd(네트워크 장치 드라이버 I/O. WPAR 안의 온라인 모드나 전역에서 -@ WparList일 때는 없음), so(인터넷 소켓 호출 I/O), nfs(모든 NFS 버전), nfs2, nfs3, nfs4(버전별 NFS I/O), all(모두. 전역 WPAR에서 -@ 없이 실행할 때 기본).
-P 감시 프로세스를 메모리에 고정합니다. 감시하는 동안 netpmon의 텍스트와 데이터 페이지를 고정해, 메모리가 모자란 환경에서도 실시간 프로세스가 메모리 공간이 모자라지 않게 합니다.
-r PURR 백분율과 CPU 시간 계산에 TimeBase 대신 PURR 시간을 씁니다. 경과 시간 계산에는 영향이 없습니다.
-t CPU 보고서를 스레드별로 출력합니다.
-T n 커널의 trace 버퍼 크기를 n바이트로 정합니다. 기본은 64,000바이트이며, 이벤트가 몰리면 키울 수 있습니다(이벤트 레코드 하나는 보통 30바이트 정도). 커널의 trace 드라이버는 이중 버퍼를 쓰므로 실제로는 n바이트 버퍼 두 개를 잡고, 메모리에 고정되어 페이징되지 않습니다.
-v 보고서에 정보를 더 넣습니다. 가장 활발한 20개 대신 모든 프로세스와 접근한 원격 파일을 넣습니다.
-@ [WparList | ALL] 보고서를 인수로 준 WPAR 목록으로 제한합니다. 6.1부터
영어 원문
  • -d — Starts the netpmon command, but defers tracing until the trcon command has been executed by the user. By default, tracing is started immediately.
  • -i Trace_File — Reads trace records from the file Trace_File produced with the trace command instead of a live system. The trace file must be rewritten first in raw format using the trcpt -r command. This flag cannot be used without the -n flag.
  • -n Gensyms_File — Reads necessary mapping information from the file Gensyms_File produced by the gensyms command. This flag is mandatory when the -i flag is used.
  • -o File — Writes the reports to the specified File, instead of to standard output.
  • -O ReportType ... — Produces the specified report types. Valid report type values are: cpu CPU usage dd Network device-driver I/O. This report is not available inside a workload partition (WPAR) in online mode or in the global WPAR with the '-@ WparList' flag. so Internet socket call I/O nfs NFS I/O (any version) nfs2 NFS Version 2 I/O nfs3 NFS Version 3 I/O nfs4 NFS Version 4 I/O all All reports are produced. This is the default value when the netpmon command is run in the global WPAR without the -@ flag.
  • -P — Pins monitor process in memory. This flag causes the netpmon text and data pages to be pinned in memory for the duration of the monitoring period. This flag can be used to ensure that the real-time netpmon process does not run out of memory space when running in a memory-constrained environment.
  • -r PURR — Uses PURR time instead of TimeBase in percent and CPU time calculation. Elapsed time calculations are unaffected.
  • -t — Prints CPU reports on a per-thread basis.
  • -T n — Sets the kernel's trace buffer size to n bytes. The default size is 64000 bytes. The buffer size can be increased to accommodate larger bursts of events, if any. (A typical event record size is on the order of 30 bytes.) Note: The trace driver in the kernel uses double buffering, so actually two buffers of size n bytes will be allocated. These buffers are pinned in memory, so they are not subject to paging.
  • -v — Prints extra information in the report. All processes and all accessed remote files are included in the report instead of only the 20 most active processes and files.
  • -@ [WparList|ALL] — Specifies that reports are limited to the list of WPARs that are passed as an argument.

보고서

보고서는 날짜, 컴퓨터 ID, 감시 기간(초)을 밝히는 머리말로 시작하고, 지정한 보고서 종류마다 요약 보고서와 상세 보고서가 이어집니다.

CPU 사용 보고서

보고서 열
프로세스 CPU 사용 Process, PID, CPU Time, CPU %(전체 시간 대비), Network CPU %(네트워크 관련 코드를 실행한 비율). -v가 없으면 가장 활발한 20개만, 끝에 전체 합과 CPU 유휴 시간
스레드 CPU 사용 -t를 쓰면 프로세스 줄 아래에 그 프로세스의 스레드마다 같은 열(이름 없음)
1단계 인터럽트 처리기(FLIH) FLIH(설명), CPU Time, CPU %, Network CPU %. 끝에 전체 합
2단계 인터럽트 처리기(SLIH) SLIH(설명), CPU Time, CPU %, Network CPU %. 끝에 전체 합

네트워크 장치 드라이버 요약 보고서

보고서 열
장치별 Device(장치 특수 파일 경로), Xmit Pkts/s, Xmit Bytes/s, Xmit Util(송신으로 바빴던 시간 비율), Xmit Qlen(송신을 기다리는 평균 요청 수), Recv Pkts/s, Recv Bytes/s, Recv Demux(demux 계층에서 쓴 시간 비율)
목적지 호스트별 송신 Host(목적지 호스트. 같은 서브넷이면 그 호스트, 다르면 ARP가 알아낸 브리지·라우터·게이트웨이. 알 수 없으면 *), Pkts/s, Xmit Bytes/s

인터넷 소켓 요약 보고서

온라인 모드에서는 프로토콜마다 프로세스별로, 오프라인 모드에서는 프로세스별로 보고합니다. -v가 없으면 상위 20개만이며, 끝에 전체 합이 나옵니다.

열 뜻
Process, PID 프로세스 이름과 ID
Read Calls/s(Read Ops/s) 초당 read, recv, recvfrom 호출 수
Read Bytes/s 그 호출이 요청한 초당 바이트
Write Calls/s(Write Ops/s) 초당 write, send, sendto 호출 수
Write Bytes/s 초당 쓴 바이트

NFS 요약 보고서

보고서 열
서버마다 클라이언트 통계(파일별) File, Read Calls/s, Read Bytes/s, Write Calls/s, Write Bytes/s. 상위 20개, 끝에 그 서버의 전체 합
클라이언트 RPC(서버별) Server(알 수 없으면 *), Calls/s(Ops/s)
클라이언트 통계(프로세스별) Process, PID, Read Calls/s, Read Bytes/s, Write Calls/s, Write Bytes/s
서버 통계(클라이언트별) Client, Read Calls/s, Read Bytes/s, Write Calls/s, Write Bytes/s, Other Calls/s(그 밖의 원격 요청)
영어 원문

The reports generated by the netpmon command begin with a header, which identifies the date, the machine ID, and the length of the monitoring period in seconds. This is followed by a set of summary and detailed reports for all specified report types.

CPU Usage Reports

Process CPU Usage Statistics: Each row describes the CPU usage associated with a process. Unless the verbose option is specified, only the 20 most active processes are listed. At the bottom of the report, CPU usage for all processes is totaled, and CPU idle time is reported. Process Process name PID Process ID number

CPU Time Total amount of CPU time used by this process CPU % CPU usage for this process as a percentage of total time

Network CPU % Percentage of total time that this process spent executing network-related code Thread CPU Usage Statistics If the -t flag is used, each process row described above is immediately followed by rows describing the CPU usage of each thread owned by that process. The fields in these rows are identical to those for the process, except for the name field. (Threads are not named.)

First-Level Interrupt Handler Usage Statistics: Each row describes the CPU usage associated with a first-level interrupt handler (FLIH). At the bottom of the report, CPU usage for all FLIHs is totaled.

FLIH First-level interrupt handler description

CPU Time Total amount of CPU time used by this FLIH

CPU % CPU usage for this interrupt handler as a percentage of total time

Network CPU % Percentage of total time that this interrupt handler executed on behalf of network-related events

Second-Level Interrupt Handler Usage Statistics: Each row describes the CPU usage associated with a second-level interrupt handler (SLIH). At the bottom of the report, CPU usage for all SLIHs is totaled. SLIH Second-level interrupt handler description

CPU Time Total amount of CPU time used by this SLIH CPU % CPU usage for this interrupt handler as a percentage of total time

Network CPU % Percentage of total time that this interrupt handler executed on behalf of network-related events

Summary Network Device-Driver Reports

Network Device-Driver Statistics (by Device): Each row describes the statistics associated with a network device. Device Path name of special file associated with device Xmit Pkts/s Packets per second transmitted through this device Xmit Bytes/s Bytes per second transmitted through this device

Xmit Util Busy time for this device, as a percent of total time

Xmit Qlen Number of requests waiting to be transmitted through this device, averaged over time, including any transaction currently being transmitted

Recv Pkts/s Packets per second received through this device

Recv Bytes/s Bytes per second received through this device

Recv Demux Time spent in demux layer as a fraction of total time

Network Device-Driver Transmit Statistics (by Destination Host): Each row describes the amount of transmit traffic associated with a particular destination host, at the device-driver level.

When hosts are on the same subnet, the destination host name is displayed. When hosts are in a different subnet, the destination host can be bridges, routers, or gateways as resolved by ARP protocol. Host Destination host name. An * (asterisk) is used for transmissions for which no host name can be determined.

Pkts/s Packets per second transmitted to this host

Xmit Bytes/s Bytes per second transmitted to this host

Summary Internet Socket Reports

  • On-line mode: Socket Call Statistics for Each Internet Protocol (by Process): Each row describes the amount of read/write subroutine activity on sockets of this protocol type associated with a particular process. Unless the verbose option is specified, only the top 20 processes are listed. At the bottom of the report, all socket calls for this protocol are totaled.

  • Off-line mode: Socket Call Statistics for Each Process: Each row describes the amount of read/write subroutine activity on sockets associated with a particular process. Unless the verbose option is specified, only the top 20 processes are listed. At the bottom of the report, all socket calls are totaled. Process Process name PID Process ID number

Read Calls/s or Read Ops/s Number of read , recv , and recvfrom subroutines per second made by this process on sockets of this type Read Bytes/s Bytes per second requested by the above calls Write Calls/s or Write Ops/s Number of write , send , and sendto subroutines per second made by this process on sockets of this type Write Bytes/s Bytes per second written by this process to sockets of this protocol type

Summary NFS Reports

NFS Client Statistics for Each Server (by File): Each row describes the amount of read/write subroutine activity associated with a file mounted remotely from this server. Unless the verbose option is specified, only the top 20 files are listed. At the bottom of the report, calls for all files on this server are totaled.

File Simple file name

Read Calls/s or Read Ops/s Number of read subroutines per second on this file

Read Bytes/s Bytes per second requested by the above calls

Write Calls/s or Write Ops/s Number of write subroutines per second on this file

Write Bytes/s Bytes per second written to this file

NFS Client RPC Statistics (by Server): Each row describes the number of NFS remote procedure calls being made by this client to a particular NFS server. At the bottom of the report, calls for all servers are totaled. Server Host name of server. An * (asterisk) is used for RPC calls for which no hostname could be determined.

Calls/s or Ops/s Number of NFS RPC calls per second being made to this server.

NFS Client Statistics (by Process): Each row describes the amount of NFS read/write subroutine activity associated with a particular process. Unless the verbose option is specified, only the top 20 processes are listed. At the bottom of the report, calls for all processes are totaled.

Process Process name

PID Process ID number Read Calls/s or Read Ops/s Number of NFS read subroutines per second made by this process Read Bytes/s Bytes per second requested by the above calls Write Calls/s or Write Ops/s Number of NFS write subroutines per second made by this process Write Bytes/s Bytes per second written to NFS mounted files by this process

NFS Server Statistics (by Client): Each row describes the amount of NFS activity handled by this server on behalf of particular client. At the bottom of the report, calls for all clients are totaled. Client Host name of client Read Calls/s or Read Ops/s Number of remote read requests per second processed on behalf of this client Read Bytes/s Bytes per second requested by this client's read calls Write Calls/s or Write Ops/s Number of remote write requests per second processed on behalf of this client

Write Bytes/s Bytes per second written by this client

Other Calls/s or Ops/s Number of other remote requests per second processed on behalf of this client

상세 보고서

지정한 보고서 종류마다 대부분의 요약 보고서에 대한 상세 보고서를 만듭니다. 상세 보고서에는 요약 보고서의 항목마다, 그 항목에 딸린 거래 종류별 통계가 들어갑니다.

거래 통계는 그 종류의 거래 수와, 해당하면 응답 시간과 크기의 분포(평균, 최소, 최대, 표준 편차)입니다. 값의 약 3분의 2가 "평균 ± 표준 편차" 사이에 있습니다. 크기는 바이트, 응답 시간은 밀리초입니다.

상세 보고서 항목
SLIH CPU 사용 SLIH, Count(인터럽트 수), CPU Time (Msec)
장치 드라이버(장치별) Device, Recv Packets, Recv Sizes, Recv Times, Demux Times, Xmit Packets, Xmit Sizes, Xmit Times
장치 드라이버 송신(호스트별) Host, Xmit Packets, Xmit Sizes, Xmit Times
소켓 호출(프로토콜·프로세스별, 오프라인은 프로세스별) Process, PID, Reads(read, recv, recvfrom, recvmsg 수), Read Sizes, Read Times, Writes(write, send, sendto, sendmsg 수), Write Sizes, Write Times
NFS 클라이언트(서버마다 파일별) File(경로), Reads, Read Sizes, Read Times, Writes, Write Sizes, Write Times
NFS 클라이언트 RPC(서버별) Server, Calls, Call Times
NFS 클라이언트(프로세스별) Process, PID, Reads, Read Sizes, Read Times, Writes, Write Sizes, Write Times
NFS 서버(클라이언트별) Client, Reads, Read Sizes, Read Times, Writes, Write Sizes, Write Times, Other Calls, Other Times
영어 원문

Detailed reports are generated for any of the specified report types. For these report types, a detailed report is produced for most of the summary reports. The detailed reports contain an entry for each entry in the summary reports with statistics for each type of transaction associated with the entry.

Transaction statistics consist of a count of the number of transactions of that type, followed by response time and size distribution data (where applicable). The distribution data consists of average, minimum, and maximum values, as well as standard deviations. Roughly two-thirds of the values are between average - standard deviation and average + standard deviation. Sizes are reported in bytes. Response times are reported in milliseconds.

Detailed Second Level Interrupt Handler CPU Usage Statistics: SLIH Name of second-level interrupt handler

Count Number of interrupts of this type

CPU Time (Msec) CPU usage statistics for handling interrupts of this type

Detailed Network Device-Driver Statistics (by Device):

Device Path name of special file associated with device

Recv Packets Number of packets received through this device

Recv Sizes (Bytes) Size statistics for received packets Recv Times (msec) Response time statistics for processing received packets Xmit Packets Number of packets transmitted to this host Demux Times (msec) Time statistics for processing received packets in the demux layer Xmit Sizes (Bytes) Size statistics for transmitted packets Xmit Times (Msec) Response time statistics for processing transmitted packets

Detailed Network Device-Driver Transmit Statistics (by Host): Host Destination host name

Xmit Packets Number of packets transmitted through this device Xmit Sizes (Bytes) Size statistics for transmitted packets Xmit Times (Msec) Response time statistics for processing transmitted packets

Detailed Socket Call Statistics for Each Internet Protocol (by Process): (on-line mode) Detailed Socket Call Statistics for Each Process: (off-line mode)

Process Process name

PID Process ID number

Reads Number of read , recv , recvfrom , and recvmsg subroutines made by this process on sockets of this type

Read Sizes (Bytes) Size statistics for read calls

Read Times (Msec) Response time statistics for read calls Writes Number of write , send , sendto , and sendmsg subroutines made by this process on sockets of this type Write Sizes (Bytes) Size statistics for write calls

Write Times (Msec) Response time statistics for write calls

Detailed NFS Client Statistics for Each Server (by File):

File File path name

Reads Number of NFS read subroutines for this file

Read Sizes (Bytes) Size statistics for read calls Read Times (Msec) Response time statistics for read calls Writes Number of NFS write subroutines for this file Write Sizes (Bytes) Size statistics for write calls Write Times (Msec) Response time statistics for write calls

Detailed NFS Client RPC Statistics (by Server): Server Server host name Calls Number of NFS client RPC calls made to this server

Call Times (Msec) Response time statistics for RPC calls

Detailed NFS Client Statistics (by Process):

Process Process name PID Process ID number

Reads Number of NFS read subroutines made by this process

Read Sizes (Bytes) Size statistics for read calls

Read Times (Msec) Response time statistics for read calls

Writes Number of NFS write subroutines made by this process

Write Sizes (Bytes) Size statistics for write calls

Write Times (Msec) Response time statistics for write calls

Detailed NFS Server Statistics (by Client): Client Client host name Reads Number of NFS read requests received from this client

Read Sizes (Bytes) Size statistics for read requests

Read Times (Msec) Response time statistics for read requests

Writes Number of NFS write requests received from this client

Write Sizes (Bytes) Size statistics for write requests Write Times (Msec) Response time statistics for write requests Other Calls Number of other NFS requests received from this client Other Times (Msec) Response time statistics for other requests

예제

  1. 응용 프로그램을 실행하는 동안 네트워크 활동을 감시하고 모든 보고서를 만듭니다. netpmon이 trace를 자동으로 시작하고 백그라운드로 갑니다. 그동안 응용 프로그램과 명령을 실행하고, trcstop을 실행하면 모든 보고서가 표준 출력에 나옵니다.
bash
netpmon
# 여기서 감시할 응용 프로그램과 명령을 실행
trcstop
  1. CPU와 NFS 보고서만 만들어 nmon.out 파일에 씁니다.
bash
netpmon -o nmon.out -O cpu,nfs
# 응용 프로그램 실행
trcstop
  1. 모든 보고서를 자세한 출력으로 nmon.out에 씁니다. trace를 시작하는 단계도 보여 주며, 요약과 상세 보고서에 상위 20개가 아니라 모든 파일과 프로세스가 들어갑니다.
bash
netpmon -v -o nmon.out
# 응용 프로그램 실행
trcstop
  1. 오프라인 모드로 씁니다.
bash
trace -a
# 응용 프로그램 실행
trcoff
gensyms > gen.out
trcstop
netpmon -i tracefile -n gen.out -o netpmon.out

원문의 예제는 명령을 한 줄에 이어 인쇄했습니다. 위는 줄을 나눈 것이며, # 줄은 설명입니다.

영어 원문
  1. To monitor network activity during the execution of certain application programs and generate all report types, type: netpmon <run application programs and commands here> trcstop The netpmon command automatically starts the system trace and puts itself in the background. Application programs and system commands can be run at this time. After the trcstop command is issued, all reports are displayed on standard output.

  2. To generate CPU and NFS report types and write the reports to the nmon.out file, type: netpmon -o nmon.out -O cpu,nfs <run application programs and commands here> trcstop The netpmon command immediately starts the system trace. After the trcstop command is issued, the I/O activity report is written to the nmon.out file. Only the CPU and NFS reports will be generated.

  3. To generate all report types and write verbose output to the nmon.out file, type: netpmon -v -o nmon.out <run application programs and commands here> trcstop With the verbose output, the netpmon command indicates the steps it is taking to start up the trace. The summary and detailed reports include all files and processes, instead of just the 20 most active files and processes.

  4. To use the netpmon command in offline mode, type: trace -a run application programs and commands here trcoff gensyms > gen.out trcstop netpmon -i tracefile -n gen.out -o netpmon.out

Related information:

  • trcstop command
  • gensyms command
  • recv command
  • send command
  • sendto command

리눅스(GNU)와 다른 점

리눅스에는 같은 도구가 없습니다. 비슷한 정보는 perf trace, bpftrace, nethogs(프로세스별 네트워크 사용), nfsiostat(NFS) 등으로 봅니다.