What exactly is it measuring?
I have an Debian VM in Azure with 16 vCPUs. I am using it to run tensorflow. The metric "Percentage CPU" on Azure Portal shows 33.5% average. My concern is that I might not fully utilize all the 16 vCPUs.
What really puzzles me is that the top
command shows a dominating Python process of 600% CPU. Why is this number not consistent with Azure's 33.5%?
At one point, I was suspecting the number of tensflow threads is not enough. However, when I increased the tensorflow threads from 5 to 15, Azure "Percentage CPU" remained unchanged at 33.5%. top -H
did show the increased number of threads though.
UPDATE:
See the accepted answer below. In the top
screen, type 1
, it shows all the CPUs are used:
So Azure's "Percentage CPU" metric is %CPU
you see with top
command. Average meaning the average %CPU
of all the CPUs.