News for hackers. Stuff that matters.
Re:Fix Intel CPU Throttling on Linux by mjg59 on Saturday March 04, 2023 @09:01PM (#35026337)
This is really not the correct approach. https://github.com/intel/thermal_daemon ought to do a better job without ignoring manufacturer thermal limits (I reverse engineered Intel's Dynamic Power and Thermal Framework a few years back, and upstream kernels should have everything needed now: https://mjg59.dreamwidth.org/54923.html)
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.

Re:Fix Intel CPU Throttling on Linux by FeepingCreature on Saturday March 04, 2023 @10:20PM (#35026640)
I have had people tell me that they don't care if their computers break, as long as they run faster in the meantime. Some manufacturers genuinely set the limits way too low for their own hardware.

I also use this tool to bypass manufacturer limits in battery mode that are intended to make the system seem like the battery is not undersized for the CPU's power draw. Sometimes I'd rather have more CPU for less time.

Re:Fix Intel CPU Throttling on Linux by dannyw on Sunday March 05, 2023 @01:20AM (#35027331)
I recall hearing CPU Tmax is designed for a 10 year lifespan.

I have never used a laptop for a decade, nor have I had the CPU fail. So perhaps faster performance and shorter lifespan is okay.

Re:Fix Intel CPU Throttling on Linux by suprjami on Sunday March 05, 2023 @01:41AM (#35027432)
* * *
Re:Fix Intel CPU Throttling on Linux by bscphil on Sunday March 05, 2023 @01:58AM (#35027499)
I have a i7 laptop of the same generation that I'm using to type this. I've replaced the screen, bezel, keyboard, touchpad, WiFi board, charger (3 or 4 times, thanks a lot Dell), battery. Upgraded the memory and added an SSD. Reapplied CPU paste once or twice. Never had a single problem with the CPU. Actually I don't know that I've ever had a computer with a CPU failure.

In all I've spent about 25% of the cost of the laptop over the years in repairs, but the result is that I'm able to keep using a device that's almost 12 years old instead of junking it. Saved quite a bit of money vs a new device, too.

Incidentally, it's interesting in regards to this issue that these old bulky laptops with beefy chips are actually quite good at avoiding thermal throttling. Despite having a traditional loud fan, I rarely even hear it come on.

Re:Fix Intel CPU Throttling on Linux by glitchcrab on Sunday March 05, 2023 @03:48AM (#35027979)
This reminds me of Trigger's broom.
Re:Fix Intel CPU Throttling on Linux by dijit on Sunday March 05, 2023 @06:02AM (#35028525)
For non-brits: Triggers broom is a joke revolving around the ideas of the ship of theseus.

In the show, trigger is a street sweep who has "kept the same broom" for 10 years, only periodically replacing the brush and occasionally replacing the handle.

The joke is of course, that it's no longer the same broom.

https://www.youtube.com/watch?v=56yN2zHtofM

Re:Fix Intel CPU Throttling on Linux by kQq9oHeAz6wLLS on Sunday March 05, 2023 @11:10AM (#35030864)
In parts of the US it's "grampa's axe": I've replaced the handle 3 times and the head twice!
Re:Fix Intel CPU Throttling on Linux by derkades on Sunday March 05, 2023 @04:04AM (#35028036)
I'm impressed that you only spent 25% of the laptop's purchase price on so many repairs. Where did you get the parts?
Re:Fix Intel CPU Throttling on Linux by bbarnett on Sunday March 05, 2023 @09:40AM (#35029951)
He cannibalized the flesh of others, so his companion may live a damned existence!!

(Response crafted by anti-repair lobby gpt)

Re:Fix Intel CPU Throttling on Linux by alfor on Sunday March 05, 2023 @10:18AM (#35030294)
Even if I am of the same type: boosted macbook pro with ssd and memory beyond what is officially supported, I think integration of almost everything on one board skipping connectors, sockets, is more cost effective and more "green" overall.

Dies of silicons are packaged, socketed, etc instead every part of silicon will get closer in a package and will handle everything.

Faster, cheaper, more energy efficient.

Re:Fix Intel CPU Throttling on Linux by beebeepka on Sunday March 05, 2023 @04:12AM (#35028066)
Did you ever overclock, though? My 2500k went from 5 to 4ghz over the course of its life.
Re:Fix Intel CPU Throttling on Linux by suprjami on Sunday March 05, 2023 @03:29PM (#35033633)
No. Ironically I bought the unlocked version then never took it past stock speed. That's why I didn't bother getting the unlocked new one.
Re:Fix Intel CPU Throttling on Linux by KronisLV on Sunday March 05, 2023 @06:01AM (#35028515)
> ...was getting flaky powering back on when turned off, which I assumed was the motherboard.

This is my PC right now. Sometimes it does a boot loop, where it can get to BIOS but not GRUB and I'm not sure why, as there are no error messages. Pulling the plug and plugging it back in helps.

I'm not sure whether it's the motherboard, or maybe a disk not wanting to read data or something. Guess I'll have to wait and see, eventually swapping out parts one by one once it fails entirely.

Re:Fix Intel CPU Throttling on Linux by userbinator on Sunday March 05, 2023 @03:08AM (#35027824)
There's a lot of 10+ year old CPUs in use, with heatsinks so clogged as to be at their thermal limit all the time, that I think 10 years is a highly conservative estimate which also assumes absolute max Vcore (which if you've seen the datasheets, are far higher than normal values, and something that only extreme --- as in, liquid nitrogen --- overclockers will exceed); it's more likely other things like motherboard capacitors will fail first.
Re:Fix Intel CPU Throttling on Linux by NikolaNovak on Sunday March 05, 2023 @06:46AM (#35028749)
Fwiw, I have 3 ThinkPad t420 and t420s running around the household, used daily, they're at about a decade.

Just replaced my main desktop which was fx8350, but that computer is now on its 2nd life with a friend and shows no signs of stopping.

There was a time when 10 year old computer was absolute rubbish. These days, if you upgrade from spinning drive to ssd, 10 year old well made computers are just fine :)

Basically, in 3 decades of personal computing, I never had a CPU failure other than that one time I crushed atlon xp with the heatsink :O

Re:Fix Intel CPU Throttling on Linux by temac on Sunday March 05, 2023 @08:00AM (#35029234)
IIRC Intel consumer CPU target 5 years (or is it 3? Not sure and the info is not public) at 30% duty cycle.

Of course lots of CPU make it for longer, but 10 years is certainly not a design target.

Re:Fix Intel CPU Throttling on Linux by dannyw on Sunday March 05, 2023 @08:29AM (#35029439)
How relevant is that figure when Intel CPUs universally outperform that by leaps and bounds?
Re:Fix Intel CPU Throttling on Linux by temac on Wednesday March 08, 2023 @05:58PM (#35075955)
If you actually use consummer CPUs a lot (maybe e.g. you are a kernel maintainer and compile Linux all day) some of them may not last how long as you think.

Or if you put consummer CPUs in embedded equipements that are always (or at least often) under load, Intel will not care much if you have an high failure rate after a few years, even if you buy an high volume. They have dedicated SKUs with better expected durability.

Re:Fix Intel CPU Throttling on Linux by pantalaimon on Sunday March 05, 2023 @08:00AM (#35029235)
My T430s is still going strong.
Re:Fix Intel CPU Throttling on Linux by steponlego on Sunday March 05, 2023 @02:54PM (#35033275)
I still use a T420 (can't stand chicklets) and a repaste does the trick.
Re:Fix Intel CPU Throttling on Linux by the_third_wave on Monday March 06, 2023 @05:41AM (#35039480)
My 2005 vintage T42p wants to have a word with you. In all its years it has seen the following parts replaced: the (PATA) 2.5" hard drive, now using an SSD through a PATA-SATA adapter.

That's it.

I still regularly use this machine even though it not longer is my main portable device. The only thing keeping me from doing so is its 32-bit CPU which now that 32-bit support has mostly gone the way of the dodo. I much prefer its 4:3 form factor 1600x1200 screen, keyboard and construction over the P50 I'm using in its stead.

Re:Fix Intel CPU Throttling on Linux by ladyanita22 on Sunday March 05, 2023 @02:29AM (#35027635)
I don't understand why this is a problem for Linux and not fit Windows.

The computers don't break on Windows, why Linux uses should take this overly conservative approach that limits the performance of their computer?

Re:Fix Intel CPU Throttling on Linux by mjg59 on Sunday March 05, 2023 @02:43AM (#35027694)
Intel ship DPTF drivers for Windows, so the appropriate thermal policy is configured at boot time. If you install thermald then Linux will do the same.
Re:Fix Intel CPU Throttling on Linux by kaba0 on Sunday March 05, 2023 @03:25AM (#35027888)
In the case of T480 the limit is specified by whether the laptop is in your lap or on the table. In the latter case it allows a much higher limit.

This check doesn’t work on Linux, so for safety reasons the former limit is enforced.

Re:Fix Intel CPU Throttling on Linux by esaym on Sunday March 05, 2023 @09:00AM (#35029645)
How does that check work? Do you have details?
Re:Fix Intel CPU Throttling on Linux by makeitdouble on Saturday March 04, 2023 @10:50PM (#35026764)
I assume people got burned by the artificial segmentation of the CPUs solely for pricing purposes.

Trusting Intel to provide accurate info on the actual performances of a chip feels too naive at this point.

Re:Fix Intel CPU Throttling on Linux by magila on Saturday March 04, 2023 @11:06PM (#35026839)
If Intel wanted to use power/thermal limits for market segmentation they'd be locked down like the turbo frequency tables on non-K CPUs.
Re:Fix Intel CPU Throttling on Linux by flangola7 on Sunday March 05, 2023 @12:00AM (#35027029)
Can't that be hacked too?
Re:Fix Intel CPU Throttling on Linux by NavinF on Sunday March 05, 2023 @02:20AM (#35027600)
I'm not aware of any modern CPUs getting hacked to unlock the multiplier. All you can do is BCLK overclocking
Re:Fix Intel CPU Throttling on Linux by flangola7 on Sunday March 05, 2023 @02:47AM (#35027720)
What exactly is preventing it?
Re:Fix Intel CPU Throttling on Linux by ladyanita22 on Sunday March 05, 2023 @02:34AM (#35027657)
But on Windows there's not such a problem, why segment then on Linux and not on Windows?
Re:Fix Intel CPU Throttling on Linux by Dalewyn on Sunday March 05, 2023 @04:51AM (#35028220)
Because Windows is mainstream and Linux is not.
Re:Fix Intel CPU Throttling on Linux by ladyanita22 on Sunday March 05, 2023 @02:27AM (#35027622)
I don't understand why this is a problem for Linux and not fit Windows.

It shouldn't be too difficult to correct on Linux. Why is Windows taking the manufacturer's limits into account while Linux basically ignore it?

Re:Fix Intel CPU Throttling on Linux by mjg59 on Sunday March 05, 2023 @02:43AM (#35027695)
It is corrected on Linux. Just install thermald.
Re:Fix Intel CPU Throttling on Linux by ladyanita22 on Sunday March 05, 2023 @03:04AM (#35027800)
Fedora and Ubuntu ship with this. So my understanding is that it may or may not be as good as in Windows, but it's not running under the most conservative approach by default
Re:Fix Intel CPU Throttling on Linux by mjg59 on Sunday March 05, 2023 @03:08AM (#35027820)
Yes. And if you run thermald with the adaptive policy enabled, you shouldn't see any benefit from throttled. It's possible that you will, but if so that's likely a bug.
Re:Fix Intel CPU Throttling on Linux by codethief on Sunday March 05, 2023 @07:16AM (#35028942)
Hi Matthew, I've been a huge fan of your work ever since, back in 2010 or 2011, thanks to you I got the Gobi 2000 mobile broadband chip working on Linux on my Thinkpad W510!

As for the pros and cons of the `throttled` project, yes, this might not be the "officially desired" approach but I know several people who have been using to great success for years. The reality is, unfortunately, that particularly those of us who use Linux machines for work and order the most recent & powerful Thinkpads or Dells they can get their hands on, often realize later on (when the machine arrives) that the default settings handicap our machine to such a degree that we can barely work. Unfortunately, not everyone is a kernel developer, though, or knows how these things work, so quick fixes are often welcome, even if they limit the hardware's lifetime (after all, we'll buy a new device in a few years anyway).

What exacerbates this problem is that it's all very intransparent: The "official" way to solve these issues (which, as far as I understand you, is installing thermald?) is not really communicated anywhere, nor does thermald come preinstalled on a any of the major distributions (AFAIK). What's worse, thermald often doesn't even solve the throttling issues without installing further patches. On top of that, BIOS updates by the manufacturers also seem to play a major role as manufacturers like Lenovo introduce different performance modes and things like "lap mode" etc. To be honest, to this day I haven't quite understood how these things interact and whose responsibility it is to fix things.

In my particular case, I have been using a Thinkpad X1 Carbon Gen9 (which Lenovo says "supports" Linux) and at some point, after installing numerous BIOS updates and working my way through hundreds of posts on the Lenovo forums, I just gave up: My machine still regularly throttles down to 800 Mhz per core under medium load until I hit the secret Fn + H key chore to tell the BIOS to switch back to high performance mode and set the thermal limit back to the maximum.

Do you happen to have a recommendation for me as to where I should start looking (again) for a solution? Does thermald fix these issues these days? (I know that when I last looked into it, it didn't.)

Re:Fix Intel CPU Throttling on Linux by pritambaral on Sunday March 05, 2023 @07:54PM (#35036153)
You can make thermald ignore that protection by using the `--ignore-cpu-id` flag. See thread leading up to: https://github.com/intel/thermal_daemon/issues/268#issuecomm...
Re:Fix Intel CPU Throttling on Linux by codethief on Sunday March 05, 2023 @08:50PM (#35036567)
Thanks, I didn't know about that parameter! However, it does sound somewhat dangerous – sure, I could give it a shot but I basically have no idea how thermald and the firmware interact and what the consequences would be. :\ I mean, I want to ignore/disable lap mode (because that one has been just plain stupid) but I don't want thermald to completely ignore what CPU I have, either.

(Essentially we're back again to the situation I described: It's all very intransparent to me.)

Re:Fix Intel CPU Throttling on Linux by haukem on Sunday March 05, 2023 @07:48AM (#35029153)
Thank you for your comment.

I installed thermald on my Lenovo T480 with Debian Bookworm and I get 20% better results in stress-ng. The fans are a bit louder now under high load and off under low load.

Without thermald:

  $ stress-ng --matrix 0 -t 3m --metrics-brief
  stress-ng: info:  [3755113] setting to a 180 second (3 mins, 0.00 secs) run per stressor
  stress-ng: info:  [3755113] dispatching hogs: 8 matrix
  stress-ng: info:  [3755113] stressor       bogo ops real time  usr time  sys time   bogo ops/s     bogo ops/s
  stress-ng: info:  [3755113]                           (secs)    (secs)    (secs)   (real time) (usr+sys time)
  stress-ng: info:  [3755113] matrix          2278812    180.00   1437.43      0.27     12660.06        1585.04

With thermald:

  $ stress-ng --matrix 0 -t 3m --metrics-brief
  stress-ng: info:  [3755550] setting to a 180 second (3 mins, 0.00 secs) run per stressor
  stress-ng: info:  [3755550] dispatching hogs: 8 matrix
  stress-ng: info:  [3755550] stressor       bogo ops real time  usr time  sys time   bogo ops/s     bogo ops/s
  stress-ng: info:  [3755550]                           (secs)    (secs)    (secs)   (real time) (usr+sys time)
  stress-ng: info:  [3755550] matrix          2791272    180.00   1404.32      0.57     15507.06        1986.83

I just installed it using apt and did no extra configuration. My system was anyway configured for balanced power mode. Why is thermald not installed on desktop installations by default?
Re:Fix Intel CPU Throttling on Linux by haukem on Sunday March 05, 2023 @08:02AM (#35029255)
Is dptfxtract still needed?

The thermald man page says this:

> In some newer platforms the auto creation of the config file is done by a companion tool "dptfxtract". This tool can be downloaded from "https://github.com/intel/dptfxtract". It is suggested as parts of the install process, run dptfxtract.

The dptfxtract gibthub project (https://github.com/intel/dptfxtract) says Intel discontinued the project.

Re:Fix Intel CPU Throttling on Linux by haukem on Sunday March 05, 2023 @08:03AM (#35029266)
Found it out myself, it is not needed by recent thermald. The ReadMe says this:

> Thermald version 2.0 and later has in built parser for thermal tables. So this utility is not required. Make sure that thermald "--adaptive" option is used.

https://github.com/intel/dptfxtract/blob/master/README.txt

Re:Fix Intel CPU Throttling on Linux by ladyanita22 on Sunday March 05, 2023 @11:40AM (#35031172)
What? Doesn't Debian come with thermald by default?
Re:Fix Intel CPU Throttling on Linux by nubinetwork on Sunday March 05, 2023 @09:35AM (#35029902)
I used to disable turbo boost for the longest time, but if someone finally fixed CPU scaling and thermal controls, I might give thermald a try.