I have an AMD processor with 4 physical cores and SMT enabled. Because of the latter, I see 8 virtual cores in a Linux box.
stress command can spawn a number of workers spinning on sqrt(). If I run
-c 1 option, using
mpstat I would see that one virtual core usage is 100%. Thus, from my understanding, one virtual core is loaded fully, which basically means that one physical core is loaded fully. Do I get it right?
Is there any way to certainly load one physical CPU? I want to see how Linux shows it in the metrics.
PS. I want to understand how to monitor the CPU load on a system with virtual cores and, I'm not sure If my approach is right, but I don't have any other ideas so far.