public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* Co-stop
@ 2025-09-05 12:14 Troels Arvin
  2025-09-24 19:04 ` Co-stop Sean Christopherson
  0 siblings, 1 reply; 2+ messages in thread
From: Troels Arvin @ 2025-09-05 12:14 UTC (permalink / raw)
  To: kvm

Hello,

According to https://www.linux-kvm.org/page/Lists,_IRC it's OK to use 
this list for KVM user questions, so here it goes:

How important is it to consider "co-stop" with KVM?

I haven't been able to find anything about this for KVM, but there's 
some material about it for VMWare (albeit typically rather old 
material). Based on VMWare material, by "co-stop" I mean the following 
situation:

A VM called "x" has been assigned quite a few vCPUs, e.g. 10, on a 
hypervisor with e.g. 20 physical cores. The hypervisor is hosting many 
other VMs, and the many VMs take turn running on the hardware.
Now, if it's often the case that, e.g., only 7 physical threads are 
available when it's x's turn to run, the hypervisor needs to postpone 
running x till all 10 cores can be allocated at the same time. During 
this waiting time, x is stopped (co-stop).

Is my understanding correct? Or will KVM allow x to run on (e.g.) 7 
cores, even though the VM thinks it has 10 vCPUs available?

It's my understanding that with KVM, the co-stopped situation is 
reflected in the VM's "steal time" metric in a tool like "top".

Does hyperthreading in either the hypervisor and/or the guest impact the 
risk of co-stop?

-- 
Regards,
Troels Arvin


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-09-24 19:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-05 12:14 Co-stop Troels Arvin
2025-09-24 19:04 ` Co-stop Sean Christopherson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox