← Documents Documentation/hwmon/drivetemp.rst GitHub 원문 ↗

Linux 6.18.37 · Hardware Monitoring

Kernel driver drivetemp

Disk·SSD의 SCT 또는 SMART 온도와 power-cycle history, spin-down 주의사항입니다.

Source pathDocumentation/hwmon/drivetemp.rst
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

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

1. 요약·해설

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

요약·해설

drivetemp.rst:1-70

Drive capability에 따라 SCT 또는 SMART에서 온도와 optional limit를 읽습니다.

문서 개요
항목
SourceDocumentation/hwmon/drivetemp.rst
분량70 source lines
FallbackSMART
Alwaystemp1_input

원문 분량과 핵심 범위입니다.

핵심 흐름
Capability 확인SCT 우선SMART fallbackPower-state 영향 확인

장치 동작의 기본 순서입니다.

2. 영어 원문 전체

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

원문 전체 펼치기
1 .. SPDX-License-Identifier: GPL-2.0
2
3 Kernel driver drivetemp
4 =======================
5
6
7 References
8 ----------
9
10 ANS T13/1699-D
11 Information technology - AT Attachment 8 - ATA/ATAPI Command Set (ATA8-ACS)
12
13 ANS Project T10/BSR INCITS 513
14 Information technology - SCSI Primary Commands - 4 (SPC-4)
15
16 ANS Project INCITS 557
17 Information technology - SCSI / ATA Translation - 5 (SAT-5)
18
19
20 Description
21 -----------
22
23 This driver supports reporting the temperature of disk and solid state
24 drives with temperature sensors.
25
26 If supported, it uses the ATA SCT Command Transport feature to read
27 the current drive temperature and, if available, temperature limits
28 as well as historic minimum and maximum temperatures. If SCT Command
29 Transport is not supported, the driver uses SMART attributes to read
30 the drive temperature.
31
32
33 Usage Note
34 ----------
35
36 Reading the drive temperature may reset the spin down timer on some drives.
37 This has been observed with WD120EFAX drives, but may be seen with other
38 drives as well. The same behavior is observed if the 'hdtemp' or 'smartd'
39 tools are used to access the drive.
40 With the WD120EFAX drive, reading the drive temperature using the drivetemp
41 driver is still possible _after_ it transitioned to standby mode, and
42 reading the drive temperature in this mode will not cause the drive to
43 change its mode (meaning the drive will not spin up). It is unknown if other
44 drives experience similar behavior.
45
46 A known workaround for WD120EFAX drives is to read the drive temperature at
47 intervals larger than twice the spin-down time. Otherwise affected drives
48 will never spin down.
49
50
51 Sysfs entries
52 -------------
53
54 Only the temp1_input attribute is always available. Other attributes are
55 available only if reported by the drive. All temperatures are reported in
56 milli-degrees Celsius.
57
58 ======================= =====================================================
59 temp1_input Current drive temperature
60 temp1_lcrit Minimum temperature limit. Operating the device below
61 this temperature may cause physical damage to the
62 device.
63 temp1_min Minimum recommended continuous operating limit
64 temp1_max Maximum recommended continuous operating temperature
65 temp1_crit Maximum temperature limit. Operating the device above
66 this temperature may cause physical damage to the
67 device.
68 temp1_lowest Minimum temperature seen this power cycle
69 temp1_highest Maximum temperature seen this power cycle
70 ======================= =====================================================
71

3. 한국어 전문 번역

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

ATA·SCSI 표준과 drive temperature

1-32

이 GPL-2.0 드라이버의 참조 표준은 ANS T13/1699-D ATA8-ACS, ANS Project T10/BSR INCITS 513 SCSI Primary Commands 4(SPC-4), ANS Project INCITS 557 SCSI/ATA Translation 5(SAT-5)입니다.

드라이버는 temperature sensor가 있는 disk와 solid-state drive의 온도를 보고합니다.

지원되는 경우 ATA SCT Command Transport로 현재 drive temperature를 읽고, 제공된다면 temperature limit와 이 power cycle의 historical minimum·maximum도 읽습니다. SCT Command Transport를 지원하지 않으면 SMART attribute로 drive temperature를 읽습니다.

drivetemp 데이터 경로
우선순위Interface제공 가능 값
1ATA SCT Command Transport현재 온도, limit, historical min/max
2SMART attributes현재 drive temperature
관련 표준ATA8-ACS / SPC-4 / SAT-5ATA·SCSI command 정의

Drive capability에 따라 SCT 또는 SMART를 선택합니다.

Drive temperature 조회
Temperature sensor 지원 확인SCT Command Transport 검사지원하면 SCT temperature·limit 읽기미지원이면 SMART attribute 읽기Hwmon temperature 게시

Capability 확인 뒤 가장 풍부한 interface를 선택합니다.

.. SPDX-License-Identifier: GPL-2.0

Kernel driver drivetemp
=======================


References
----------

ANS T13/1699-D
Information technology - AT Attachment 8 - ATA/ATAPI Command Set (ATA8-ACS)

ANS Project T10/BSR INCITS 513
Information technology - SCSI Primary Commands - 4 (SPC-4)

ANS Project INCITS 557
Information technology - SCSI / ATA Translation - 5 (SAT-5)


Description
-----------

This driver supports reporting the temperature of disk and solid state
drives with temperature sensors.

If supported, it uses the ATA SCT Command Transport feature to read
the current drive temperature and, if available, temperature limits
as well as historic minimum and maximum temperatures. If SCT Command
Transport is not supported, the driver uses SMART attributes to read
the drive temperature.

Spin-down timer와 WD120EFAX 주의

33-50

일부 drive에서는 temperature를 읽는 행위가 spin-down timer를 reset할 수 있습니다. WD120EFAX에서 관찰됐지만 다른 drive에서도 발생할 수 있습니다. `hdtemp`나 `smartd`가 drive에 접근할 때도 같은 동작이 관찰됩니다.

WD120EFAX는 standby mode로 전환된 뒤에도 drivetemp로 온도를 읽을 수 있고, 이 상태에서 읽어도 mode가 바뀌지 않아 spin-up하지 않습니다. 다른 drive도 같은지는 알려지지 않았습니다.

WD120EFAX의 알려진 workaround는 drive 온도 읽기 간격을 spin-down time의 두 배보다 크게 설정하는 것입니다. 그렇지 않으면 영향받는 drive가 절대 spin-down하지 못할 수 있습니다.

Spin-down 영향
상황결과·대응
일부 drive에서 temperature readSpin-down timer reset 가능
WD120EFAX standby 후 readStandby 유지, spin-up하지 않음
hdtemp·smartd 접근같은 timer reset 동작 가능
WorkaroundPolling interval > 2 x spin-down time

온도 polling과 power state의 알려진 관계입니다.

저전력 polling 설정
Drive spin-down time 확인Temperature read 영향 시험Polling을 두 배보다 길게 설정Standby 유지 여부 확인필요하면 monitoring 빈도 조정

Drive sleep을 방해하지 않도록 간격을 잡습니다.

Usage Note
----------

Reading the drive temperature may reset the spin down timer on some drives.
This has been observed with WD120EFAX drives, but may be seen with other
drives as well. The same behavior is observed if the 'hdtemp' or 'smartd'
tools are used to access the drive.
With the WD120EFAX drive, reading the drive temperature using the drivetemp
driver is still possible _after_ it transitioned to standby mode, and
reading the drive temperature in this mode will not cause the drive to
change its mode (meaning the drive will not spin up). It is unknown if other
drives experience similar behavior.

A known workaround for WD120EFAX drives is to read the drive temperature at
intervals larger than twice the spin-down time. Otherwise affected drives
will never spin down.

Drive temperature sysfs ABI

51-70

`temp1_input`만 항상 존재합니다. 나머지 attribute는 drive가 해당 값을 보고할 때만 제공됩니다. 모든 temperature는 millidegree Celsius입니다.

`temp1_input`은 current drive temperature입니다. `temp1_lcrit`은 이보다 낮게 동작하면 physical damage가 생길 수 있는 minimum limit이고, `temp1_crit`은 이보다 높게 동작하면 physical damage가 생길 수 있는 maximum limit입니다.

`temp1_min`은 recommended continuous operating minimum, `temp1_max`는 recommended continuous operating maximum입니다. `temp1_lowest`와 `temp1_highest`는 이번 power cycle에서 관측한 minimum·maximum입니다.

drivetemp attribute
Name의미Availability
temp1_inputCurrent drive temperature항상
temp1_lcritPhysical damage 가능 minimumDrive가 보고할 때
temp1_minRecommended continuous minimumDrive가 보고할 때
temp1_maxRecommended continuous maximumDrive가 보고할 때
temp1_critPhysical damage 가능 maximumDrive가 보고할 때
temp1_lowest이번 power cycle minimumDrive가 보고할 때
temp1_highest이번 power cycle maximumDrive가 보고할 때

항상 제공되는 값과 drive 선택 제공 값을 구분합니다.

Temperature 상태 해석
temp1_input 읽기Optional limit 존재 확인Recommended min/max 비교Physical lcrit/crit 비교Power-cycle lowest/highest 기록 확인

현재값을 권장 범위와 critical 범위에 비교합니다.

Sysfs entries
-------------

Only the temp1_input attribute is always available. Other attributes are
available only if reported by the drive. All temperatures are reported in
milli-degrees Celsius.

=======================        =====================================================
temp1_input                Current drive temperature
temp1_lcrit                Minimum temperature limit. Operating the device below
                        this temperature may cause physical damage to the
                        device.
temp1_min                Minimum recommended continuous operating limit
temp1_max                Maximum recommended continuous operating temperature
temp1_crit                Maximum temperature limit. Operating the device above
                        this temperature may cause physical damage to the
                        device.
temp1_lowest                Minimum temperature seen this power cycle
temp1_highest                Maximum temperature seen this power cycle
=======================        =====================================================