by mjg59 · 3y ago · 0 comments
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?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.
> 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.
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.
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.
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.
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.
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
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.
Of course lots of CPU make it for longer, but 10 years is certainly not a design target.
The computers don't break on Windows, why Linux uses should take this overly conservative approach that limits the performance of their computer?
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.
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.
Edit: and getting flagged for pointing out the truth should itself be quite telling. ;-)
"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?
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.
Mostly I mention it to say that there's not _no_ reason for thermal limits in modern setups...
There's zero reason for all this extra "thermal management" crap beyond corporate greed.
Thermal limits like this are really about managing the manufacturers liabilities, and protecting the expected lifetine of the product.
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.
Trusting Intel to provide accurate info on the actual performances of a chip feels too naive at this point.
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?
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 any of the major distributions AFAIK[0]. 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 and 16W 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.)
[0]: (EDIT) I take that back, it looks like thermald does come preinstalled on Fedora and Ubuntu these days. At least it's present on my new Ubuntu 22.04.2 installation. Unfortunately, that doesn't really help me since (and now I remember reading this last time I looked into thermald) according to the changelog[1] for v2.3:
> - thermald will not run on Lenovo platforms with lap mode sysfs entry
Great, so I still have nowhere to go from here it seems.
(Essentially we're back again to the situation I described: It's all very intransparent to me.)