OSDev.org
https://forum.osdev.org/

CPU Thermal Cutoff
https://forum.osdev.org/viewtopic.php?f=11&t=30827
Page 1 of 1

Author:  matt11235 [ Mon Sep 19, 2016 3:30 am ]
Post subject:  CPU Thermal Cutoff

Hi, it seems like every modern CPU automatically shuts off when it reaches a certain temperature (presumably to prevent damage).

Where is this handled? Additionally, is there a way for the user to disable it?

Thanks :)

Author:  Brendan [ Mon Sep 19, 2016 4:18 am ]
Post subject:  Re: CPU Thermal Cutoff

Hi,

zenzizenzicube wrote:
Hi, it seems like every modern CPU automatically shuts off when it reaches a certain temperature (presumably to prevent damage).


For modern (80x86) CPUs there's 2 different things. The first throttles the CPU back when the temperature gets too high, and this is connected to a "thermal monitor" IRQ source in the local APIC so that the OS can re-balance load across CPUs or whatever.

The second is more of an emergency shutdown that's used when thermal throttling didn't work and CPU got "too much hotter than too hot". The OS isn't notified, and what actually happens in this case depends on motherboard/firmware (e.g. maybe "shutdown remaining CPUs and make PC speaker beep to inform user that OS power management failed to manage power", but maybe something completely different).

zenzizenzicube wrote:
Additionally, is there a way for the user to disable it?


It's faster/easier for the end user to unplug their CPU (and remove the heatsink) and bake it in their kitchen oven at 350 degrees Celsius for an hour (if the end user really does want to destroy their CPU with excessive heat).


Cheers,

Brendan

Author:  matt11235 [ Mon Sep 19, 2016 4:40 am ]
Post subject:  Re: CPU Thermal Cutoff

Brendan wrote:
The OS isn't notified, and what actually happens in this case depends on motherboard/firmware (e.g. maybe "shutdown remaining CPUs and make PC speaker beep to inform user that OS power management failed to manage power", but maybe something completely different).


So it could be possible for someone to flash new firmware with no thermal cutoff?

Brendan wrote:
It's faster/easier for the end user to unplug their CPU (and remove the heatsink) and bake it in their kitchen oven at 350 degrees Celsius for an hour (if the end user really does want to destroy their CPU with excessive heat).


If the CPUs can handle 350C for an hour, why do they tend to shut down a lot sooner?

Thank you for the response

Author:  Brendan [ Mon Sep 19, 2016 5:24 am ]
Post subject:  Re: CPU Thermal Cutoff

Hi,

zenzizenzicube wrote:
Brendan wrote:
The OS isn't notified, and what actually happens in this case depends on motherboard/firmware (e.g. maybe "shutdown remaining CPUs and make PC speaker beep to inform user that OS power management failed to manage power", but maybe something completely different).


So it could be possible for someone to flash new firmware with no thermal cutoff?


No. If you create your own chipset, your own motherboard and your own firmware; then you can do something different when the CPU shuts itself down (but the CPU would still be shut down).

zenzizenzicube wrote:
Brendan wrote:
It's faster/easier for the end user to unplug their CPU (and remove the heatsink) and bake it in their kitchen oven at 350 degrees Celsius for an hour (if the end user really does want to destroy their CPU with excessive heat).


If the CPUs can handle 350C for an hour, why do they tend to shut down a lot sooner?


They can't handle 350C.

I'm just saying that there's easier ways to destroy the CPU than disabling the "shut down to prevent destruction" feature.


Cheers,

Brendan

Author:  xenos [ Mon Sep 19, 2016 6:08 am ]
Post subject:  Re: CPU Thermal Cutoff

This reminds me to this nice video:
http://www.youtube.com/watch?v=y39D4529FM4
BTW, my kitchen oven barely reaches 250°C ;)

Author:  onlyonemac [ Mon Sep 19, 2016 2:20 pm ]
Post subject:  Re: CPU Thermal Cutoff

If you disable the CPU thermal cutoff, your CPU will probably melt in a few days, especially if you do a lot of processor-intensive work (gaming, complicated calculations, 3D rendering, compiling large code, etc.). CPUs slow themselves down to avoid overheating a lot more than you'd expect - think of the number of times your CPU fan is maxed out, and you keep pushing the CPU, if it didn't slow itself down it would overheat pretty quickly.

Author:  bluemoon [ Tue Sep 20, 2016 12:04 am ]
Post subject:  Re: CPU Thermal Cutoff

If you really want to avoid thermal cutoff, instead of disabling the safety measures you would instead enforce heat removal like install liquid cooling system. Safety is not meant to be disabled.

Author:  Ycep [ Tue Sep 20, 2016 7:41 am ]
Post subject:  Re: CPU Thermal Cutoff

Why would you do that? :roll:

Author:  onlyonemac [ Tue Sep 20, 2016 9:20 am ]
Post subject:  Re: CPU Thermal Cutoff

Lukand wrote:
Why would you do that? :roll:
So you can run the CPU faster.

Author:  Ycep [ Tue Sep 20, 2016 9:40 am ]
Post subject:  Re: CPU Thermal Cutoff

Yes, running CPU faster by allowing it to run on 150 °C / 302 °F. Go try it. It will be so fast that screen would blackout and hang.
Shouldn't buying a better fan be better and THEN overclocking would be better?

Author:  matt11235 [ Tue Sep 20, 2016 9:56 am ]
Post subject:  Re: CPU Thermal Cutoff

Lukand wrote:
Why would you do that? :roll:


Mostly for fun.
I don't really trust myself with liquid nitrogen or similar so I figured that it would just be easier to try and prevent it shutting down when it gets too hot.

Author:  Kazinsal [ Tue Sep 20, 2016 1:01 pm ]
Post subject:  Re: CPU Thermal Cutoff

The thermal throttling point on recent Intel chips is somewhere between 90 and 100 C. In that range, the CPU will start downclocking itself dynamically in order to maintain what it feels to be acceptable clocks with a maximum percentage of time spent at an overheated temperature. Its goal is to stay below 90 C, and it'll do that if possible.

You start to see dramatic clock drops if it spends too much time at 100 C, past which it will not allow itself to gain heat. If it spends too long at 100 C or manages to go significantly over that it'll shut down.

You cannot change this behaviour, and I highly stress that you should not attempt to circumvent it or run a process or above 85 C for any significant period of time. Go buy a $100 all-in-one closed loop liquid cooler and some decent thermal paste and you'll be able to run your system at a more than acceptable overclock for minimal mess without screwing with your thermals or requiring exotic cooling solutions.

Author:  Brendan [ Tue Sep 20, 2016 3:56 pm ]
Post subject:  Re: CPU Thermal Cutoff

Hi,

Kazinsal wrote:
The thermal throttling point on recent Intel chips is somewhere between 90 and 100 C. In that range, the CPU will start downclocking itself dynamically in order to maintain what it feels to be acceptable clocks with a maximum percentage of time spent at an overheated temperature. Its goal is to stay below 90 C, and it'll do that if possible.

You start to see dramatic clock drops if it spends too much time at 100 C, past which it will not allow itself to gain heat. If it spends too long at 100 C or manages to go significantly over that it'll shut down.

You cannot change this behaviour, and I highly stress that you should not attempt to circumvent it or run a process or above 85 C for any significant period of time. Go buy a $100 all-in-one closed loop liquid cooler and some decent thermal paste and you'll be able to run your system at a more than acceptable overclock for minimal mess without screwing with your thermals or requiring exotic cooling solutions.


Note that while you can't (and shouldn't) change this behaviour; it's possible (and likely desirable) for an OS to take it into account. This could include keeping track of how quickly CPU temperature increases under load, and using this information to detect when CPU temperature is increasing at an abnormal rate and alert the user/admin of "suspected CPU fan/cooling system failure".

It can also include shifting CPU load to other CPUs if one is hotter than the others, and downclocking CPUs when running lower priority tasks; to reduce the chance of the CPU doing thermal throttling when you're running high priority tasks, and so that (when it's unavoidable) the transition is a more gradual "everything fast" to "some things slower" to "everything slower" (rather than an unexpected and sudden "everything fast" to "everything slower" change).

Also note that (for OS power management) things like fan speed/fan noise and (laptop or UPS) battery level are involved too, and CPU speed is just one factor in the OS's "performance vs. power consumption vs. fan noise" compromise. It's not as simple as "let's always try to do everything as fast as possible".


Cheers,

Brendan

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/