What do the different thermal zones actually correspond to?
I've just finished building a new machine with a i9 9900k CPU, a CPU with 1 socket, 8 cores and 16 threads. I installed Ubuntu Bionic on it, and I am just about to add checks to the CPU temperatures.
However, when I run cat /sys/class/thermal/thermal_zone*/temp (as recommended by https://askubuntu.com/a/15834/822289) I get 3 results:
27800
40000
28000
I thought maybe a 3rd-party program like acpi might help:
# acpi -t
Thermal 0: ok, 27.8 degrees C
But that one only gives me what's on thermal_zone0. What do the other ones represent, and how can I find more information about that?
Thanks!
18.04 intel temperature
add a comment |
I've just finished building a new machine with a i9 9900k CPU, a CPU with 1 socket, 8 cores and 16 threads. I installed Ubuntu Bionic on it, and I am just about to add checks to the CPU temperatures.
However, when I run cat /sys/class/thermal/thermal_zone*/temp (as recommended by https://askubuntu.com/a/15834/822289) I get 3 results:
27800
40000
28000
I thought maybe a 3rd-party program like acpi might help:
# acpi -t
Thermal 0: ok, 27.8 degrees C
But that one only gives me what's on thermal_zone0. What do the other ones represent, and how can I find more information about that?
Thanks!
18.04 intel temperature
By experiment, thermal zone 2 seems to be processor package temperature, I don't know what the others are. Using the msr-tools package the MSRs (Machine Specific Registers) can be read directly. Package temperature, for example:sudo rdmsr --bitfield 22:16 -u 0x1b1The core temperature for each CPU:sudo rdmsr --bitfield 22:16 -u -a 0x19c. See also here.
– Doug Smythies
Jan 19 at 17:40
Note that idle CPUs can sleep for up to 4 seconds, so don't run the commands every second, because you might simply be waking CPUs just to ask them their temperature.
– Doug Smythies
Jan 19 at 17:46
I made a mistake, the MSRs give temperature relative to TCC (98 degrees for my i7-2600K). So to convert the above readings to actual temperatures is TCC - reading.
– Doug Smythies
Jan 21 at 15:33
@DougSmythies you're absolutely right. It is thermal zone 2 - ran a few stress tests and monitored all 3 thermal zones to see which one changes the most. Thermal zone 0 is static and never changes. I am very curious though what's on thermal zone 1.
– Oleg
Jan 22 at 10:09
I don't think that the number of thermal zones and their definitions are the same for every computer. Docat /sys/class/thermal/thermal_zone2/typeand I think you'll getx86_pkg_temp, which i think is good enough for what you want. On my computer thermal zone 1 is the fan (I think), and I still don't know what thermal zone 0 is, but the type isacpitz. If you really want all the core temps dogrep . /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp*_input, however note that it uses considerable code and will show a higher temp than it should for an idle system, just due to itself.
– Doug Smythies
Jan 22 at 19:34
add a comment |
I've just finished building a new machine with a i9 9900k CPU, a CPU with 1 socket, 8 cores and 16 threads. I installed Ubuntu Bionic on it, and I am just about to add checks to the CPU temperatures.
However, when I run cat /sys/class/thermal/thermal_zone*/temp (as recommended by https://askubuntu.com/a/15834/822289) I get 3 results:
27800
40000
28000
I thought maybe a 3rd-party program like acpi might help:
# acpi -t
Thermal 0: ok, 27.8 degrees C
But that one only gives me what's on thermal_zone0. What do the other ones represent, and how can I find more information about that?
Thanks!
18.04 intel temperature
I've just finished building a new machine with a i9 9900k CPU, a CPU with 1 socket, 8 cores and 16 threads. I installed Ubuntu Bionic on it, and I am just about to add checks to the CPU temperatures.
However, when I run cat /sys/class/thermal/thermal_zone*/temp (as recommended by https://askubuntu.com/a/15834/822289) I get 3 results:
27800
40000
28000
I thought maybe a 3rd-party program like acpi might help:
# acpi -t
Thermal 0: ok, 27.8 degrees C
But that one only gives me what's on thermal_zone0. What do the other ones represent, and how can I find more information about that?
Thanks!
18.04 intel temperature
18.04 intel temperature
asked Jan 18 at 17:55
OlegOleg
62
62
By experiment, thermal zone 2 seems to be processor package temperature, I don't know what the others are. Using the msr-tools package the MSRs (Machine Specific Registers) can be read directly. Package temperature, for example:sudo rdmsr --bitfield 22:16 -u 0x1b1The core temperature for each CPU:sudo rdmsr --bitfield 22:16 -u -a 0x19c. See also here.
– Doug Smythies
Jan 19 at 17:40
Note that idle CPUs can sleep for up to 4 seconds, so don't run the commands every second, because you might simply be waking CPUs just to ask them their temperature.
– Doug Smythies
Jan 19 at 17:46
I made a mistake, the MSRs give temperature relative to TCC (98 degrees for my i7-2600K). So to convert the above readings to actual temperatures is TCC - reading.
– Doug Smythies
Jan 21 at 15:33
@DougSmythies you're absolutely right. It is thermal zone 2 - ran a few stress tests and monitored all 3 thermal zones to see which one changes the most. Thermal zone 0 is static and never changes. I am very curious though what's on thermal zone 1.
– Oleg
Jan 22 at 10:09
I don't think that the number of thermal zones and their definitions are the same for every computer. Docat /sys/class/thermal/thermal_zone2/typeand I think you'll getx86_pkg_temp, which i think is good enough for what you want. On my computer thermal zone 1 is the fan (I think), and I still don't know what thermal zone 0 is, but the type isacpitz. If you really want all the core temps dogrep . /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp*_input, however note that it uses considerable code and will show a higher temp than it should for an idle system, just due to itself.
– Doug Smythies
Jan 22 at 19:34
add a comment |
By experiment, thermal zone 2 seems to be processor package temperature, I don't know what the others are. Using the msr-tools package the MSRs (Machine Specific Registers) can be read directly. Package temperature, for example:sudo rdmsr --bitfield 22:16 -u 0x1b1The core temperature for each CPU:sudo rdmsr --bitfield 22:16 -u -a 0x19c. See also here.
– Doug Smythies
Jan 19 at 17:40
Note that idle CPUs can sleep for up to 4 seconds, so don't run the commands every second, because you might simply be waking CPUs just to ask them their temperature.
– Doug Smythies
Jan 19 at 17:46
I made a mistake, the MSRs give temperature relative to TCC (98 degrees for my i7-2600K). So to convert the above readings to actual temperatures is TCC - reading.
– Doug Smythies
Jan 21 at 15:33
@DougSmythies you're absolutely right. It is thermal zone 2 - ran a few stress tests and monitored all 3 thermal zones to see which one changes the most. Thermal zone 0 is static and never changes. I am very curious though what's on thermal zone 1.
– Oleg
Jan 22 at 10:09
I don't think that the number of thermal zones and their definitions are the same for every computer. Docat /sys/class/thermal/thermal_zone2/typeand I think you'll getx86_pkg_temp, which i think is good enough for what you want. On my computer thermal zone 1 is the fan (I think), and I still don't know what thermal zone 0 is, but the type isacpitz. If you really want all the core temps dogrep . /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp*_input, however note that it uses considerable code and will show a higher temp than it should for an idle system, just due to itself.
– Doug Smythies
Jan 22 at 19:34
By experiment, thermal zone 2 seems to be processor package temperature, I don't know what the others are. Using the msr-tools package the MSRs (Machine Specific Registers) can be read directly. Package temperature, for example:
sudo rdmsr --bitfield 22:16 -u 0x1b1 The core temperature for each CPU: sudo rdmsr --bitfield 22:16 -u -a 0x19c. See also here.– Doug Smythies
Jan 19 at 17:40
By experiment, thermal zone 2 seems to be processor package temperature, I don't know what the others are. Using the msr-tools package the MSRs (Machine Specific Registers) can be read directly. Package temperature, for example:
sudo rdmsr --bitfield 22:16 -u 0x1b1 The core temperature for each CPU: sudo rdmsr --bitfield 22:16 -u -a 0x19c. See also here.– Doug Smythies
Jan 19 at 17:40
Note that idle CPUs can sleep for up to 4 seconds, so don't run the commands every second, because you might simply be waking CPUs just to ask them their temperature.
– Doug Smythies
Jan 19 at 17:46
Note that idle CPUs can sleep for up to 4 seconds, so don't run the commands every second, because you might simply be waking CPUs just to ask them their temperature.
– Doug Smythies
Jan 19 at 17:46
I made a mistake, the MSRs give temperature relative to TCC (98 degrees for my i7-2600K). So to convert the above readings to actual temperatures is TCC - reading.
– Doug Smythies
Jan 21 at 15:33
I made a mistake, the MSRs give temperature relative to TCC (98 degrees for my i7-2600K). So to convert the above readings to actual temperatures is TCC - reading.
– Doug Smythies
Jan 21 at 15:33
@DougSmythies you're absolutely right. It is thermal zone 2 - ran a few stress tests and monitored all 3 thermal zones to see which one changes the most. Thermal zone 0 is static and never changes. I am very curious though what's on thermal zone 1.
– Oleg
Jan 22 at 10:09
@DougSmythies you're absolutely right. It is thermal zone 2 - ran a few stress tests and monitored all 3 thermal zones to see which one changes the most. Thermal zone 0 is static and never changes. I am very curious though what's on thermal zone 1.
– Oleg
Jan 22 at 10:09
I don't think that the number of thermal zones and their definitions are the same for every computer. Do
cat /sys/class/thermal/thermal_zone2/type and I think you'll get x86_pkg_temp, which i think is good enough for what you want. On my computer thermal zone 1 is the fan (I think), and I still don't know what thermal zone 0 is, but the type is acpitz. If you really want all the core temps do grep . /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp*_input, however note that it uses considerable code and will show a higher temp than it should for an idle system, just due to itself.– Doug Smythies
Jan 22 at 19:34
I don't think that the number of thermal zones and their definitions are the same for every computer. Do
cat /sys/class/thermal/thermal_zone2/type and I think you'll get x86_pkg_temp, which i think is good enough for what you want. On my computer thermal zone 1 is the fan (I think), and I still don't know what thermal zone 0 is, but the type is acpitz. If you really want all the core temps do grep . /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp*_input, however note that it uses considerable code and will show a higher temp than it should for an idle system, just due to itself.– Doug Smythies
Jan 22 at 19:34
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1110943%2fwhat-do-the-different-thermal-zones-actually-correspond-to%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1110943%2fwhat-do-the-different-thermal-zones-actually-correspond-to%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
By experiment, thermal zone 2 seems to be processor package temperature, I don't know what the others are. Using the msr-tools package the MSRs (Machine Specific Registers) can be read directly. Package temperature, for example:
sudo rdmsr --bitfield 22:16 -u 0x1b1The core temperature for each CPU:sudo rdmsr --bitfield 22:16 -u -a 0x19c. See also here.– Doug Smythies
Jan 19 at 17:40
Note that idle CPUs can sleep for up to 4 seconds, so don't run the commands every second, because you might simply be waking CPUs just to ask them their temperature.
– Doug Smythies
Jan 19 at 17:46
I made a mistake, the MSRs give temperature relative to TCC (98 degrees for my i7-2600K). So to convert the above readings to actual temperatures is TCC - reading.
– Doug Smythies
Jan 21 at 15:33
@DougSmythies you're absolutely right. It is thermal zone 2 - ran a few stress tests and monitored all 3 thermal zones to see which one changes the most. Thermal zone 0 is static and never changes. I am very curious though what's on thermal zone 1.
– Oleg
Jan 22 at 10:09
I don't think that the number of thermal zones and their definitions are the same for every computer. Do
cat /sys/class/thermal/thermal_zone2/typeand I think you'll getx86_pkg_temp, which i think is good enough for what you want. On my computer thermal zone 1 is the fan (I think), and I still don't know what thermal zone 0 is, but the type isacpitz. If you really want all the core temps dogrep . /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp*_input, however note that it uses considerable code and will show a higher temp than it should for an idle system, just due to itself.– Doug Smythies
Jan 22 at 19:34