← Documents Documentation/tools/rtla/rtla-osnoise-top.rst GitHub 원문 ↗

Linux 6.18.37 · Kernel Tools

rtla-osnoise-top: operating-system noise summary

osnoise periodic summary에서 noise 시간, CPU availability와 HW·NMI·IRQ·Softirq·Thread interference counter를 읽는 방법을 설명합니다.

Source pathDocumentation/tools/rtla/rtla-osnoise-top.rst
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.

1. 요약·해설

원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.

요약·해설

rtla-osnoise-top.rst:1-63

osnoise periodic summary에서 noise 시간, CPU availability와 HW·NMI·IRQ·Softirq·Thread interference counter를 읽는 방법을 설명합니다.

2. 영어 원문 전체

번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.

원문 전체 펼치기
1 .. |tool| replace:: osnoise top
2
3 ===================
4 rtla-osnoise-top
5 ===================
6 -----------------------------------------------
7 Display a summary of the operating system noise
8 -----------------------------------------------
9
10 :Manual section: 1
11
12 SYNOPSIS
13 ========
14 **rtla osnoise top** [*OPTIONS*]
15
16 DESCRIPTION
17 ===========
18 .. include:: common_osnoise_description.txt
19
20 **rtla osnoise top** collects the periodic summary from the *osnoise* tracer,
21 including the counters of the occurrence of the interference source,
22 displaying the results in a user-friendly format.
23
24 The tool also allows many configurations of the *osnoise* tracer and the
25 collection of the tracer output.
26
27 OPTIONS
28 =======
29 .. include:: common_osnoise_options.txt
30
31 .. include:: common_top_options.txt
32
33 .. include:: common_options.txt
34
35 EXAMPLE
36 =======
37 In the example below, the **rtla osnoise top** tool is set to run with a
38 real-time priority *FIFO:1*, on CPUs *0-3*, for *900ms* at each period
39 (*1s* by default). The reason for reducing the runtime is to avoid starving
40 the rtla tool. The tool is also set to run for *one minute* and to display
41 a summary of the report at the end of the session::
42
43 [root@f34 ~]# rtla osnoise top -P F:1 -c 0-3 -r 900000 -d 1M -q
44 Operating System Noise
45 duration: 0 00:01:00 | time is in us
46 CPU Period Runtime Noise % CPU Aval Max Noise Max Single HW NMI IRQ Softirq Thread
47 0 #59 53100000 304896 99.42580 6978 56 549 0 53111 1590 13
48 1 #59 53100000 338339 99.36282 8092 24 399 0 53130 1448 31
49 2 #59 53100000 290842 99.45227 6582 39 855 0 53110 1406 12
50 3 #59 53100000 204935 99.61405 6251 33 290 0 53156 1460 12
51
52 SEE ALSO
53 ========
54
55 **rtla-osnoise**\(1), **rtla-osnoise-hist**\(1)
56
57 Osnoise tracer documentation: <https://www.kernel.org/doc/html/latest/trace/osnoise-tracer.html>
58
59 AUTHOR
60 ======
61 Written by Daniel Bristot de Oliveira <bristot@kernel.org>
62
63 .. include:: common_appendix.txt
64

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.

Periodic summary와 interference counter

1-34

`rtla osnoise top [OPTIONS]`는 `osnoise` tracer의 periodic summary와 interference source 발생 counter를 수집해 읽기 쉬운 형식으로 표시한다.

tool은 tracer 설정과 tracer output 수집도 지원한다. per-CPU sampling 설명, osnoise 전용 option, quiet top option, RTLA 공통 option 문서를 포함한다.

osnoise top 입력
Include기능
common_osnoise_description.txtper-CPU sampling과 interference 기록
common_osnoise_options.txtruntime과 threshold
common_top_options.txtquiet summary
common_options.txtCPU, duration, priority와 action

summary view에 포함되는 공통 정의다.

Top summary
Per-CPU osnoise samplePeriodic aggregation
Noise time + maximaHW / NMI / IRQ / Softirq / Thread counters
Formatted top summary

period마다 noise 총량과 원인 counter를 집계한다.

.. |tool| replace:: osnoise top

===================
rtla-osnoise-top
===================
-----------------------------------------------
Display a summary of the operating system noise
-----------------------------------------------

:Manual section: 1

SYNOPSIS
========
**rtla osnoise top** [*OPTIONS*]

DESCRIPTION
===========
.. include:: common_osnoise_description.txt

**rtla osnoise top** collects the periodic summary from the *osnoise* tracer,
including the counters of the occurrence of the interference source,
displaying the results in a user-friendly format.

The tool also allows many configurations of the *osnoise* tracer and the
collection of the tracer output.

OPTIONS
=======
.. include:: common_osnoise_options.txt

.. include:: common_top_options.txt

.. include:: common_options.txt

FIFO:1, CPU 0-3의 1분 summary

35-51

예제는 CPU 0-3에서 osnoise thread를 realtime priority FIFO:1로 실행한다. 기본 1초 period마다 runtime을 900 ms로 줄여 RTLA tool starvation을 피하고, 1분 동안 측정한 뒤 마지막 summary만 출력한다.

command는 `rtla osnoise top -P F:1 -c 0-3 -r 900000 -d 1M -q`다. 각 CPU는 59 period와 53,100,000 us runtime을 기록하며 noise 합은 204,935-338,339 us, CPU availability는 99.36-99.61%다.

`Max Noise`는 period 하나의 noise 최대 합, `Max Single`은 단일 event의 최대값이다. `HW`, `NMI`, `IRQ`, `Softirq`, `Thread`는 각 interference source의 발생 횟수다. 예제에서는 일반 IRQ가 약 53,100회로 지배적이고 Softirq, hardware event, thread interference가 뒤따르며 NMI는 0이다.

osnoise top column
Column의미
Period / Runtime완료 period 수와 실제 tracer 실행 시간
Noise / % CPU Avalnoise 시간 합과 application CPU 가용률
Max Noise / Max Singleperiod 합계 최대와 단일 event 최대
HW / NMI / IRQ / Softirq / Thread간섭 source별 발생 counter

시간 합계와 원인별 횟수를 함께 보여 준다.

EXAMPLE
=======
In the example below, the **rtla osnoise top** tool is set to run with a
real-time priority *FIFO:1*, on CPUs *0-3*, for *900ms* at each period
(*1s* by default). The reason for reducing the runtime is to avoid starving
the rtla tool. The tool is also set to run for *one minute* and to display
a summary of the report at the end of the session::

  [root@f34 ~]# rtla osnoise top -P F:1 -c 0-3 -r 900000 -d 1M -q
                                          Operating System Noise
  duration:   0 00:01:00 | time is in us
  CPU Period       Runtime        Noise  % CPU Aval   Max Noise   Max Single          HW          NMI          IRQ      Softirq       Thread
    0 #59         53100000       304896    99.42580        6978           56         549            0        53111         1590           13
    1 #59         53100000       338339    99.36282        8092           24         399            0        53130         1448           31
    2 #59         53100000       290842    99.45227        6582           39         855            0        53110         1406           12
    3 #59         53100000       204935    99.61405        6251           33         290            0        53156         1460           12

관련 mode와 작성자

52-63

관련 manual page는 `rtla-osnoise(1)`과 `rtla-osnoise-hist(1)`이며 tracer 세부 사항은 kernel osnoise tracer documentation에 있다.

문서는 Daniel Bristot de Oliveira가 작성했고 마지막에 RTLA 공통 appendix를 포함한다.

Top과 hist 비교
Mode표현
topperiodic summary와 interference counter
histsample_threshold occurrence의 latency 분포

같은 tracer의 두 표현 방식이다.

SEE ALSO
========

**rtla-osnoise**\(1), **rtla-osnoise-hist**\(1)

Osnoise tracer documentation: <https://www.kernel.org/doc/html/latest/trace/osnoise-tracer.html>

AUTHOR
======
Written by Daniel Bristot de Oliveira <bristot@kernel.org>

.. include:: common_appendix.txt