← Documents Documentation/tools/rv/rv-mon-sched.rst GitHub 원문 ↗

Linux 6.18.37 · Kernel Tools

rv-mon-sched: scheduler monitor 모음

scheduler monitor 컨테이너와 scpd·snep·sncid·snroc·sco·tss 중첩 monitor를 설명합니다.

Source pathDocumentation/tools/rv/rv-mon-sched.rst
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

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

1. 요약·해설

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

요약·해설

rv-mon-sched.rst:1-69

scheduler monitor 컨테이너와 scpd·snep·sncid·snroc·sco·tss 중첩 monitor를 설명합니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 .. SPDX-License-Identifier: GPL-2.0
2
3 ============
4 rv-mon-sched
5 ============
6 -----------------------------
7 Scheduler monitors collection
8 -----------------------------
9
10 :Manual section: 1
11
12 SYNOPSIS
13 ========
14
15 **rv mon sched** [*OPTIONS*]
16
17 **rv mon <NESTED_MONITOR>** [*OPTIONS*]
18
19 **rv mon sched:<NESTED_MONITOR>** [*OPTIONS*]
20
21 DESCRIPTION
22 ===========
23
24 The scheduler monitor collection is a container for several monitors to model
25 the behaviour of the scheduler. Each monitor describes a specification that
26 the scheduler should follow.
27
28 As a monitor container, it will enable all nested monitors and set them
29 according to OPTIONS.
30 Nevertheless nested monitors can also be activated independently both by name
31 and by specifying sched: , e.g. to enable only monitor tss you can do any of:
32
33 # rv mon sched:tss
34
35 # rv mon tss
36
37 See kernel documentation for further information about this monitor:
38 <https://docs.kernel.org/trace/rv/monitor_sched.html>
39
40 OPTIONS
41 =======
42
43 .. include:: common_ikm.rst
44
45 NESTED MONITOR
46 ==============
47
48 The available nested monitors are:
49 * scpd: schedule called with preemption disabled
50 * snep: schedule does not enable preempt
51 * sncid: schedule not called with interrupt disabled
52 * snroc: set non runnable on its own context
53 * sco: scheduling context operations
54 * tss: task switch while scheduling
55
56 SEE ALSO
57 ========
58
59 **rv**\(1), **rv-mon**\(1)
60
61 Linux kernel *RV* documentation:
62 <https://www.kernel.org/doc/html/latest/trace/rv/index.html>
63
64 AUTHOR
65 ======
66
67 Written by Gabriele Monaco <gmonaco@redhat.com>
68
69 .. include:: common_appendix.rst
70

3. 한국어 전문 번역

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

scheduler 규격을 검사하는 monitor 컨테이너

1-31

`rv mon sched [OPTIONS]`, `rv mon NESTED_MONITOR [OPTIONS]`, `rv mon sched:NESTED_MONITOR [OPTIONS]`는 scheduler monitor 모음을 실행하는 세 가지 문법이다.

scheduler monitor 모음은 scheduler 동작을 모델링하는 여러 monitor의 컨테이너다. 각 monitor는 scheduler가 따라야 할 규격 하나를 설명한다. 컨테이너로 실행하면 모든 중첩 monitor를 활성화하고 전달된 옵션을 적용한다.

scheduler monitor 구성
rv mon schedEnable all nested monitors
rv mon NESTED_MONITOREnable one monitor
rv mon sched:NESTED_MONITOREnable one qualified monitor

컨테이너 또는 개별 이름으로 같은 중첩 monitor에 도달한다.

.. SPDX-License-Identifier: GPL-2.0

============
rv-mon-sched
============
-----------------------------
Scheduler monitors collection
-----------------------------

:Manual section: 1

SYNOPSIS
========

**rv mon sched** [*OPTIONS*]

**rv mon <NESTED_MONITOR>** [*OPTIONS*]

**rv mon sched:<NESTED_MONITOR>** [*OPTIONS*]

DESCRIPTION
===========

The scheduler monitor collection is a container for several monitors to model
the behaviour of the scheduler. Each monitor describes a specification that
the scheduler should follow.

As a monitor container, it will enable all nested monitors and set them
according to OPTIONS.
Nevertheless nested monitors can also be activated independently both by name
and by specifying sched: , e.g. to enable only monitor tss you can do any of:

중첩 monitor 개별 활성화

32-45

중첩 monitor는 이름만 사용하거나 `sched:` 접두어를 붙여 독립적으로 활성화할 수 있다. 예를 들어 `tss`만 켜려면 `rv mon sched:tss` 또는 `rv mon tss`를 사용한다.

이 monitor의 자세한 모델과 이벤트 의미는 `https://docs.kernel.org/trace/rv/monitor_sched.html`에서 확인한다.

tss 활성화 문법
Command선택
rv mon sched:tssscheduler 컨테이너 안의 tss
rv mon tss전역 이름으로 tss 직접 선택

두 명령은 같은 중첩 monitor를 선택한다.


    # rv mon sched:tss

    # rv mon tss

See kernel documentation for further information about this monitor:
<https://docs.kernel.org/trace/rv/monitor_sched.html>

OPTIONS
=======

.. include:: common_ikm.rst

NESTED MONITOR

공통 옵션과 중첩 monitor 목록

46-58

옵션은 `common_ikm.rst`의 도움말, reactor, self tracing, trace, verbose 설정을 공유한다.

사용 가능한 monitor는 `scpd`, `snep`, `sncid`, `snroc`, `sco`, `tss`다. 각각 preemption 또는 interrupt 비활성 상태에서의 schedule 호출, preempt 복원, runnable 상태 변경, scheduling context 연산, task switch 규칙을 검사한다.

scheduler 중첩 monitor
Monitor검사 내용
scpdpreemption이 비활성인 상태에서 schedule 호출
snepschedule이 preempt를 활성화하지 않음
sncidinterrupt가 비활성인 상태에서 schedule을 호출하지 않음
snroc자기 context에서 non-runnable 상태 설정
scoscheduling context 연산
tssscheduling 중 task switch

축약 이름과 검사 규격을 대응시킨다.

==============

The available nested monitors are:
  * scpd: schedule called with preemption disabled
  * snep: schedule does not enable preempt
  * sncid: schedule not called with interrupt disabled
  * snroc: set non runnable on its own context
  * sco: scheduling context operations
  * tss: task switch while scheduling

SEE ALSO
========

관련 문서와 작성 정보

59-69

관련 매뉴얼은 `rv(1)`과 `rv-mon(1)`이며 커널 RV 인덱스에서 전체 문서를 확인할 수 있다.

이 문서는 Gabriele Monaco가 작성했고 공통 부록을 포함한다.

관련 자료
문서내용
rv(1)RV 명령 개요
rv-mon(1)monitor 실행 문법
monitor_sched.htmlscheduler monitor 모델 상세

scheduler monitor 사용과 구현 설명을 연결한다.

**rv**\(1), **rv-mon**\(1)

Linux kernel *RV* documentation:
<https://www.kernel.org/doc/html/latest/trace/rv/index.html>

AUTHOR
======

Written by Gabriele Monaco <gmonaco@redhat.com>

.. include:: common_appendix.rst