News for hackers. Stuff that matters.
Re:%CPU Utilization Is a Lie by SirMaster on Tuesday September 02, 2025 @11:00PM (#45111848)
What about 2 workloads that both register 100% CPU usage, but one workload draws significantly more power and heats the CPU up way more? Seems like that workload is utilizing more of the CPU, more of the transistors or something.
Re:%CPU Utilization Is a Lie by inetknght on Tuesday September 02, 2025 @11:09PM (#45111889)
Indeed, and there's a thing called "race to sleep". That is, you want to light up as much of the core as possible as fast as possible so you can get the CPU back to idle as soon as possible to save on battery power, because having the CPU active for more time (but not using as many circuits as it "could") draws a lot more power.
Re:%CPU Utilization Is a Lie by MBCook on Tuesday September 02, 2025 @11:42PM (#45112056)
At the same time, it takes a certain amount of time for a CPU to switch power levels, and I remember it being surprisingly slow on some (older?) processors.

So in Linux (and I assume elsewhere) there were attempts to figure out if the cost in time/power to move up to a higher power state would be worth the faster processing, or if staying lower power but slower would end up using less power because it was a short task.

I think the last chips I remember seeing numbers for were some of the older Apple M-series chips, and they were lightning fast to switch power levels. That would certainly make it easier to figure out if it was worth going up to a higher power state, if I’m remembering correctly.

Re:%CPU Utilization Is a Lie by magicalhippo on Wednesday September 03, 2025 @05:52AM (#45113960)
I deliberately put my govenor to the conservative one, as I hated fans spinning up for a second and then down again repeatedly. Much rather sacrifice a bit of battery and speed for quiet.
Re:%CPU Utilization Is a Lie by MBCook on Wednesday September 03, 2025 @09:53AM (#45115820)
Smart. That would drive me nuts too.
Re:%CPU Utilization Is a Lie by SirMaster on Wednesday September 03, 2025 @08:15PM (#45121898)
Can't you just cap the fan speed? Or does it actually get too hot at a lower fan speed to where it would throttle or crash?
Re:%CPU Utilization Is a Lie by magicalhippo on Thursday September 04, 2025 @03:36AM (#45124624)
I wanted the full power when doing long compiles and such. Just not the fan jojo acion when neowsing the web or writing.

Also swapping the governor was trivial and reliable. Modifying fan profiles has always been a bit of a struggle for me, with huge differences in hardware support, persistence etc.

Re:%CPU Utilization Is a Lie by porridgeraisin on Thursday September 04, 2025 @04:32AM (#45125008)
> jojo acion when neowsing

jumping into action when browsing

Re:%CPU Utilization Is a Lie by magicalhippo on Thursday September 04, 2025 @11:04AM (#45128110)
Thanks. I hate the autocorrect as it's so often wrong, but hitting the right "keys" with no tactile feedback is such a pain. I miss T9...
Re:%CPU Utilization Is a Lie by 0x457 on Wednesday September 10, 2025 @03:55PM (#45202749)
It's just bad fan curve for given workload. Sharp rises and drops are annoying to hear, curve that does that + race-to-sleep do not work together. Low speeds do cause throttling.
Re:%CPU Utilization Is a Lie by BrendanLong on Tuesday September 02, 2025 @11:43PM (#45112062)
Some esoteric methods of measuring CPU utilizations are to calculate either the current power usage over the max available power, or the current temperature over the max operating temperature. Unfortunately these are typically even more non-linear than the standard metrics (but they can be useful sometimes).
Re:%CPU Utilization Is a Lie by gblargg on Wednesday September 03, 2025 @01:58AM (#45112638)
Like measuring RMS of an AC voltage by running it through a heating element: https://wikipedia.org/wiki/True_RMS_converter#Thermal_conver...
Re:%CPU Utilization Is a Lie by PunchyHamster on Wednesday September 03, 2025 @05:39AM (#45113889)
except it doesn't really tell you much, because having some parts of CPUs underutilized doesn't mean adding load will utilize them. Like if load underutilizes floating point units and you have nothing else that uses them
Re:%CPU Utilization Is a Lie by inetknght on Wednesday September 03, 2025 @09:06AM (#45115258)
> Like if load underutilizes floating point units

This is why I sigh really hard when people talk about some measurement of FLOPS per second, as if it's the only thing that matters.

It matters. Perhaps it matters a lot for specific workloads. But most general workloads are integer-based.

Re:%CPU Utilization Is a Lie by colejohnson66 on Wednesday September 03, 2025 @02:07PM (#45118783)
But *sparkle emoji* AI *sparkle emoji*
Re:%CPU Utilization Is a Lie by kqr on Wednesday September 03, 2025 @02:20PM (#45118896)
Also there's dark silicon to consider – the CPU simply cannot for thermal reasons run power to all parts of itself at the same time.
Re:%CPU Utilization Is a Lie by saagarjha on Wednesday September 03, 2025 @08:28AM (#45114917)
Yes, this is pretty normal; your processor will downclock to accommodate. For HPC where the workloads are pretty clearly defined it’s possible to even measure how close you’re coming to the thermal envelope and adjust the workload.
Re:%CPU Utilization Is a Lie by throwaway31131 on Wednesday September 03, 2025 @09:36AM (#45115629)
Percent utilization for most operating systems is the amount of time the idle task is not scheduled. So for both workloads the idle task was never scheduled, hence 100% "utilization".