Linux process scheduling – Cap/Weight based

kvmlinuxschedulingxen

I am just trying to understand the basics of Linux scheduler.

  • Is Linux scheduler a Cap based or weight based scheduler?

I was previously using Xen. Now I am moving from Xen to KVM. I read VMs are normal process and thus will follow the scheduling policies of the Linux scheduler. I was previously using Xen's credit scheduler which had the capability to set cap/weight for vms. I am searching for equivalent capability and also basic understanding of the Linux scheduler.

I am using Centos 5.6 . Which still uses 2.6.18. I don't think CFS is present in the kernel I am using.

Best Answer

You can find a general description of CFS here. It is not weight/cap based in the sense that it is not based on distributing an execution time quantum among the most fit processes. You might want to read about how nice levels are implemented also, which will make the distinction clear.

Related Question