public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* Re:Re: Is guest OS oriented scheduling welcome?
@ 2009-04-24  6:10 alex
  2009-04-24 13:16 ` Anthony Liguori
  0 siblings, 1 reply; 5+ messages in thread
From: alex @ 2009-04-24  6:10 UTC (permalink / raw)
  To: avi, anthony, kvm

just now, I tried cgroup. I admit that as far as only CPU share is
concerned, cgroup is enough.

However, AFAIK Linux schedules each thread independently, ignoring the
upper level logic.

for example, suppose VM1 is an SMP one, and it is used to receive
network packets, which causes it run the TCP/IP stack code frequently.
The use of spin-lock implies that the lock holder will release it
fast. However, when vcpu threads are scheduled independently, when one
vcpu is spinning, the lock holder might be off the CPU! This would
make the VM's SMP scalability bad.

And there are user level vcpu dependence too.

Regards,
alex.

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

end of thread, other threads:[~2009-04-24 13:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1060494.867561240402736300.JavaMail.coremail@app167.163.com>
2009-04-22 12:22 ` Is guest OS oriented scheduling welcome? Avi Kivity
2009-04-22 12:34   ` Daniel P. Berrange
2009-04-24  0:19 ` Anthony Liguori
2009-04-24  2:55   ` Andrew de Andrade
2009-04-24  6:10 alex
2009-04-24 13:16 ` Anthony Liguori

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