

But on the real side, that would be one core sharing its power on the two threads, which are then using only one half of the total CPU power. However, if the two threads would run on a single real core, they would show up as using two times 100%, that makes 200% virtual core usage.

With two threads however, the things get arkward: If all works well, they are balanced to the two real cores, so we got 200% usage: Two times 100% and two idle virtual cores, and are using all of the available CPU power. The CPU and top work as expected, like there would be 4 real cores. How can I get the true usage of a multicore hyperthreading enabled cpu?įor example lets consider a 2 core CPU, expressing 4 virtual cores.Ī single threaded workload would now show up as 100% in top, as one core of the virtual cores is completely used.
