What should the CPU usage be of a fully-loaded CPU that has been throttled?
11–20 of 181 posts
Re: What should the CPU usage be of a fully-loaded CPU that has been throttled?
#12I think Apple's approach of attributing the capacity not available due to throttling (or various other reasons) to kernel_task might be the best. You can tell something is eating cpu, stuff isn't just stuck at 50% while the rest of the system looks idle. Although then you have users trying to figure out how to kill kernel_task, which isn't great either...
If the system doesn't do that already, either nobody considered that users would try that particular nonsensical thing, or nobody cared enough to let users find out immediately instead of wasting their time thinking the computer was at fault.
Re: What should the CPU usage be of a fully-loaded CPU that has been throttled?
#13Maldebrot set? Just look the word up my dude.
Re: What should the CPU usage be of a fully-loaded CPU that has been throttled?
#14Related, 50% CPU usage on a hyper-threaded CPU isn't 50%. It is usually closer to 80-90% depending on the workload. Something to watch out for when monitoring.
Re: What should the CPU usage be of a fully-loaded CPU that has been throttled?
#15Re: What should the CPU usage be of a fully-loaded CPU that has been throttled?
#16Re: What should the CPU usage be of a fully-loaded CPU that has been throttled?
#17The right reporting is to report both the numerator and the denominator. I'm using 800 MIPS out of 1200 MIPS available.
Re: What should the CPU usage be of a fully-loaded CPU that has been throttled?
#18A key problem with this proposal is that modern CPUs do not have a single definitive maximum frequency. You have the base frequency which is rarely relevant outside of synthetic workloads then you have a variety of turbo frequencies which interact in complex ways. AMD's latest CPUs don't even have clear upper bounds on their frequency scaling logic. It's a big black box and the results can vary depending on the workl…
This will take into account machine to machine variance, and even environmental factors effecting maximum speed.
Re: What should the CPU usage be of a fully-loaded CPU that has been throttled?
#19Linux has done some work in this area with frequency-invariant utilization tracking: https://lwn.net/Articles/816388/
Re: What should the CPU usage be of a fully-loaded CPU that has been throttled?
#20Related, 50% CPU usage on a hyper-threaded CPU isn't 50%. It is usually closer to 80-90% depending on the workload. Something to watch out for when monitoring.
Interesting. Does this mean that if you are not going to use all HT threads it's better to turn off HT?
If you turn off hyperthreading and keep the same exact workload, then instead of "the graph says 50% but it's really more like 80-90%", you'll have "the graph says 100% and it's correct". The numbers now accurately represent your lower capacity.