power-dev icon indicating copy to clipboard operation
power-dev copied to clipboard

High overhead of power measurements for CPU inference measurements

Open psyhtest opened this issue 4 years ago • 11 comments

During the MLPerf Inference v1.0 round, I noticed that the power workflow when used with CPU inference occasionally seemed to incur a rather high overhead (~10%), for example:

Here, ArmNN is faster than TFLite but takes a big hit under the power workflow. TFLite, however, is not affected.

psyhtest avatar May 05 '21 14:05 psyhtest

The observed behaviour is consistent across several runs:

psyhtest avatar May 05 '21 15:05 psyhtest

Hi Anton - On Jetson AGX, we can check our runs with and without power to see if we see an impact of the power related SW overheads in communicating to the director PC. I will comment back on this issue.

s-idgunji avatar May 05 '21 16:05 s-idgunji

@s-idgunji When running inference on the GPU, the CPU is typically not fully utilised, so you might not notice any difference. When running inference on the CPU in full-blast, the effect may be more pronounced.

psyhtest avatar May 15 '21 17:05 psyhtest

@psyhtest - Thanks, we were not able to notice a difference when we had workload going on GPU on the Xavier config that we submitted, but I agree that when you are using CPU only, then the effect may show up. We can independently try and replicate the behavior you observed. But we'll need to close on this soon and propose a fix that can go in so that we can validate prior the freeze date.

s-idgunji avatar May 19 '21 04:05 s-idgunji

Anton - RP4 is pretty low-end CPU. I don't see any way around some sort of overhead. Is the overhead consistent or are you saying it's unpredictable?

TheKanter avatar Jun 02 '21 16:06 TheKanter

The overhead seems to be consistent. What's worrying is that it shows up with ArmNN on Xavier which is like 8x more powerful than RPi4.

psyhtest avatar Jun 02 '21 19:06 psyhtest

Anton - Can you try on another system , perhaps Intel Celeron or Core based. Also , what can we suggest as a fix ? If we want to repro on our system at NVIDIA what specific config , benchmark/scenario would likely give the highest difference. We could test it out to see if it repros.

s-idgunji avatar Jun 09 '21 06:06 s-idgunji

Power WG Thoights:

For v1.1: Try and solve it opportunistically. It is not a gating items. For further revisions: We could take a look into it.

This is mainly due to the resources available to solve this problem. Main issue is there is no minimum bar for the software flow.

araghun avatar Jun 16 '21 16:06 araghun

MLPerf Power WG: This will be punted to after v1.1. issue will remain open.

araghun avatar Jul 14 '21 16:07 araghun

@psyhtest - perhaps you want to close this if the issue is not valid anymore, or we need to revisit in the WG. Quite an old issue.

s-idgunji avatar Aug 05 '22 02:08 s-idgunji

Is this issue still happening?

arjunsuresh avatar Dec 25 '22 18:12 arjunsuresh