고쳐 쓰다

고쳐 쓰다

저는 8코어 Ubuntu 14.04 시스템을 사용하고 있습니다.

$ cat /proc/cpuinfo | grep ^processor | wc -l
8

그러나 아래에는 11개의 핫존이 있습니다 /sys/classes/thermal.

ls /sys/class/thermal/thermal_zone* | wc -l
11

핫존의 thermal_zone0이름은 입니다 thermal_zone10.

왜 이런 차이가 발생하는가? 단일 온도 측정항목(예: 가장 뜨거운 코어의 온도)을 얻을 수 있는 방법이 있습니까? 표시하고 싶기 때문에 표시기가 필요합니다.i3wm상태 표시 줄. 11개의 온도를 표시하는 것은 번거롭고 이것이 8개의 코어에 어떻게 해당하는지 잘 모르겠습니다.

고쳐 쓰다

11개의 핫존 유형은 다음과 같이 보고됩니다.

$ cat /sys/class/thermal/thermal_zone0/type 
acpitz
$ cat /sys/class/thermal/thermal_zone1/type 
acpitz
$ cat /sys/class/thermal/thermal_zone2/type 
INT3400 Thermal
$ cat /sys/class/thermal/thermal_zone3/type 
TMEM
$ cat /sys/class/thermal/thermal_zone4/type 
TAMB
$ cat /sys/class/thermal/thermal_zone5/type 
TAM2
$ cat /sys/class/thermal/thermal_zone5/type 
TAM2
$ cat /sys/class/thermal/thermal_zone6/type 
TNGF
$ cat /sys/class/thermal/thermal_zone7/type 
TEFN
$ cat /sys/class/thermal/thermal_zone8/type 
TSKN
$ cat /sys/class/thermal/thermal_zone9/type 
T_VR
$ cat /sys/class/thermal/thermal_zone10/type 
x86_pkg_temp

8개의 CPU 코어에 해당하는 핫존이 지금 당장 알 수 없기 때문에 이것은 명확하기보다는 혼란스럽습니다.

답변1

나는 확인할 수 있다자일스의 코멘트:CPU 온도(가장 뜨거운 코어)는 x86_pkg_temp로 제공됩니다.

그러므로 만일

$ cat /sys/class/thermal/thermal_zone10/type 
x86_pkg_temp

/sys/class/thermal/thermal_zone10/tempi3 상태 표시줄에 사용해야 하는 파일은 다음과 같습니다.

참고로 각 코어의 온도는 temp*_input에서 확인할 수 있습니다 /sys/devices/platform/coretemp.0/hwmon/hwmon*/. 상관 관계는 temp*_label어떤 파일이 어떤 코어(제 경우에는 4개 코어)와 관련되어 있는지 보여줍니다.

.../hwmon*/$  grep "" temp*_label
temp1_label:Physical id 0
temp2_label:Core 0
temp3_label:Core 1
temp4_label:Core 2
temp5_label:Core 3

이 파일은 temp1_input코어의 가장 뜨거운 값에 해당합니다.

관련 정보