[CentOS-virt] what scheduling algorithm does KVM use?

Thu Nov 18 23:57:14 UTC 2010
Nick <oinksocket at letterboxes.org>

Thanks for the quick reply.

On 18/11/10 23:45, Kenni Lund wrote:
> The good thing about KVM compared to other virtualization solutions,
> is that KVM doesn't try to reinvent the wheel. It leaves scheduling to
> the Linux kernel, so whatever your Linux system is setup to use, KVM
> will use that. You can choose to run CFS (Completely Fair Scheduler),
> deadline, BFS, or whatever scheduler you prefer. As long as Linux uses
> it, KVM will use it.

Is this process scheduling we're talking about here?  Hmm, and I wonder how I
find out what scheduling algorithm my kernel is using.

So, this sounds feasible... except if virtual CPUs must have time shared equally
as the VMWare co-scheduling explanations imply. A scheduler for threads /
processes presumably wouldn't guarantee such a thing?

Maybe I'll go and investigate the KVM list....

Thanks

N