News for hackers. Stuff that matters.
Re:Fix Intel CPU Throttling on Linux by userbinator on Saturday March 04, 2023 @09:22PM (#35026411)
without ignoring manufacturer thermal limits

The whole point is to ignore them because they're horrible and hold back what these CPUs can really do. Fuck the manufacturers playing these stupid marketing games.

Intel warrants their CPUs at TjMax 24/7, they'll automatically throttle when they hit that limit, and disabling all this other throttling crap makes them run that way for full performance.

Re:Fix Intel CPU Throttling on Linux by mjg59 on Saturday March 04, 2023 @09:35PM (#35026461)
The whole point is that the CPU is only a single part of the equation. Yes, you're not going to burn out the CPU itself by unlimiting PL1/2 (although if the system vendor cheaped out on power circuitry because they'd only designed for sustained 20W draw then you might burn that out), but you're now generating more heat than the system is designed to dissipate. This may result in obvious outcomes like the chassis heating up enough to burn your legs, but it may also result in other components being operated outside their thermal limits and their lifetime being shortened as a result.
Re:Fix Intel CPU Throttling on Linux by userbinator on Saturday March 04, 2023 @10:03PM (#35026580)
The experience of many users shows otherwise --- ThrottleStop has similar scary disclaimers, but I have yet to see any evidence of hardware damage caused by opening up the power limits and letting the CPU naturally attain its full performance.

but you're now generating more heat than the system is designed to dissipate

I believe that's more accurately rephrased as "now you have more performance than they wanted you to have", because that's how it's being used in practice.

FYI, it is painfully obvious that you're toeing some sort of company line here.

Re:Fix Intel CPU Throttling on Linux by mjg59 on Saturday March 04, 2023 @10:08PM (#35026602)
> "now you have more performance than they wanted you to have"

"An unthrottled CPU without any OS-level policy will generate enough heat that the case temperature may rise to levels that violate safety regulations" can certainly be interpreted as "now you have more performance than they wanted you to have", yes.

> FYI, it is painfully obvious that you're toeing some sort of company line here.

I work for a company that develops trucks. While thermal dissipation is something that we do need to worry about, I can promise that it is absolutely not at the scale involved here. I've also been pretty consistent in criticising Intel for refusing to document DPTF. Whose company line do you think I'm toeing here?

Re:Fix Intel CPU Throttling on Linux by userbinator on Saturday March 04, 2023 @10:31PM (#35026685)
"An unthrottled CPU without any OS-level policy will generate enough heat that the case temperature may rise to levels that violate safety regulations" can certainly be interpreted as "now you have more performance than they wanted you to have", yes.

Despite literally zero evidence of that actually being a problem in practice?

I've also been pretty consistent in criticising Intel for refusing to document DPTF. Whose company line do you think I'm toeing here?

Not Intel, but there's plenty of evidence that DPTF just cripples performance; and why else would you jump in to an article about unlocking manufacturer-crippled products with FUD like "not the correct approach"? It's like posting "may cause processor damage" and advocating for stock speeds on every article about overclocking.

For the record, I've been overclocking (not at extreme or competitive levels) since the early 90s and haven't killed any hardware because of it. The system I'm posting this from has been on a 50% overclock for over a decade and it's still rock-solid stable.

Re:Fix Intel CPU Throttling on Linux by dannyobrien on Saturday March 04, 2023 @10:41PM (#35026729)
> Not Intel, but there's plenty of evidence that DPTF just cripples performance; and why else would you jump in to an article about unlocking manufacturer-crippled products with FUD like "not the correct approach"?

Seems like there are quite a few other reasons why someone would "jump in", including being a relative expert. Maybe you could think of a few others yourself?

Re:Fix Intel CPU Throttling on Linux by mjg59 on Saturday March 04, 2023 @11:00PM (#35026809)
> Despite literally zero evidence of that actually being a problem in practice?

Sustained contact with metal at a temperature as low as 45C is sufficient to cause discomfort, and it's a surprisingly small rise above that before you can actually cause burns (https://citeseerx.ist.psu.edu/document?repid=rep1&type=pdf&d...). Skin temperature is a standard input to DPTF policies, and during my testing I was certainly able to get the skin temperature of my test laptop well above that level - DPTF would trigger throttling instead.

> why else would you jump in to an article about unlocking manufacturer-crippled products with FUD like "not the correct approach"?

DPTF defaults to a "safe" configuration, where "safe" is a euphemism for "almost unusably slow". If what you care about is your laptop not being almost unusably slow, it's reasonable to choose an approach that obtains that without introducing any additional thermal concerns. If what you care about is obtaining the absolute maximum performance possible from your hardware with no regard to any safety or longevity concerns, then yes, implementing the DPTF policy is probably not what you want to do. But recommending the latter without providing any information about the tradeoffs is irresponsible.

Re:Fix Intel CPU Throttling on Linux by userbinator on Saturday March 04, 2023 @11:47PM (#35026981)
Sustained contact with metal at a temperature as low as 45C is sufficient to cause discomfort, and it's a surprisingly small rise above that before you can actually cause burns

That's not evidence, that's just theory. I'm asking for ACTUAL EVIDENCE of people who got burned by their laptops after disabling DPTF or using ThrottleStop, because I haven't found any. And assuming that humans won't have a natural "this is hot, better not touch it" response is absurd.

But recommending the latter without providing any information about the tradeoffs is irresponsible.

Clearly, common sense is not something you and the rest of the authoritarians in Big Tech want, because you'd rather be paternalistic control-freaks. Pulling out the tired "safety" argument only shows your commitment to that.

Re:Fix Intel CPU Throttling on Linux by mjg59 on Saturday March 04, 2023 @11:58PM (#35027024)
While developing my DPTF implementation for Linux I caused the outer skin of my test laptop to reach a temperature that would have caused burns to my legs if I had left it sitting on them for more than a couple of minutes. Now, I have working thermoreception, so I'd probably have noticed this and put it somewhere that wasn't my legs before that happened, but there are various scenarios in which people don't and manufacturers of objects that are intended to be put in your lap are kind of reluctant to design them in such a way that they could cause injury, which is why the manufacturer policies ensure that doesn't happen.

If you're fully aware of the possible consequences of ignoring those policies then go wild. I think it's the wrong choice for most people, and as I said I think it's irresponsible to suggest people change the thermal policy in that way without ensuring they're aware of the possible consequences. If saying "You should only do this if you're ok with your laptop potentially becoming hot enough to burn human skin" is authoritarian then I guess I'm authoritarian?

Re:Fix Intel CPU Throttling on Linux by ladyanita22 on Sunday March 05, 2023 @02:54AM (#35027752)
Your work on reverse engineering DPTF seems abandoned. Is it that everything was upstreamed? Because there's still a performance gap between Windows and Linux.

Also, why is Intel so reluctant on fixing this themselves? It looks so simple to me too fix this by releasing the docs and fixing thermald, and still, here we are having to use throttled for those wanting a little bit more punch.

And finally, how is it that nobody it's creating a custom, patched thermald that takes all this into account? Is it that the process for reverse engineering is too complicated and that we don't have the full picture yet? It shouldn't be too difficult to read the values Windows takes and reverse engineer it, although it may be tougher than it seems at first.

Re:Fix Intel CPU Throttling on Linux by mjg59 on Sunday March 05, 2023 @02:56AM (#35027763)
I worked on it to the extent that it worked for my use case, given it was a spare time project. It's all been merged upstream, and Intel (to their credit) are maintaining it now even though still refusing to document it.
Re:Fix Intel CPU Throttling on Linux by ladyanita22 on Sunday March 05, 2023 @02:58AM (#35027774)
I don't understand why Intel is so reluctant to do the things right
Re:Fix Intel CPU Throttling on Linux by ShroudedNight on Sunday March 05, 2023 @02:06AM (#35027544)
> And assuming that humans won't have a natural "this is hot, better not touch it" response is absurd.

FWIW, the incidence of people burning themselves on hot pads / body warmers would strongly suggest otherwise:

https://www.hmpgloballearningnetwork.com/site/wounds/reviews...

Re:Fix Intel CPU Throttling on Linux by Dalewyn on Sunday March 05, 2023 @04:41AM (#35028184)
For a layman's overview of this, Linus from LinusTechTips gives a basic rundown of the relevant safety regulation and some numbers in one of his videos featuring the M1 Macbook Air and its cooling solution.[1]

[1]: https://youtu.be/ghDvyItIHTY?t=319

Re:Fix Intel CPU Throttling on Linux by chmod775 on Sunday March 05, 2023 @05:16AM (#35028315)
> Despite literally zero evidence of that actually being a problem in practice?

You choosing to not even look for evidence so you could make an argument in ignorance does not automatically mean it doesn't exist. This is literally the first google result for "laptop case temperature causing burns": https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4292129/

Also look at this fun condition: https://en.wikipedia.org/wiki/Erythema_ab_igne

> Temperatures between 43 and 47 °C can cause this skin condition; modern laptops can generate temperatures in this range. Indeed, laptops with powerful processors can reach temperatures of 50 °C and be associated with burns.

Some more results:

https://escholarship.org/uc/item/4n04r793

https://www.researchgate.net/publication/23164210_Thigh_Burn...

https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3853603/

Re:Fix Intel CPU Throttling on Linux by userbinator on Sunday March 05, 2023 @03:30PM (#35033638)
Maybe you should read my rebuttal first? https://news.ycombinator.com/item?id=35026981
Re:Fix Intel CPU Throttling on Linux by MaxikCZ on Monday March 06, 2023 @03:40AM (#35038808)
So your rebuttal consists of "just put it off your legs, duh". Got it.
Re:Fix Intel CPU Throttling on Linux by chmod775 on Monday March 06, 2023 @09:53AM (#35041683)
That's a flagged and dead reply to a sibling comment which would look schizophrenic as a response to this one - on top of everything else that is already wrong with it.
Re:Fix Intel CPU Throttling on Linux by Retric on Saturday March 04, 2023 @10:27PM (#35026665)
Slap enough cooling on a CPU and it’s never going to thermal throttle.

They added thermal throttling because most users only max out their CPU a tiny fraction of the time so the thermal inertia can compensate for inadequate cooling. It’s infrequent enough that most users could even disable it without noticing a difference. The problem is under the wrong conditions Aka inadequate cooling plus high ambient temperatures plus extreme workload = dead CPU.

And no this isn’t theoretical, one summer working without AC I cooked a CPU before they added thermal protection. It actually happened to several people in the same heatwave.

Re:Fix Intel CPU Throttling on Linux by jeffbee on Saturday March 04, 2023 @10:32PM (#35026690)
Closed-loop thermal management a.k.a. "throttling" was an inevitable consequence of the invention of SpeedStep.
Re:Fix Intel CPU Throttling on Linux by Retric on Saturday March 04, 2023 @10:45PM (#35026748)
I recall 3 different stages, thermal protection was first designed to save chips if the cooling fans failed etc. It was very conservative because the only option was to turn the system off. SpeedStep was designed to save laptop battery life, so they never needed to thermal throttle in normal operation.

Only fairly recently with Turbo Boost did Intel combine both ideas. It’s actually a fairly clever optimization as single threaded workloads benefit quite a bit from the extra thermal overhead.

Re:Fix Intel CPU Throttling on Linux by jeffbee on Saturday March 04, 2023 @11:11PM (#35026852)
The Pentium III was the last Intel CPU where shutdown was the only possible response to overheating, when the CPU asserted THERMTRIP#. The Pentium 4 has bidirectional PROCHOT# and the Thermal Control Circuit, which divides the clock down whenever the processor is hot, and continues to run.
Re:Fix Intel CPU Throttling on Linux by Retric on Sunday March 05, 2023 @09:45AM (#35029992)
I had forgotten about P4 style thermal protection, but that wasn’t supposed to trip in normal operation the way SpeedStep and Turbo Boost is.
Re:Fix Intel CPU Throttling on Linux by nsteel on Sunday March 05, 2023 @05:54AM (#35028482)
It's also what enables some of the more modern packaging technologies.

Silicon aging is worse at higher temperatures, people are going to kill their 7/10nm chips far quicker if they keep overclocking as they've previously done. But that'll be Big Silicon's fault too, no doubt.

Re:Fix Intel CPU Throttling on Linux by rincebrain on Saturday March 04, 2023 @09:27PM (#35026431)
FWIW, I've managed to make multiple X1C6s thermally trip and shut off without changing from the safe configuration, which rather impressed me because I didn't know that was feasible these days.

Mostly I mention it to say that there's not _no_ reason for thermal limits in modern setups...

Re:Fix Intel CPU Throttling on Linux by userbinator on Saturday March 04, 2023 @09:44PM (#35026496)
I believe that's called a defective product --- and reminds me of a certain somewhat infamous series of Toshiba laptops which would overheat and shutdown if you spent too long in BIOS setup, because the fans were entirely software controlled.

There's zero reason for all this extra "thermal management" crap beyond corporate greed.

Re:Fix Intel CPU Throttling on Linux by mjg59 on Saturday March 04, 2023 @09:48PM (#35026512)
You can design hardware that's capable of dissipating the maximum heat output of every component simultaneously, but you'll end up with hardware that's significantly larger, heavier, and costs more to manufacture. Or you can design hardware that's capable of dissipating the expected heat output under a range of use-cases, and devolve policy management to the OS so it can (based on user preference) prioritise appropriately, allowing you to produce smaller, lighter machines that either cost less or generate more profit. Even if the motivation for cutting costs is to increase profit margins, users generally still seem to prefer the smaller, lighter hardware that works just fine under most circumstances.
Re:Fix Intel CPU Throttling on Linux by ecpottinger on Saturday March 04, 2023 @11:05PM (#35026837)
That is them, not me.
Re:Fix Intel CPU Throttling on Linux by salawat on Monday March 06, 2023 @02:55PM (#35046706)
No... That's what you, the manufacturer looking for a rationale to justify extracting more profit want.

What people want is a box that does computing within spec and without melting, sterilizing their laps/hands, or otherwise introducing malbehaviors they have to work around.

People want stuff that doesn't or is very difficult to break. When it does break, they want it to be a straightforward repair.

Re:Fix Intel CPU Throttling on Linux by ecpottinger on Saturday March 04, 2023 @11:05PM (#35026835)
I had an HP laptop that did that in Windows or Haiku. I rewired the fan to run 100% all of the time and aside from losing some battery time the laptop ran fine. And when plugged into the external power supply I would run it all weekend (4-days) non-stop with no problems.
Re:Fix Intel CPU Throttling on Linux by mjg59 on Saturday March 04, 2023 @09:44PM (#35026501)
The EC may trigger an emergency shutdown if any monitored component (not just the CPU) ends up outside its thermal limits.
Re:Fix Intel CPU Throttling on Linux by rincebrain on Saturday March 04, 2023 @10:19PM (#35026635)
Indeed; I've replaced the laptop since then, so I don't think I have the log, but I believe it very explicitly logged it was the CPU temperature provoking it before actually shutting down.
Re:Fix Intel CPU Throttling on Linux by voltagex_ on Sunday March 05, 2023 @12:18AM (#35027100)
Is this normally logged anywhere? You may have just saved me RMAing a laptop.
Re:Fix Intel CPU Throttling on Linux by TobTobXX on Sunday March 05, 2023 @04:33AM (#35028146)
I had a computer with a broken GPU fan and it thermally shut off. There where kernel log entries about temperature warnings, though I don't remember if it mentioned which component. Systemd should preserve them before the system shuts off.
Re:Fix Intel CPU Throttling on Linux by arka2147483647 on Sunday March 05, 2023 @02:22AM (#35027605)
If you remove the thermal limit, and if this breaks your cpu, for example, within one year, should intel then replace your cpu?

Thermal limits like this are really about managing the manufacturers liabilities, and protecting the expected lifetine of the product.

Re:Fix Intel CPU Throttling on Linux by userbinator on Sunday March 05, 2023 @02:56AM (#35027764)
The ultimate limit that prevents processor damage, called THERMTRIP, is not possible to disable AFAIK --- it's a purely hardware feature. The one below that, PROCHOT, can be disabled, but it's not useful to do that because it'll just hit the THERMTRIP temperature and shut down instead.

Like I said, Intel warrants their CPUs to be operational at TjMax continuously, and that's the temperature they'll reach and stay at automatically if not given enough cooling. There's plenty of stories of people with computers whose heatsink has somehow detached or become so severely clogged as to be at that limit all the time, and the CPUs survive just fine.

This article isn't about that; it's about manufacturers artifically limiting performance beyond that to hit a marketing target like battery life or power consumption.

Re:Fix Intel CPU Throttling on Linux by mjg59 on Sunday March 05, 2023 @03:07AM (#35027818)
What? No, it isn't. It's about something that only affects Ultrabook-style devices, and it's extremely clear that it's not to hit a marketing target because if you run Windows the drivers disable the PL1/2 limitations.
Re:Fix Intel CPU Throttling on Linux by userbinator on Sunday March 05, 2023 @03:31AM (#35027911)
The existence of ThrottleStop and the experience of many others shows that this is also a persistent problem on Windows --- CPU is barely getting warm, and sometimes the fan doesn't even turn on, but then gets throttled to some insanely low speed. Search "800MHz throttling" for plenty of complaints. Disabling all the DPTF and other extra power management bloat puts the CPU speed and performance back where it should be.
Re:Fix Intel CPU Throttling on Linux by mjg59 on Sunday March 05, 2023 @04:29AM (#35028129)
IEC 62368-1 places an upper bound on the temperature of materials in electronic devices that are likely to come into contact with users' skin, and that's incorporated into EU regulations[1]. You have two ways to achieve that - add enough cooling such that it's impossible for the device to ever produce enough heat to get that hot, or throttle components that are generating heat if the device is getting close to that temperature. The former requires a cooling system that's going to be significant overkill for most users most of the time, resulting in more expensive hardware that's bigger and heavier.

So, instead, you see the latter. This means that, yes, even if using official Intel DPTF drivers, systems will still occasionally thermally throttle. They may do so even if the CPU itself is not at a dangerous temperature, because the rest of the system may still be too hot and the CPU is the easiest tunable knob in terms of heat generation.

So, yeah, you can still obtain better performance by disabling DPTF and overriding power limits. And in the process you'll end up with a system that will become hotter than permitted by international standards, and you'll risk various types of failure ranging from inconvenient (the adhesive sticking things like rubber feet to the bottom of the machine tending to melt) to expensive (the unexpected levels of thermal expansion cycles causing components to fail earlier). It's fine that you're not worried about these things, but it's just straight up wrong to recommend that people override those limits without being clear about potential outcomes.

[1] https://eur-lex.europa.eu/legal-content/EN/TXT/HTML/?uri=CEL...

(Edit: replaced IEC 60950-1 with 62368-1, which is the up to date version, and linked to EU incorporation of that spec)

Re:Fix Intel CPU Throttling on Linux by Last5Digits on Sunday March 05, 2023 @05:08AM (#35028278)
I feel like you're being overly charitable to laptop manufacturers. If such manufacturers always considered the thermal limits of their products when advertising their performance, then I don't think many people would complain.

Since that isn't the case, however, many people get a laptop that isn't capable of performing the tasks it's advertised for. The excuse of "well, we didn't think you'd really need that much power" doesn't really cut it, when said power was strongly advertised on the box.

Re:Fix Intel CPU Throttling on Linux by mjg59 on Sunday March 05, 2023 @05:20AM (#35028340)
Oh yeah the fact that a given laptop has a given CPU certainly doesn't mean that it's going to run at the same speed as another laptop with the same CPU, and it's unfortunate that manufacturers don't tend to give users the tools needed to figure out whether the thermal limitations are going to affect them. But review benchmarks do generally show the performance distinctions fairly clearly?
Re:Fix Intel CPU Throttling on Linux by Last5Digits on Sunday March 05, 2023 @06:12AM (#35028573)
I'm sure there are benchmarks out there that comprehensively cover thermal behavior of laptops, but many sadly don't. I've had many laptops with great benchmarks that completely fall apart under prolonged load (>1 hour) Usually because the benchmark was 10-30 mins, during which the other components didn't heat up enough for throttling to occur.

I don't think the average laptop user should need to concern themselves with acquiring the necessary knowledge to discern good laptop benchmarks.

Re:Fix Intel CPU Throttling on Linux by wtallis on Sunday March 05, 2023 @06:47AM (#35028757)
> I don't think the average laptop user should need to concern themselves with acquiring the necessary knowledge to discern good laptop benchmarks.

They don't. The average laptop user doesn't have sustained workloads that keep the system running at 100% capacity for over an hour, so they don't need and shouldn't want benchmarks reflecting such a use case. They're genuinely better served by benchmarks reflecting workloads that come in shorter bursts.