News for hackers. Stuff that matters.
Re:%CPU Utilization Is a Lie by pama on Tuesday September 02, 2025 @10:54PM (#45111815)
Wait until you encounter GPU utilization. You could have two codes listing 100% utilization and have well over 100x performance difference from each other. The name of these metrics creates natural assumptions that are just wrong. Luckily it is relatively easy to estimate the FLOP/s throughput for most GPU codes and then simply compare to the theoretical peak performance of the hardware.
Re:%CPU Utilization Is a Lie by BrendanLong on Wednesday September 03, 2025 @12:02AM (#45112153)
Yeah, the obvious thing with processors is to do something similar:

(1) Measure MIPS with perf (2) Compare that to max MIPS for your processor

Unfortunately, MIPS is too vague since the amount of work done depends on the instruction, and there's no good way to measure max MIPS for most processors. (╯°□°)╯︵ ┻━┻

Re:%CPU Utilization Is a Lie by spindump8930 on Tuesday September 02, 2025 @11:21PM (#45111952)
Don't forget that theoretical peak performance is (probably) half the performance listed on the nvidia datasheet because they used the "with sparsity" numbers! I've seen this bite folks who miss the * on the figure or aren't used to reading those spec sheets.
Re:%CPU Utilization Is a Lie by saagarjha on Wednesday September 03, 2025 @08:39AM (#45115008)
If your workload is compute bound, of course. Sometimes you want to look at bandwidth instead.
Re:%CPU Utilization Is a Lie by pama on Wednesday September 03, 2025 @11:30AM (#45116956)
Of course. Lots of useful metrics exist to help tweak code performance without always needing to go into detailed profiler traces. GPU utilization is a particularly poor metric in helping much, except for making sure the code made it to the GPU somehow :-)