요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
Trip-point threshold, type and hysteresis
sysfs-class-thermal:49-73각 trip point는 발동 temperature, critical·hot·passive·active type과 재진입 동작을 안정시키는 hysteresis를 가질 수 있습니다.
Cooling-device binding
sysfs-class-thermal:75-98Zone의 cdevY link는 cooling device를 가리키고 연결된 trip point와 다른 cooling device 대비 상대 weight를 제공합니다.
Emulated sensor temperature
sysfs-class-thermal:100-117emul_temp는 threshold와 cooling action debugging용 write-only temperature override이며 0으로 해제합니다. Production에서 낮은 값을 반복해 쓰면 thermal policy를 무력화할 수 있습니다.
Power-allocator PID and thermal model
sysfs-class-thermal:120-198Power allocator는 derivative·integral·overshoot/undershoot proportional term, integral cutoff와 sustainable power를 사용하며 slope·offset은 raw sensor에서 hotspot temperature를 추정합니다.
Cooling-device type and state
sysfs-class-thermal:200-224Cooling device는 type, maximum state와 current state를 제공하며 0은 no cooling, max_state는 maximum cooling입니다.
Cooling-state statistics
sysfs-class-thermal:226-259Statistics는 reset trigger, state별 체류 시간, total transition 수와 State_i에서 State_j로 이동한 횟수 matrix를 제공합니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
What: /sys/class/thermal/thermal_zoneX/type
Description:
Strings which represent the thermal zone type.
This is given by thermal zone driver as part of registration.
E.g: "acpitz" indicates it's an ACPI thermal device.
In order to keep it consistent with hwmon sys attribute; this
should be a short, lowercase string, not containing spaces nor
dashes.
RO, Required
What: /sys/class/thermal/thermal_zoneX/temp
Description:
Current temperature as reported by thermal zone (sensor).
Unit: millidegree Celsius
RO, Required
What: /sys/class/thermal/thermal_zoneX/mode
Description:
One of the predefined values in [enabled, disabled].
This file gives information about the algorithm that is
currently managing the thermal zone. It can be either default
kernel based algorithm or user space application.
enabled
enable Kernel Thermal management.
disabled
Preventing kernel thermal zone driver actions upon
trip points so that user application can take full
charge of the thermal management.
RW, Optional
What: /sys/class/thermal/thermal_zoneX/policy
Description:
One of the various thermal governors used for a particular zone.
RW, Required
What: /sys/class/thermal/thermal_zoneX/available_policies
Description:
Available thermal governors which can be used for a
particular zone.
RO, Required
What: /sys/class/thermal/thermal_zoneX/trip_point_Y_temp
Description:
The temperature above which trip point will be fired.
Unit: millidegree Celsius
RO, Optional
What: /sys/class/thermal/thermal_zoneX/trip_point_Y_type
Description:
Strings which indicate the type of the trip point.
E.g. it can be one of critical, hot, passive, `active[0-*]`
for ACPI thermal zone.
RO, Optional
What: /sys/class/thermal/thermal_zoneX/trip_point_Y_hyst
Description:
The hysteresis value for a trip point, represented as an
integer.
Unit: Celsius
RW, Optional
What: /sys/class/thermal/thermal_zoneX/cdevY
Description:
Sysfs link to the thermal cooling device node where the sys I/F
for cooling device throttling control represents.
RO, Optional
What: /sys/class/thermal/thermal_zoneX/cdevY_trip_point
Description:
The trip point in this thermal zone which `cdev[0-*]` is
associated with; -1 means the cooling device is not
associated with any trip point.
RO, Optional
What: /sys/class/thermal/thermal_zoneX/cdevY_weight
Description:
The influence of `cdev[0-*]` in this thermal zone. This value
is relative to the rest of cooling devices in the thermal
zone. For example, if a cooling device has a weight double
than that of other, it's twice as effective in cooling the
thermal zone.
RW, Optional
What: /sys/class/thermal/thermal_zoneX/emul_temp
Description:
Interface to set the emulated temperature method in thermal zone
(sensor). After setting this temperature, the thermal zone may
pass this temperature to platform emulation function if
registered or cache it locally. This is useful in debugging
different temperature threshold and its associated cooling
action. This is write only node and writing 0 on this node
should disable emulation.
Unit: millidegree Celsius
WO, Optional
WARNING:
Be careful while enabling this option on production systems,
because userland can easily disable the thermal policy by simply
flooding this sysfs node with low temperature values.
What: /sys/class/thermal/thermal_zoneX/k_d
Description:
The derivative term of the power allocator governor's PID
controller. For more information see
Documentation/driver-api/thermal/power_allocator.rst
RW, Optional
What: /sys/class/thermal/thermal_zoneX/k_i
Description:
The integral term of the power allocator governor's PID
controller. This term allows the PID controller to compensate
for long term drift. For more information see
Documentation/driver-api/thermal/power_allocator.rst
RW, Optional
What: /sys/class/thermal/thermal_zoneX/k_po
Description:
The proportional term of the power allocator governor's PID
controller during temperature overshoot. Temperature overshoot
is when the current temperature is above the "desired
temperature" trip point. For more information see
Documentation/driver-api/thermal/power_allocator.rst
RW, Optional
What: /sys/class/thermal/thermal_zoneX/k_pu
Description:
The proportional term of the power allocator governor's PID
controller during temperature undershoot. Temperature undershoot
is when the current temperature is below the "desired
temperature" trip point. For more information see
Documentation/driver-api/thermal/power_allocator.rst
RW, Optional
What: /sys/class/thermal/thermal_zoneX/integral_cutoff
Description:
Temperature offset from the desired temperature trip point
above which the integral term of the power allocator
governor's PID controller starts accumulating errors. For
example, if integral_cutoff is 0, then the integral term only
accumulates error when temperature is above the desired
temperature trip point. For more information see
Documentation/driver-api/thermal/power_allocator.rst
Unit: millidegree Celsius
RW, Optional
What: /sys/class/thermal/thermal_zoneX/slope
Description:
The slope constant used in a linear extrapolation model
to determine a hotspot temperature based off the sensor's
raw readings. It is up to the device driver to determine
the usage of these values.
RW, Optional
What: /sys/class/thermal/thermal_zoneX/offset
Description:
The offset constant used in a linear extrapolation model
to determine a hotspot temperature based off the sensor's
raw readings. It is up to the device driver to determine
the usage of these values.
RW, Optional
What: /sys/class/thermal/thermal_zoneX/sustainable_power
Description:
An estimate of the sustained power that can be dissipated by
the thermal zone. Used by the power allocator governor. For
more information see
Documentation/driver-api/thermal/power_allocator.rst
Unit: milliwatts
RW, Optional
What: /sys/class/thermal/cooling_deviceX/type
Description:
String which represents the type of device, e.g:
- for generic ACPI: should be "Fan", "Processor" or "LCD"
- for memory controller device on intel_menlow platform:
should be "Memory controller".
RO, Required
What: /sys/class/thermal/cooling_deviceX/max_state
Description:
The maximum permissible cooling state of this cooling device.
RO, Required
What: /sys/class/thermal/cooling_deviceX/cur_state
Description:
The current cooling state of this cooling device.
The value can any integer numbers between 0 and max_state:
- cur_state == 0 means no cooling
- cur_state == max_state means the maximum cooling.
RW, Required
What: /sys/class/thermal/cooling_deviceX/stats/reset
Description:
Writing any value resets the cooling device's statistics.
WO, Required
What: /sys/class/thermal/cooling_deviceX/stats/time_in_state_ms:
Description:
The amount of time spent by the cooling device in various
cooling states. The output will have "<state> <time>" pair
in each line, which will mean this cooling device spent <time>
msec of time at <state>.
Output will have one line for each of the supported states.
RO, Required
What: /sys/class/thermal/cooling_deviceX/stats/total_trans
Description:
A single positive value showing the total number of times
the state of a cooling device is changed.
RO, Required
What: /sys/class/thermal/cooling_deviceX/stats/trans_table
Description:
This gives fine grained information about all the cooling state
transitions. The cat output here is a two dimensional matrix,
where an entry <i,j> (row i, column j) represents the number
of transitions from State_i to State_j. If the transition
table is bigger than PAGE_SIZE, reading this will return
an -EFBIG error.
RO, Required
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
Thermal zone type
1-10| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/thermal/thermal_zoneX/type |
| Description | Thermal zone type을 나타내는 string입니다. Thermal zone driver가 registration의 일부로 제공합니다. 예를 들어 "acpitz"는 ACPI thermal device를 뜻합니다. hwmon sys attribute와 일관성을 유지하기 위해 space나 dash가 없는 짧은 lowercase string이어야 합니다. |
| Access | RO, Required |
Current thermal-zone temperature
12-18| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/thermal/thermal_zoneX/temp |
| Description | Thermal zone(sensor)이 보고한 current temperature입니다. |
| Unit | Millidegree Celsius |
| Access | RO, Required |
Kernel or userspace thermal management
20-34| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/thermal/thermal_zoneX/mode |
| Description | Predefined value enabled 또는 disabled 중 하나입니다. Thermal zone을 현재 관리하는 algorithm이 기본 kernel-based algorithm인지 userspace application인지 알려 줍니다. enabled는 Kernel Thermal management를 enable합니다. disabled는 trip point에 대한 kernel thermal zone driver action을 막아 userspace application이 thermal management를 완전히 담당하게 합니다. |
| Access | RW, Optional |
Trip-point action의 제어 주체를 구분합니다.
Selected thermal governor
36-40| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/thermal/thermal_zoneX/policy |
| Description | 특정 zone에 사용하는 여러 thermal governor 중 하나입니다. |
| Access | RW, Required |
Available thermal governors
42-47| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/thermal/thermal_zoneX/available_policies |
| Description | 특정 zone에 사용할 수 있는 thermal governor 목록입니다. |
| Access | RO, Required |
Sensor identity와 temperature를 바탕으로 mode와 governor가 zone action을 관리합니다.
Trip-point firing temperature
49-55| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/thermal/thermal_zoneX/trip_point_Y_temp |
| Description | 이 temperature를 넘으면 trip point가 fire됩니다. |
| Unit | Millidegree Celsius |
| Access | RO, Optional |
Trip-point type
57-64| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/thermal/thermal_zoneX/trip_point_Y_type |
| Description | Trip point type을 나타내는 string입니다. ACPI thermal zone에서는 예를 들어 critical, hot, passive 또는 active[0-*] 중 하나일 수 있습니다. |
| Access | RO, Optional |
Trip-point hysteresis
66-73| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/thermal/thermal_zoneX/trip_point_Y_hyst |
| Description | Integer로 표현한 trip point hysteresis value입니다. |
| Unit | Celsius |
| Access | RW, Optional |
Trip point의 threshold, semantic type과 hysteresis를 함께 해석합니다.
Cooling-device sysfs link
75-80| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/thermal/thermal_zoneX/cdevY |
| Description | Cooling device throttling control용 sysfs interface가 있는 thermal cooling device node를 가리키는 sysfs link입니다. |
| Access | RO, Optional |
Cooling-device trip-point association
82-88| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/thermal/thermal_zoneX/cdevY_trip_point |
| Description | 이 thermal zone에서 cdev[0-*]가 연결된 trip point입니다. -1은 cooling device가 어떤 trip point에도 연결되지 않았다는 뜻입니다. |
| Access | RO, Optional |
Relative cooling-device influence
90-98| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/thermal/thermal_zoneX/cdevY_weight |
| Description | 이 thermal zone에서 cdev[0-*]의 influence입니다. 값은 zone 안의 나머지 cooling device에 상대적입니다. 예를 들어 한 cooling device의 weight가 다른 device의 두 배면 thermal zone을 cooling하는 효과도 두 배입니다. |
| Access | RW, Optional |
Zone은 link, associated trip과 relative weight를 통해 cooling device의 역할을 정의합니다.
Emulated thermal-zone temperature
100-117| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/thermal/thermal_zoneX/emul_temp |
| Description | Thermal zone(sensor)의 emulated temperature method를 설정하는 interface입니다. Temperature를 설정하면 thermal zone은 등록된 platform emulation function에 이를 전달하거나 local cache에 보관할 수 있습니다. 서로 다른 temperature threshold와 연결된 cooling action을 debug할 때 유용합니다. Write-only node이며 0을 쓰면 emulation을 disable해야 합니다. 경고: production system에서 이 option을 enable할 때 주의하십시오. Userland가 낮은 temperature value로 이 sysfs node를 flood하면 thermal policy를 쉽게 disable할 수 있습니다. |
| Unit | Millidegree Celsius |
| Access | WO, Optional |
Debug override가 platform callback 또는 local cache를 거쳐 threshold action에 사용됩니다.
PID derivative term
120-126| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/thermal/thermal_zoneX/k_d |
| Description | Power allocator governor PID controller의 derivative term입니다. 자세한 내용은 Documentation/driver-api/thermal/power_allocator.rst를 참조하십시오. |
| Access | RW, Optional |
PID integral term
128-135| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/thermal/thermal_zoneX/k_i |
| Description | Power allocator governor PID controller의 integral term입니다. 이 term은 PID controller가 long-term drift를 보상할 수 있게 합니다. 자세한 내용은 Documentation/driver-api/thermal/power_allocator.rst를 참조하십시오. |
| Access | RW, Optional |
PID overshoot proportional term
137-145| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/thermal/thermal_zoneX/k_po |
| Description | Temperature overshoot 동안 사용하는 power allocator governor PID controller의 proportional term입니다. Temperature overshoot는 current temperature가 "desired temperature" trip point보다 높은 상태입니다. 자세한 내용은 Documentation/driver-api/thermal/power_allocator.rst를 참조하십시오. |
| Access | RW, Optional |
PID undershoot proportional term
147-155| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/thermal/thermal_zoneX/k_pu |
| Description | Temperature undershoot 동안 사용하는 power allocator governor PID controller의 proportional term입니다. Temperature undershoot는 current temperature가 "desired temperature" trip point보다 낮은 상태입니다. 자세한 내용은 Documentation/driver-api/thermal/power_allocator.rst를 참조하십시오. |
| Access | RW, Optional |
PID integral accumulation cutoff
157-169| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/thermal/thermal_zoneX/integral_cutoff |
| Description | Desired temperature trip point로부터의 temperature offset이며, 이 offset을 넘으면 power allocator governor PID controller의 integral term이 error를 accumulate하기 시작합니다. 예를 들어 integral_cutoff가 0이면 temperature가 desired temperature trip point보다 높을 때만 integral term이 error를 accumulate합니다. 자세한 내용은 Documentation/driver-api/thermal/power_allocator.rst를 참조하십시오. |
| Unit | Millidegree Celsius |
| Access | RW, Optional |
Temperature relation에 따라 적용되는 controller term입니다.
Hotspot extrapolation slope
171-178| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/thermal/thermal_zoneX/slope |
| Description | Sensor raw reading을 바탕으로 hotspot temperature를 정하는 linear extrapolation model의 slope constant입니다. 이 value를 어떻게 사용할지는 device driver가 결정합니다. |
| Access | RW, Optional |
Hotspot extrapolation offset
180-187| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/thermal/thermal_zoneX/offset |
| Description | Sensor raw reading을 바탕으로 hotspot temperature를 정하는 linear extrapolation model의 offset constant입니다. 이 value를 어떻게 사용할지는 device driver가 결정합니다. |
| Access | RW, Optional |
Sustainable thermal-zone power
189-198| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/thermal/thermal_zoneX/sustainable_power |
| Description | Thermal zone이 지속적으로 dissipate할 수 있는 power의 estimate입니다. Power allocator governor가 사용합니다. 자세한 내용은 Documentation/driver-api/thermal/power_allocator.rst를 참조하십시오. |
| Unit | Milliwatts |
| Access | RW, Optional |
Raw sensor model과 sustainable power estimate가 PID controller의 power allocation을 보조합니다.
Cooling-device type
200-208| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/thermal/cooling_deviceX/type |
| Description | Device type을 나타내는 string입니다. Generic ACPI에서는 "Fan", "Processor" 또는 "LCD"여야 합니다. intel_menlow platform의 memory controller device에서는 "Memory controller"여야 합니다. |
| Access | RO, Required |
Maximum cooling state
210-214| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/thermal/cooling_deviceX/max_state |
| Description | 이 cooling device에 허용되는 maximum cooling state입니다. |
| Access | RO, Required |
Current cooling state
216-224| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/thermal/cooling_deviceX/cur_state |
| Description | 이 cooling device의 current cooling state입니다. 값은 0부터 max_state 사이의 정수일 수 있습니다. cur_state == 0은 no cooling, cur_state == max_state는 maximum cooling을 뜻합니다. |
| Access | RW, Required |
Current state는 inclusive range 0..max_state 안에 있습니다.
Reset cooling-device statistics
226-230| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/thermal/cooling_deviceX/stats/reset |
| Description | 어떤 value든 write하면 cooling device statistics를 reset합니다. |
| Access | WO, Required |
Time spent in each cooling state
232-241| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/thermal/cooling_deviceX/stats/time_in_state_ms: |
| Description | Cooling device가 여러 cooling state에서 보낸 time입니다. Output의 각 line은 "<state> <time>" pair이며, 이 cooling device가 <state>에서 <time> milliseconds를 보냈다는 뜻입니다. 지원하는 state마다 한 line을 출력합니다. |
| Access | RO, Required |
<state> <time>
Total cooling-state transitions
243-248| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/thermal/cooling_deviceX/stats/total_trans |
| Description | Cooling device state가 변경된 total 횟수를 하나의 positive value로 표시합니다. |
| Access | RO, Required |
Cooling-state transition matrix
250-259| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/class/thermal/cooling_deviceX/stats/trans_table |
| Description | 모든 cooling state transition의 fine-grained information을 제공합니다. cat output은 two-dimensional matrix이며 entry <i,j>, 즉 row i와 column j는 State_i에서 State_j로 transition한 횟수를 나타냅니다. Transition table이 PAGE_SIZE보다 크면 read가 -EFBIG error를 반환합니다. |
| Access | RO, Required |
Reset, residency, aggregate count와 transition matrix의 역할입니다.
Thermal zone identity and policy
sysfs-class-thermal:1-47Thermal zone은 type과 millidegree Celsius temperature를 제공하고 kernel/userspace management mode, active governor policy와 available policy 목록을 노출합니다.