user11623613
user11623613

Reputation: 19

What is the difference between CPU Usage and CPU Utilization?

To evaluate my Java codes I want to use VisualVM, I noticed it showed me CPU Usage and when I go to search regarding it, I'm also shown CPU Utilization. Is there a definitive difference between the two ? I want to talk about CPU Usage in the context of real time systems but nothing specific comes out and rather both seem to be similar to each other?

Upvotes: 2

Views: 2320

Answers (2)

Suyash Krishna
Suyash Krishna

Reputation: 241

You are in a shared environment when using a VM and other instances besides your own, are competing for time on the same core. For example, you might be using only a part of the core time and the rest might be getting used by other instances. In this case, CPU usage will take into account both your usage as well as the usage of other instances when reporting. In other words, CPU usage is calculated as the percentage of your CPU usage as a function of the total.

CPU utilization takes into account only your metrics - the amount of time your CPU is busy or idle.

Upvotes: 1

Turo
Turo

Reputation: 4924

Utilisation is of the physical CPU and Usage is of the logical CPU, this is based on CPU Hyperthreading.

I found this in the VMware-community

Upvotes: 2

Related Questions